added css for the navigation page
This commit is contained in:
parent
a1b325b653
commit
19427d3e34
5 changed files with 68 additions and 8 deletions
15
Palto/Palto/static/Palto/css/base.css
Normal file
15
Palto/Palto/static/Palto/css/base.css
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* tweaks */
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* font */
|
||||
* {
|
||||
font-family: "Century Gothic", sans-serif;
|
||||
}
|
||||
|
||||
/* links */
|
||||
*:link, *:visited {
|
||||
color: blue; /* TODO: should be palette based color */
|
||||
text-decoration: none;
|
||||
}
|
28
Palto/Palto/static/Palto/css/navigation.css
Normal file
28
Palto/Palto/static/Palto/css/navigation.css
Normal file
|
@ -0,0 +1,28 @@
|
|||
nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 4px 16px;
|
||||
}
|
||||
|
||||
#navigation-header {
|
||||
display: flex;
|
||||
margin-right: auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
#navigation-title {
|
||||
font-size: 150%;
|
||||
}
|
||||
|
||||
#navigation-icon {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
#navigation-buttons {
|
||||
display: flex;
|
||||
margin-left: auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
BIN
Palto/Palto/static/Palto/font/CenturyGothic.ttf
Normal file
BIN
Palto/Palto/static/Palto/font/CenturyGothic.ttf
Normal file
Binary file not shown.
|
@ -3,11 +3,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{# base meta #}
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="shortcut icon" type="image/png" href="{% static 'Palto/favicon.svg' %}"/>
|
||||
|
||||
<link rel="stylesheet" href="{% static "Palto/css/base.css" %}" />
|
||||
<title>{% block title %}Palto{% endblock %}</title>
|
||||
|
||||
{# base style #}
|
||||
<style>
|
||||
{# font #}
|
||||
@font-face {
|
||||
font-family: "Century Gothic";
|
||||
src: url("{% static 'Palto/font/CenturyGothic.ttf' %}");
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{# navigation #}
|
||||
|
|
|
@ -1,11 +1,17 @@
|
|||
{% load static %}
|
||||
|
||||
<nav>
|
||||
<img src="{% static "Palto/favicon.svg" %}" alt="Palto's icon" width="5%">
|
||||
<a>Palto</a>
|
||||
|
||||
<a href="{% url "Palto:homepage" %}">Home</a>
|
||||
<a href="{% url "Palto:my_profile" %}">Profile</a>
|
||||
<a href="{% url "Palto:login" %}">Login</a>
|
||||
<a href="{% url "Palto:logout" %}">Logout</a>
|
||||
<link rel="stylesheet" href="{% static "Palto/css/navigation.css" %}" />
|
||||
|
||||
<div id="navigation-header">
|
||||
<img id="navigation-icon" src="{% static "Palto/favicon.svg" %}" alt="Palto's icon" />
|
||||
<a id="navigation-title">Palto</a>
|
||||
</div>
|
||||
|
||||
<div id="navigation-buttons">
|
||||
<a href="{% url "Palto:homepage" %}">Home</a>
|
||||
<a href="{% url "Palto:my_profile" %}">Profile</a>
|
||||
<a href="{% url "Palto:login" %}">Login</a>
|
||||
<a href="{% url "Palto:logout" %}">Logout</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in a new issue