diff --git a/kfet/consumers.py b/kfet/consumers.py index dcd69bdf..2525b28f 100644 --- a/kfet/consumers.py +++ b/kfet/consumers.py @@ -24,3 +24,21 @@ class KPsul(JsonWebsocketConsumer): def disconnect(self, message, **kwargs): pass + +class Home(JsonWebsocketConsumer): + + # Set to True if you want them, else leave out + strict_ordering = False + slight_ordering = False + + def connection_groups(self, **kwargs): + return ['kfet.home'] + + def connect(self, message, **kwargs): + pass + + def receive(self, content, **kwargs): + pass + + def disconnect(self, message, **kwargs): + pass diff --git a/kfet/routing.py b/kfet/routing.py index 5ea343cb..440fb3ce 100644 --- a/kfet/routing.py +++ b/kfet/routing.py @@ -9,4 +9,5 @@ from kfet import consumers channel_routing = [ route_class(consumers.KPsul, path=r"^/ws/k-fet/k-psul/$"), + route_class(consumers.Home, path=r"^/ws/k-fet/home/$"), ] diff --git a/kfet/static/kfet/css/index.css b/kfet/static/kfet/css/index.css index 2d18e2de..fb30da5f 100644 --- a/kfet/static/kfet/css/index.css +++ b/kfet/static/kfet/css/index.css @@ -149,6 +149,12 @@ textarea { line-height:30px; } +.content-left .line-medium { + font-size:20px; + font-weight:bold; + text-align:center; +} + .content-left .line.line-big { font-family:Oswald; font-size:60px; @@ -156,6 +162,13 @@ textarea { text-align:center; } +.content-left .line.line-large { + font-family:Oswald; + font-size:40px; + font-weight:bold; + text-align:center; +} + .content-left .line.line-bigsub { font-size:25px; font-weight:bold; @@ -166,6 +179,13 @@ textarea { font-size:45px; text-align:center; } +/* +.content-left-top .line.to-colorize { + padding-left: 30px; + padding-right: 30px; + margin-left: -30px; + margin-right: -30px; +}*/ .content-right { margin:0 15px; diff --git a/kfet/templates/kfet/home.html b/kfet/templates/kfet/home.html index 31feece2..1d488847 100644 --- a/kfet/templates/kfet/home.html +++ b/kfet/templates/kfet/home.html @@ -5,20 +5,32 @@ {% block title %}Accueil{% endblock %} {% block content-header-title %}Accueil{% endblock %} -{% block content %} +{% block extra_head %} + + +{% endblock %} + + +{% block content %}