Commit 4b34bddd authored by James Esguerra's avatar James Esguerra

Removed style tags and added basic CSS

parent be2e318f
......@@ -10,6 +10,7 @@ def ShowHome(request):
if form.is_valid():
global name
name = form.cleaned_data['name']
#renders another HTML with the user's name and without the form
return render(request, 'home2.html', {'name': name})
form = HomeForm()
......
* {
margin: 0;
padding: 0;
}
body {
font-family: Georgia;
}
a {
text-decoration: none;
color: inherit;
}
#page-header {
text-align: center;
font-size: 2.5em;
padding-top: 15px;
}
#navbar {
display: grid;
grid-template-columns: 20% 20% 20% 20% 20%;
background-color: black;
color: white;
padding: 5px 0px 5px 0px;
text-align: center;
}
h1 {
#home {
font-size: 2.5em;
text-align: center;
padding-top: 200px;
}
......@@ -6,7 +6,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %} {% endblock %}</title>
{% block styles %} {% endblock %}
<link rel='stylesheet' type='text/css' href="{% static 'css/styles.css' %}">
</head>
<body>
<header>
......
......@@ -3,20 +3,18 @@
{% block title %} Your Bujo {% endblock %}
{% block styles %}
<link rel='stylesheet' type='text/css' href="{% static 'css/styles.css' %}">
{% endblock %}
{% block header %} Your Bullet Journal {% endblock %}
{% block content %}
<h1> Hello! What is your name? </h1>
<div id=home>
<h1> Hello! What is your name? </h1>
<form action='/home/' method='post'>
<form action='/home/' method='post'>
{% csrf_token %}
{{ form }}
<input type='submit' value='Submit'>
</form>
</form>
</div>
{% endblock %}
......@@ -3,14 +3,10 @@
{% block title %} Your Bujo {% endblock %}
{% block styles %}
<link rel='stylesheet' type='text/css' href="{% static 'css/styles.css' %}">
{% endblock %}
{% block header %} Your Bullet Journal {% endblock %}
{% block content %}
<h1>Hello, {{ name }}! Today is going to be a great day!</h1>
<h1 id='home'>Hello, {{ name }}! Today is going to be a great day!</h1>
{% endblock %}
......@@ -3,10 +3,6 @@
{% block title %} Key {% endblock %}
{% block styles %}
<link rel='stylesheet' type='text/css' href="{% static 'css/styles.css' %}">
{% endblock %}
{% block header %} Key {% endblock %}
{% block content %}
......
......@@ -3,10 +3,6 @@
{% block title %} Profile {% endblock %}
{% block styles %}
<link rel='stylesheet' type='text/css' href="{% static 'css/styles.css' %}">
{% endblock %}
{% block header %} Profile {% endblock %}
{% block content %}
......@@ -14,11 +10,13 @@
<div>
<div>
<p> {{ name }} </p>
<p> My name is {{ name }} and I love playing computer games. </p>
<p> My name is {{ name }}, I am 25 years old, and I graduated from Ateneo
de Manila University. My hobbies are singin, painting, and collecting
Pokemon cards!</p>
</div>
<div>
<p> picture here </p>
<img src='dummypic.png' alt='Picture'>
</div>
</div>
......
......@@ -3,10 +3,6 @@
{% block title %} This Week {% endblock %}
{% block styles %}
<link rel='stylesheet' type='text/css' href="{% static 'css/styles.css' %}">
{% endblock %}
{% block header %} This Week {% endblock %}
{% block content %}
......
......@@ -3,16 +3,18 @@
{% block title %} Today {% endblock %}
{% block styles %}
<link rel='stylesheet' type='text/css' href="{% static 'css/styles.css' %}">
{% endblock %}
{% block header %} Today {% endblock %}
{% block content %}
<h2>{{ my_date|date:"m.d.D" }}</h2>
<p>This is the today page.</p>
<p>• 7AM water plants</p>
<p>• 8AM walk the dogs</p>
<p>- i need more to buy more fish food</p>
<p>- be careful when deleting commits on git!</p>
<p>○ 20 1PM DSC org meeting</p>
<p>- never hit up a random girl on twitter ever again</p>
<p>○ 21 7AM ACOMM org meeting</p>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment