Commit e89608f3 authored by berumuron's avatar berumuron
Browse files

Design global layout

parent 8458ca5e
......@@ -45,6 +45,8 @@ h1, h2, h3 {
h1 {
margin-bottom: 1.75rem;
text-align: center;
}
h1 { font-size: 2rem; line-height: 2.5rem; }
......@@ -167,6 +169,47 @@ form button[type="submit"]:focus {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
padding-left: .5rem;
padding-right: .5rem;
}
.container.container-small {
max-width: 500px;
}
/* App header */
.app-header {
margin-bottom: 1rem;
}
.app-header .app-navigation .container {
display: flex;
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
align-items: baseline;
justify-content: space-between;
list-style: none;
}
.app-header .app-navigation a {
display: inline-block;
padding: 1rem;
}
.app-header .app-navigation .app-navigation-title {
font-size: 1.1rem;
font-weight: bold;
}
.app-header .app-navigation .app-navigation-title a {
color: var(--main-color);
text-decoration: none;
}
/* App page */
.app-page {
margin-bottom: 10rem;
}
/* Folder system */
......
{% extends 'layout.html' %}
{% block content %}
<div class="container">
<div class="container container-small">
<h1>Connexion</h1>
<form method="post">
......
{% extends 'layout.html' %}
{% block content %}
<div class="container">
<div class="container container-small">
<h1>Nouvel évènement</h1>
<form action="" method="post">
......
......@@ -8,7 +8,7 @@
</head>
<body class="app">
<header>
<header class="app-header">
<nav class="app-navigation">
<ul class="container">
<li class="app-navigation-title">
......@@ -16,8 +16,7 @@
</li>
<li class="app-navigation-auth">
{% if g.current_user %}
{{ g.current_user.username }}
(<a href="{{ url_for('auth.logout') }}">Se déconnecter</a>)
<a href="{{ url_for('auth.logout') }}">Se déconnecter</a>
{% else %}
<a href="{{ url_for('auth.login') }}">Connexion</a>
{% endif %}
......
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