forked from DGNum/gestioCOF
Very simple home page for the BDS
This commit is contained in:
parent
6e9dc03bc7
commit
02958b4866
6 changed files with 153 additions and 2 deletions
72
bds/static/bds/css/bds.css
Normal file
72
bds/static/bds/css/bds.css
Normal file
|
@ -0,0 +1,72 @@
|
|||
html {
|
||||
font-family: sans-serif;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #c8e9a0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
header {
|
||||
background-color: #545F66;
|
||||
height: 75px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
color: #f0f0f0;
|
||||
line-height: 75px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
text-align: center;
|
||||
background-color: #6dd3ce;
|
||||
padding: 10px 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style: none;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #444;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#main-container {
|
||||
display: flex;
|
||||
flex-flow: column wrap;
|
||||
font-size: large;
|
||||
min-height: calc(100vh - 50px - 75px);
|
||||
}
|
||||
|
||||
section {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
|
||||
article {
|
||||
flex: 1;
|
||||
margin: 30px;
|
||||
/* background: #90baad; */
|
||||
background: white;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
line-height: 50px;
|
||||
height: 50px;
|
||||
background-color: #545F66;
|
||||
color: #f0f0f0;
|
||||
width: 100%;
|
||||
}
|
20
bds/templates/bds/base.html
Normal file
20
bds/templates/bds/base.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
{% load staticfiles %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>GestioBDS</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="{% static 'bds/css/bds.css' %}" />
|
||||
|
||||
{% block extra_head %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
50
bds/templates/bds/home.html
Normal file
50
bds/templates/bds/home.html
Normal file
|
@ -0,0 +1,50 @@
|
|||
{% extends "bds/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<header>
|
||||
<h1>GestioBDS</h1>
|
||||
</header>
|
||||
|
||||
<div id="main-container">
|
||||
<section>
|
||||
<article>
|
||||
<h2>Gestion des membres</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="#todo">Chercher une personne</a></li>
|
||||
<li><a href="#todo">Exporter une liste des membres</a></li>
|
||||
</ul>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<article>
|
||||
<h2>Gestion des clubs</h2>
|
||||
|
||||
<ul>
|
||||
<li>Club 1</li>
|
||||
<li>Club 2</li>
|
||||
<li>Club 3</li>
|
||||
<li>Club 4</li>
|
||||
</ul>
|
||||
</article>
|
||||
|
||||
<article>
|
||||
<h2>Événements</h2>
|
||||
|
||||
<ul>
|
||||
<li>Événement 1</li>
|
||||
<li>Événement 2</li>
|
||||
<li>Événement 3</li>
|
||||
<li>Événement 4</li>
|
||||
</ul>
|
||||
</article>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
Développé par <a href="https://www.eleves.ens.fr/kde">KDEns</a> -
|
||||
Pour tout problème :
|
||||
<a href="mailto:klub-dev@ens.fr"><tt>klub-dev@ens.fr</tt></a>
|
||||
</footer>
|
||||
{% endblock %}
|
6
bds/urls.py
Normal file
6
bds/urls.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.urls import path
|
||||
|
||||
from bds import views
|
||||
|
||||
app_name = "bds"
|
||||
urlpatterns = [path("", views.home, name="home")]
|
|
@ -1 +1,3 @@
|
|||
# Create your views here.
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
home = TemplateView.as_view(template_name="bds/home.html")
|
||||
|
|
|
@ -8,7 +8,6 @@ from django.conf.urls.static import static
|
|||
from django.contrib import admin
|
||||
from django.contrib.auth import views as django_auth_views
|
||||
from django.urls import include, path
|
||||
from django.views.decorators.cache import cache_page
|
||||
from django.views.generic.base import TemplateView
|
||||
from django_cas_ng import views as django_cas_views
|
||||
from django_js_reverse.views import urls_js
|
||||
|
@ -33,6 +32,8 @@ urlpatterns = [
|
|||
path("", gestioncof_views.HomeView.as_view(), name="home"),
|
||||
# Le BdA
|
||||
path("bda/", include("bda.urls")),
|
||||
# Le BDS
|
||||
path("bds/", include("bds.urls")),
|
||||
# Les exports
|
||||
path("export/", include(export_patterns)),
|
||||
# Les petits cours
|
||||
|
|
Loading…
Reference in a new issue