diff --git a/bds/static/bds/css/bds.css b/bds/static/bds/css/bds.css new file mode 100644 index 00000000..ee75334f --- /dev/null +++ b/bds/static/bds/css/bds.css @@ -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%; +} diff --git a/bds/templates/bds/base.html b/bds/templates/bds/base.html new file mode 100644 index 00000000..019bdbf6 --- /dev/null +++ b/bds/templates/bds/base.html @@ -0,0 +1,20 @@ +{% load staticfiles %} + + + + + GestioBDS + + + + + + + + {% block extra_head %}{% endblock %} + + + + {% block content %}{% endblock %} + + diff --git a/bds/templates/bds/home.html b/bds/templates/bds/home.html new file mode 100644 index 00000000..9e410540 --- /dev/null +++ b/bds/templates/bds/home.html @@ -0,0 +1,50 @@ +{% extends "bds/base.html" %} + +{% block content %} +
+

GestioBDS

+
+ +
+
+ +
+ +
+
+

Gestion des clubs

+ +
    +
  • Club 1
  • +
  • Club 2
  • +
  • Club 3
  • +
  • Club 4
  • +
+
+ +
+

Événements

+ +
    +
  • Événement 1
  • +
  • Événement 2
  • +
  • Événement 3
  • +
  • Événement 4
  • +
+
+
+
+ + +{% endblock %} diff --git a/bds/urls.py b/bds/urls.py new file mode 100644 index 00000000..0c010301 --- /dev/null +++ b/bds/urls.py @@ -0,0 +1,6 @@ +from django.urls import path + +from bds import views + +app_name = "bds" +urlpatterns = [path("", views.home, name="home")] diff --git a/bds/views.py b/bds/views.py index 60f00ef0..9bdd0ea8 100644 --- a/bds/views.py +++ b/bds/views.py @@ -1 +1,3 @@ -# Create your views here. +from django.views.generic import TemplateView + +home = TemplateView.as_view(template_name="bds/home.html") diff --git a/cof/urls.py b/cof/urls.py index 374c0f1a..6e242990 100644 --- a/cof/urls.py +++ b/cof/urls.py @@ -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