Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
layvillanueva_reading
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Layla Mikel Villanueva
layvillanueva_reading
Commits
8408d947
Commit
8408d947
authored
Apr 27, 2023
by
Layla Mikel Villanueva
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lab04style' into lab04
parents
332a5755
05762602
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
100 additions
and
17 deletions
+100
-17
style.css
layvillanueva_reading/bookshelf/static/style.css
+73
-0
base.html
layvillanueva_reading/bookshelf/templates/base.html
+3
-1
books.html
...llanueva_reading/bookshelf/templates/bookshelf/books.html
+1
-1
home.html
layvillanueva_reading/bookshelf/templates/home.html
+20
-13
settings.py
layvillanueva_reading/layvillanueva_reading/settings.py
+3
-2
No files found.
layvillanueva_reading/bookshelf/static/style.css
0 → 100644
View file @
8408d947
*
{
box-sizing
:
border-box
;
font-family
:
"Comic Sans MS"
,
"Comic Sans"
,
cursive
;
}
body
{
background-color
:
teal
;
}
.grid
{
display
:
grid
;
grid-template-columns
:
repeat
(
4
,
1
fr
);
grid-template-rows
:
repeat
(
4
,
1
fr
);
grid-template-areas
:
'header header header header'
'content content content content'
'. booklink authorlink .'
'. addbooklink addauthorlink .'
;
text-align
:
center
;
color
:
black
;
line-height
:
1
;
}
.header
{
grid-area
:
header
;
color
:
red
;
}
.content
{
grid-area
:
content
;
color
:
orange
;
}
.booklink
{
grid-area
:
booklink
;
background-color
:
yellow
;
align-self
:
center
;
}
.addbooklink
{
grid-area
:
addbooklink
;
background-color
:
green
;
align-self
:
center
;
}
.authorlink
{
grid-area
:
authorlink
;
background-color
:
blue
;
align-self
:
center
;
}
.addauthorlink
{
grid-area
:
addauthorlink
;
background-color
:
violet
;
align-self
:
center
;
}
a
{
color
:
black
;
}
h1
{
border-style
:
solid
;
border-width
:
3px
;
padding
:
3px
;
border-color
:
black
;
}
button
,
input
{
background-color
:
orangered
;
}
\ No newline at end of file
layvillanueva_reading/bookshelf/templates/base.html
View file @
8408d947
{% load static %}
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<title>
{% block title %} {% endblock %}
</title>
{% block styles %}{% endblock %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'style.css' %}"
>
{% block styles %} {% endblock %}
</head>
<body>
<div
id=
"content"
>
...
...
layvillanueva_reading/bookshelf/templates/bookshelf/books.html
View file @
8408d947
...
...
@@ -12,6 +12,6 @@
</li>
</ul>
<a
href=
"/
books"
>
Books
</a>
<a
href=
"/
home"
>
Home
</a>
<a
href=
"/authors"
>
Authors
</a>
{% endblock %}
\ No newline at end of file
layvillanueva_reading/bookshelf/templates/home.html
View file @
8408d947
{% extends 'base.html' %}
{% load static %}
{% block title %} My Favorite Books
&
Authors {% endblock %}
{% block content %}
<h1>
Welcome to {{ name }}'s Database of Favorite Books and Authors!
</h1>
<br>
<h3>
Throughout high school, reading books became one of my hobbies
whenever I was bored. I usually enjoy young adult adventure books
back then which is why I became obsessed with Rick Riordan's novels.
Generally, it adventure or motivational (like Mitch Albom's) books
were my go-to when it comes to genres. Authors comes second in mind,
but I won't hesitate to stop patronizing their works the second I
find out that they have problematic views as a person.
</h3>
<div
class=
"grid"
>
<div
class=
"header"
>
<h1>
Welcome to {{ name }}'s Database of Favorite Books and Authors!
</h1>
</div>
<div
class=
"content"
>
<h3>
Throughout high school, reading books became one of my hobbies
whenever I was bored. I usually enjoy young adult adventure books
back then which is why I became obsessed with Rick Riordan's novels.
Generally, it adventure or motivational (like Mitch Albom's) books
were my go-to when it comes to genres. Authors comes second in mind,
but I won't hesitate to stop patronizing their works the second I
find out that they have problematic views as a person.
</h3>
<br>
</div>
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
Authors
</a><br>
<a
href=
"/books/add"
>
Add Book
</a>
<a
href=
"/authors/add"
>
Add Author
</a>
<div
class=
"booklink"
>
<a
href=
"/books"
>
Books
</a>
</div>
<div
class=
"authorlink"
>
<a
href=
"/authors"
>
Authors
</a>
</div>
<div
class=
"addbooklink"
>
<a
href=
"/books/add"
>
Add Book
</a>
</div>
<div
class=
"addauthorlink"
>
<a
href=
"/authors/add"
>
Add Author
</a></div>
</div>
{% endblock %}
\ No newline at end of file
layvillanueva_reading/layvillanueva_reading/settings.py
View file @
8408d947
...
...
@@ -41,7 +41,7 @@ INSTALLED_APPS = [
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'bookshelf'
'bookshelf'
,
]
MIDDLEWARE
=
[
...
...
@@ -120,7 +120,8 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.1/howto/static-files/
STATIC_URL
=
'static/'
STATIC_URL
=
'bookshelf/static/'
# Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment