Add h1 to header

- accessability
- terminal browsers

settings.py
- Remove unused os import
- Update my local ip for testing
This commit is contained in:
MatthiasSaihttam 2020-11-13 11:13:35 -05:00
parent 9adad6a540
commit 7016dcab91
4 changed files with 16 additions and 8 deletions

View File

@ -189,9 +189,11 @@ hr.thought-end {
border-bottom-style: inset;
}
header {
header h1 {
padding: 4% 30px 15px;
font-size: 3em;
font-weight: normal;
margin: 0;
}
header .text {
color: var(--text-color);

View File

@ -14,9 +14,12 @@
<link rel="alternate" href="/feed" type="application/rss+xml" title="RSS">
</head>
<body>
<header><span class="text">Thoughts</span>{% if authenticated %}
<a href="/post" class="text" style="border: none">Post</a>
{% endif %}</header>
<header>
<h1>
<span class="text">Thoughts</span>{% if authenticated %}
<a href="/post" class="text" style="border: none">Post</a>
{% endif %}</h1>
</header>
<section class="main-wrap">
{% for thought in thoughts %}

View File

@ -13,7 +13,12 @@
<link rel="apple-touch-icon" href="{% static 'images/apple-touch-icon.png'%}"/>
</head>
<body>
<header><a href="/" class="text" style="border: none">Thoughts</a> <span class="text">Post</span></header>
<header>
<h1>
<a href="/" class="text" style="border: none">Thoughts</a>
<span class="text">Post</span>
</h1>
</header>
<section class="main-wrap">
<form action="{% url 'post'%}" method="post">

View File

@ -10,8 +10,6 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@ -27,7 +25,7 @@ SECRET_KEY = 'qdm4_0b)3^)k$6r($!o^a7&0l#^6)@g2wr!x0r40ii@9otfnwo'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ["192.168.1.124", "thoughts.learnerpages.com", "localhost"]
ALLOWED_HOSTS = ["192.168.1.65", "thoughts.learnerpages.com", "localhost"]
# Application definition