Templates basic formatting

This commit is contained in:
Velichko Karakostov 2021-08-28 00:41:10 +03:00
parent a1e8c902e2
commit 88d8de76ec
No known key found for this signature in database
GPG Key ID: D4463EC61D69232E
8 changed files with 99 additions and 95 deletions

View File

@ -1,9 +1,8 @@
<!DOCTYPE html> <!DOCTYPE html>
{% load static %}
{% load qr_code %}
<html>
<head> <head>
{% load static %}
{% load qr_code %}
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% block title %}reValuate{% endblock %}</title> <title>{% block title %}reValuate{% endblock %}</title>
@ -11,12 +10,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{% static 'home/css/style.css' %}"> <link rel="stylesheet" href="{% static 'home/css/style.css' %}">
<link rel="shortcut icon" type="image/png" href="{% static 'home/img/logo.png' %}"/> <link rel="shortcut icon" type="image/png" href="{% static 'home/img/logo.png' %}"/>
{% block optionalParams %}{% endblock %}
{% block optionalParams %} {% endblock %}
</head> </head>
<body> <body>
{% block aboveNav %} {% endblock %} {% block aboveNav %}{% endblock %}
<header id="navbar"> <header id="navbar">
<a class="logo" href="/"><img src="{% static 'home/img/logo.png' %}" style="max-height: 100px;" alt="logo"></a> <a class="logo" href="/"><img src="{% static 'home/img/logo.png' %}" style="max-height: 100px;" alt="logo"></a>
<nav> <nav>
@ -73,4 +70,4 @@
{% endblock %} {% endblock %}
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,7 +1,7 @@
<!-- templates/home.html -->
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}Home{% endblock %} {% block title %}Home{% endblock %}
{% block optionalParams%} {% block optionalParams%}
<style> <style>
.checkmark__circle { .checkmark__circle {
@ -56,6 +56,7 @@
</style> </style>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="centered" style="text-align: center;"> <div class="centered" style="text-align: center;">

View File

@ -1,4 +1,8 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% load qr_code %}
{% load static %}
{% block optionalParams %} {% block optionalParams %}
<style> <style>
html{ html{
@ -11,8 +15,7 @@
} }
</style> </style>
{% endblock %} {% endblock %}
{% load qr_code %}
{% load static %}
{% block content %} {% block content %}
<div id="page-wrap"> <div id="page-wrap">
<h1 class="heading">reValuate</h1> <h1 class="heading">reValuate</h1>

View File

@ -1,6 +1,7 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}Класация{% endblock %} {% block title %}Класация{% endblock %}
{% block optionalParams %} {% block optionalParams %}
<style> <style>

View File

@ -11,7 +11,7 @@
-o-background-size: cover; -o-background-size: cover;
background-size: cover; background-size: cover;
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
} }
#page-wrap{ #page-wrap{
padding: 20vh; padding: 20vh;
} }

View File

@ -1,6 +1,8 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
{% block title %} My Images {% endblock %} {% block title %} My Images {% endblock %}
{% block optionalParams %} {% block optionalParams %}
<link rel="stylesheet" href="{% static 'home/css/gallery.css' %}"> <link rel="stylesheet" href="{% static 'home/css/gallery.css' %}">
<style> <style>