Templates basic formatting
This commit is contained in:
parent
a1e8c902e2
commit
88d8de76ec
@ -1,9 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
{% load static %}
|
||||
{% load qr_code %}
|
||||
<html>
|
||||
<head>
|
||||
|
||||
{% load static %}
|
||||
{% load qr_code %}
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{% block title %}reValuate{% endblock %}</title>
|
||||
@ -11,12 +10,10 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="{% static 'home/css/style.css' %}">
|
||||
<link rel="shortcut icon" type="image/png" href="{% static 'home/img/logo.png' %}"/>
|
||||
|
||||
{% block optionalParams %} {% endblock %}
|
||||
|
||||
{% block optionalParams %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% block aboveNav %} {% endblock %}
|
||||
{% block aboveNav %}{% endblock %}
|
||||
<header id="navbar">
|
||||
<a class="logo" href="/"><img src="{% static 'home/img/logo.png' %}" style="max-height: 100px;" alt="logo"></a>
|
||||
<nav>
|
||||
@ -54,7 +51,7 @@
|
||||
<a href="{% url 'leaderboard' %}">Класация</a>
|
||||
<a href="#">За нас</a>
|
||||
{% if user.is_authenticated %}
|
||||
<a href="{% url 'logout' %}">Излез!</a>
|
||||
<a href="{% url 'logout' %}">Излез!</a>
|
||||
{% else %}
|
||||
<a href="{% url 'login' %}">Влез!</a>
|
||||
{% endif %}
|
||||
@ -73,4 +70,4 @@
|
||||
{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!-- templates/home.html -->
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}Home{% endblock %}
|
||||
|
||||
{% block optionalParams%}
|
||||
<style>
|
||||
.checkmark__circle {
|
||||
@ -56,17 +56,18 @@
|
||||
</style>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="centered" style="text-align: center;">
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
{% if userBalance %}
|
||||
<h1 style="color:#7ac142;">Транзакцията е записана успешно!</h1>
|
||||
Кликни <a style="color:#7ac142;"href="/remove_balance/">тук</a>, ако искаш да запишеш нова!
|
||||
<svg class="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 52">
|
||||
<circle class="checkmark__circle" cx="26" cy="26" r="25" fill="none"/>
|
||||
<path class="checkmark__check" fill="none" d="M14.1 27.2l7.1 7.2 16.7-16.8"/>
|
||||
</svg>
|
||||
Кликни <a style="color:#7ac142;"href="/remove_balance/">тук</a>, ако искаш да запишеш нова!
|
||||
<svg class="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 52">
|
||||
<circle class="checkmark__circle" cx="26" cy="26" r="25" fill="none"/>
|
||||
<path class="checkmark__check" fill="none" d="M14.1 27.2l7.1 7.2 16.7-16.8"/>
|
||||
</svg>
|
||||
{% endif %}
|
||||
<div>
|
||||
{{ qr_code }}
|
||||
|
@ -1,4 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% load qr_code %}
|
||||
{% load static %}
|
||||
|
||||
{% block optionalParams %}
|
||||
<style>
|
||||
html{
|
||||
@ -11,8 +15,7 @@
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% load qr_code %}
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
<div id="page-wrap">
|
||||
<h1 class="heading">reValuate</h1>
|
||||
|
@ -1,16 +1,17 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}Класация{% endblock %}
|
||||
|
||||
{% block optionalParams %}
|
||||
<style>
|
||||
|
||||
html{
|
||||
background: linear-gradient(180deg, rgba(70,147,48,1) 33%, rgba(109,126,107,1) 100%) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
background: linear-gradient(180deg, rgba(70,147,48,1) 33%, rgba(109,126,107,1) 100%) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
|
||||
}
|
||||
.content{
|
||||
|
@ -3,15 +3,15 @@
|
||||
{% block title %}Login{% endblock %}
|
||||
{% block optionalParams %}
|
||||
<style>
|
||||
html{
|
||||
background: linear-gradient(180deg, rgba(70,147,48,1) 33%, rgba(109,126,107,1) 100%) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
html{
|
||||
background: linear-gradient(180deg, rgba(70,147,48,1) 33%, rgba(109,126,107,1) 100%) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
|
||||
}
|
||||
}
|
||||
.buttons{
|
||||
background-color: #469330;
|
||||
border: none;
|
||||
|
@ -5,13 +5,13 @@
|
||||
<style>
|
||||
|
||||
html{
|
||||
background: linear-gradient(180deg, rgba(70,147,48,1) 33%, rgba(109,126,107,1) 100%) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
background: linear-gradient(180deg, rgba(70,147,48,1) 33%, rgba(109,126,107,1) 100%) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
#page-wrap{
|
||||
padding: 20vh;
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %} My Images {% endblock %}
|
||||
|
||||
{% block optionalParams %}
|
||||
<link rel="stylesheet" href="{% static 'home/css/gallery.css' %}">
|
||||
<style>
|
||||
|
@ -70,35 +70,35 @@
|
||||
}
|
||||
|
||||
.closebtn:hover {
|
||||
color: black;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.buttons{
|
||||
margin-top: 10%;
|
||||
background-color: #469330;
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 15px 32px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.buttons{
|
||||
margin-top: 10%;
|
||||
background-color: #469330;
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 15px 32px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
html{
|
||||
background: linear-gradient(180deg, rgba(70,147,48,1) 33%, rgba(109,126,107,1) 100%) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
html{
|
||||
background: linear-gradient(180deg, rgba(70,147,48,1) 33%, rgba(109,126,107,1) 100%) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
#page-wrap{
|
||||
padding: 20vh;
|
||||
}
|
||||
#page-wrap{
|
||||
padding: 20vh;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user