From 456837aa45f6975cc0c5b15b870e290ce7819abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Wed, 13 Nov 2024 12:19:06 +0100 Subject: [PATCH] Base scaffold --- mainsite/__init__.py | 0 mainsite/admin.py | 3 + mainsite/apps.py | 6 ++ mainsite/migrations/__init__.py | 0 mainsite/models.py | 3 + mainsite/scss/Makefile | 10 +++ mainsite/scss/_params.scss | 14 +++ mainsite/scss/style.scss | 141 +++++++++++++++++++++++++++++++ mainsite/static/css/style.css | 105 +++++++++++++++++++++++ mainsite/templates/base.html | 25 ++++++ mainsite/templates/navbar.html | 2 + mainsite/templates/phd/home.html | 44 ++++++++++ mainsite/urls.py | 4 + mainsite/views.py | 8 ++ 14 files changed, 365 insertions(+) create mode 100644 mainsite/__init__.py create mode 100644 mainsite/admin.py create mode 100644 mainsite/apps.py create mode 100644 mainsite/migrations/__init__.py create mode 100644 mainsite/models.py create mode 100644 mainsite/scss/Makefile create mode 100644 mainsite/scss/_params.scss create mode 100644 mainsite/scss/style.scss create mode 100644 mainsite/static/css/style.css create mode 100644 mainsite/templates/base.html create mode 100644 mainsite/templates/navbar.html create mode 100644 mainsite/templates/phd/home.html create mode 100644 mainsite/urls.py create mode 100644 mainsite/views.py diff --git a/mainsite/__init__.py b/mainsite/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/mainsite/admin.py b/mainsite/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/mainsite/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/mainsite/apps.py b/mainsite/apps.py new file mode 100644 index 0000000..08430a1 --- /dev/null +++ b/mainsite/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class MainsiteConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'mainsite' diff --git a/mainsite/migrations/__init__.py b/mainsite/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/mainsite/models.py b/mainsite/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/mainsite/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/mainsite/scss/Makefile b/mainsite/scss/Makefile new file mode 100644 index 0000000..cde9ecb --- /dev/null +++ b/mainsite/scss/Makefile @@ -0,0 +1,10 @@ +STYLES=style.scss +IMPORTS=$(shell ls -1 _*.scss) +OUTDIR=../static/css + +SASS=sassc + +all: $(addprefix $(OUTDIR)/,$(STYLES:.scss=.css)) + +$(OUTDIR)/%.css: %.scss $(IMPORTS) + $(SASS) "$<" "$@" diff --git a/mainsite/scss/_params.scss b/mainsite/scss/_params.scss new file mode 100644 index 0000000..c1211ec --- /dev/null +++ b/mainsite/scss/_params.scss @@ -0,0 +1,14 @@ +// vim: tabstop=2 shiftwidth=2 expandtab + +$bg_color: white; +$link_color: #07a; +$fg_color: #555; +$fg_color_light: #555555bb; +$head_bg_color: #060033; + +$resp_small: 1350px; +$resp_vsmall: 1000px; + +$profile_pic_wid: 350px; +$profile_pic_wid_small: 180px; +$profile_pic_wid_vsmall: 250px; diff --git a/mainsite/scss/style.scss b/mainsite/scss/style.scss new file mode 100644 index 0000000..84986e1 --- /dev/null +++ b/mainsite/scss/style.scss @@ -0,0 +1,141 @@ +// vim: tabstop=2 shiftwidth=2 expandtab + +@import url('fonts.css'); +@import 'params'; + +html { + background-color: $bg_color; +} + +body { + font-family:Open Sans,Arial; + color:#555; + font-size:16px; + line-height:1.4; + text-align:justify; + margin: 0; + padding: 0; +} + +header { + background-color: $head_bg_color; + display: flex; + flex-flow: row wrap; + justify-content: space-between; + align-items: center; + margin: 0; + padding: 30px 60px; + color: $bg_color; + + @media (max-width: $resp_vsmall) { + padding: 20px; + } + + .title, .whoami { + font-size: 1.4em; + font-weight: bold; + } + + a, a:visited { + color: $bg_color; + } +} + +#content { + display: flex; + justify-content: space-between; + + @media (max-width: $resp_vsmall) { + flex-wrap: wrap; + } + + main { + margin:2em auto; + max-width:800px; + padding:1em; + flex-basis: 800px; + } +} + +.items { + display: grid; + grid-template-columns: 100px auto; + + .head { + grid-column: 1/span 1; + font-weight: bold; + } +} + +.phdtitle { + font-size: 1.1em; + text-align: center; + font-weight: bold; +} + +a, a:visited { + color: $link_color; + text-decoration:none; +} + +.fa { + color:#555 +} + +h1 { + margin-left:-10px; +} +h2 { + margin-top: 30px; + margin-left:20px; + + .fa { + margin-right: 10px; + } +} + +#whoami { + text-align: right; + font-size: 1.2em; + font-style: italic; +} + +ul.docsline { + list-style: none; + text-align: center; + margin-top: 30px; + font-size: 1.1em; + + li { + display: inline-block; + + a { + display: inline-block; + padding: 0 15px; + } + } +} + +dl { + list-style: none; + display: grid; + grid-template-columns: 1fr 3fr; + + dt { + grid-column: 1 / span 1; + justify-self: end; + text-align: right; + margin-right: 20px; + font-weight: bold; + } + dd { + margin-left: 20px; + justify-self: start; + text-align: left; + } +} + +.antispam { + unicode-bidi: bidi-override; + direction: rtl; +} diff --git a/mainsite/static/css/style.css b/mainsite/static/css/style.css new file mode 100644 index 0000000..7beddf9 --- /dev/null +++ b/mainsite/static/css/style.css @@ -0,0 +1,105 @@ +@import url("fonts.css"); +html { + background-color: white; } + +body { + font-family: Open Sans,Arial; + color: #555; + font-size: 16px; + line-height: 1.4; + text-align: justify; + margin: 0; + padding: 0; } + +header { + background-color: #060033; + display: flex; + flex-flow: row wrap; + justify-content: space-between; + align-items: center; + margin: 0; + padding: 30px 60px; + color: white; } + @media (max-width: 1000px) { + header { + padding: 20px; } } + header .title, header .whoami { + font-size: 1.4em; + font-weight: bold; } + header a, header a:visited { + color: white; } + +#content { + display: flex; + justify-content: space-between; } + @media (max-width: 1000px) { + #content { + flex-wrap: wrap; } } + #content main { + margin: 2em auto; + max-width: 800px; + padding: 1em; + flex-basis: 800px; } + +.items { + display: grid; + grid-template-columns: 100px auto; } + .items .head { + grid-column: 1/span 1; + font-weight: bold; } + +.phdtitle { + font-size: 1.1em; + text-align: center; + font-weight: bold; } + +a, a:visited { + color: #07a; + text-decoration: none; } + +.fa { + color: #555; } + +h1 { + margin-left: -10px; } + +h2 { + margin-top: 30px; + margin-left: 20px; } + h2 .fa { + margin-right: 10px; } + +#whoami { + text-align: right; + font-size: 1.2em; + font-style: italic; } + +ul.docsline { + list-style: none; + text-align: center; + margin-top: 30px; + font-size: 1.1em; } + ul.docsline li { + display: inline-block; } + ul.docsline li a { + display: inline-block; + padding: 0 15px; } + +dl { + list-style: none; + display: grid; + grid-template-columns: 1fr 3fr; } + dl dt { + grid-column: 1 / span 1; + justify-self: end; + text-align: right; + margin-right: 20px; + font-weight: bold; } + dl dd { + margin-left: 20px; + justify-self: start; + text-align: left; } + +.antispam { + unicode-bidi: bidi-override; + direction: rtl; } diff --git a/mainsite/templates/base.html b/mainsite/templates/base.html new file mode 100644 index 0000000..d606ffc --- /dev/null +++ b/mainsite/templates/base.html @@ -0,0 +1,25 @@ +{% load static %} + + + + + + + Soutenance de thèse — Théophile Bastian + + + + +
+ {% include "navbar.html" %} +
+ +
+
+ {% block content %} + {% endblock content %} +
+
+ + + diff --git a/mainsite/templates/navbar.html b/mainsite/templates/navbar.html new file mode 100644 index 0000000..d9d4eb2 --- /dev/null +++ b/mainsite/templates/navbar.html @@ -0,0 +1,2 @@ +
Théophile Bastian
+
Soutenance de thèse
diff --git a/mainsite/templates/phd/home.html b/mainsite/templates/phd/home.html new file mode 100644 index 0000000..26d2b0f --- /dev/null +++ b/mainsite/templates/phd/home.html @@ -0,0 +1,44 @@ +{% extends "base.html" %} +{% load lucide %} + +{% block content %} +

