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 %} + + + +
+ + ++Le lundi 9 décembre 2024 prochain, je vais soutenir ma thèse de doctorat +d'informatique à l'Université Grenoble Alpes, intitulée +
+ +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 !
+ +