Soutenance de thèse

+ +

+Le lundi 9 décembre 2024 prochain, je vais soutenir ma thèse de doctorat +d'informatique à l'Université Grenoble Alpes, intitulée +

+ +
+Étude de performance : identification de bottlenecks par analyse de +sensitivité +
+ +

La soutenance sera en anglais, et retransmise en visio (lien +prochainement disponible), une partie du jury étant à distance.

+ +

Toute personne qui le souhaite est bienvenue pour y assister !

+ +

Détails pratiques

+ + +
+
{% lucide "calendar" %}
+
Lundi 9 décembre 2024
+ +
{% lucide "clock" %}
+
14h
+ +
{% lucide "map-pin" %}
+
Salle Séminaire 2, RDC, bâtiment IMAG
+Campus universitaire, Université Grenoble Alpes
+Voir sur une carte
+ + +
{% lucide "tram-front" %}
+
B/C Gabriel Fauré
+C5/C8 Université Bibliothèques
+
+ +{% endblock content %} + diff --git a/mainsite/urls.py b/mainsite/urls.py new file mode 100644 index 0000000..d7c93dc --- /dev/null +++ b/mainsite/urls.py @@ -0,0 +1,4 @@ +from django.urls import path +from . import views + +urlpatterns = [path("", views.HomeView.as_view(), name="home")] diff --git a/mainsite/views.py b/mainsite/views.py new file mode 100644 index 0000000..d2accd6 --- /dev/null +++ b/mainsite/views.py @@ -0,0 +1,8 @@ +from django.shortcuts import render +from django.views.generic import TemplateView + + +class HomeView(TemplateView): + """Home page""" + + template_name = "phd/home.html"