diff --git a/__main__.py b/__main__.py index 71d4c37..24f1f39 100644 --- a/__main__.py +++ b/__main__.py @@ -12,13 +12,12 @@ BLOG_URL = 'https://blog.piaf-saclay.org' YOUTUBE_CHANNEL = 'https://www.youtube.com/channel/UC3edW_hy2Ri_yilIiM3LTDA' GITHUB_PAGE = 'https://github.com/ai-safety-saclay' -DISCORD_SERVER = 'https://discord.gg/zCyg7UWW2tZ' +DISCORD_SERVER = 'https://discord.gg/pWRjGuP4nE' KEYWORDS = 'IA, intelligence artificielle, fiable, association, école, étudiant, ingénieur, Saclay, conférence, Asimov, hackathon, recherche, numérique, dangers, sécurité, fiabilité, robustesse, sûreté, confiance, alignement, contrôle' DESCRIPTION = 'Le PIAF est une association qui réunit des étudiants du plateau de Saclay autour de l\'intelligence artificielle fiable. Groupe de lecture, conférences, hackathons, et bien d\'autres projets.' - # ON EVERY PAGE def navbar(builder: Doc): @@ -143,13 +142,13 @@ def generate_home(): def letters(builder: Doc): doc, tag, text = builder.tagtext() - with tag("div", klass="d-flex justify-content-center"): - with tag("div", klass="custom-word-container"): - for word in ["Pour une", "Intelligence", "Artificielle", "Fiable"]: + with tag('div', klass='d-flex justify-content-center'): + with tag('div', klass='custom-word-container'): + for word in ['Pour une', 'Intelligence', 'Artificielle', 'Fiable']: letter = word[0] - remaining=word[1:] - line("span", letter, klass="custom-letter") - line("span", remaining, klass="custom-word-reveal") + remaining = word[1:] + line('span', letter, klass='custom-letter') + line('span', remaining, klass='custom-word-reveal') def header(builder: Doc): @@ -248,11 +247,13 @@ def generate_presentation(): 'sPyu_dTSma0?start=509', # Caroline Jeanmaire ] + def miniature_videos(builder: Doc): doc, tag, text = builder.tagtext() with tag('div', klass='video-container'): for id in ASIMOV_VIDEO_IDS: - with tag('iframe', width='300', height='180', src=f'https://www.youtube-nocookie.com/embed/{id}&origin={MAIN_SITE_URL}', loading='lazy'): + src = f'https://www.youtube-nocookie.com/embed/{id}&origin={MAIN_SITE_URL}' + with tag('iframe', width='300', height='180', src=src, loading='lazy'): pass def generate_asimov(): @@ -343,8 +344,16 @@ def generate_md_page(page: str, title: str, md_path: str): shutil.rmtree('./build') if not os.path.exists('./bootstrap'): - Repo.clone_from("https://github.com/twbs/bootstrap", "bootstrap", multi_options=["--depth=1", "--branch=v5.3.3"]) - Repo.clone_from("https://github.com/twbs/icons", "bootstrap-icons", multi_options=["--depth=1", "--branch=v1.11.3"]) + Repo.clone_from( + 'https://github.com/twbs/bootstrap', + 'bootstrap', + multi_options=['--depth=1', '--branch=v5.3.3'], + ) + Repo.clone_from( + 'https://github.com/twbs/icons', + 'bootstrap-icons', + multi_options=['--depth=1', '--branch=v1.11.3'], + ) shutil.copytree('./static', './build') sass.compile(dirname=('scss', 'build')) diff --git a/contact.md b/contact.md index aad3989..4964df8 100644 --- a/contact.md +++ b/contact.md @@ -10,7 +10,7 @@ Vous pouvez venir discuter avec nous, pour approfondir la sûreté de l'IA et pa Nous communiquons principalement sur Discord :
- + Rejoindre la discussion
diff --git a/groupe_de_lecture.md b/groupe_de_lecture.md index 89291aa..f30faaa 100644 --- a/groupe_de_lecture.md +++ b/groupe_de_lecture.md @@ -9,6 +9,6 @@ Lors d'une séance, un membre du groupe présente un exposé sur un article de r Les séances du groupe de lecture sont ouvertes à tous et ont lieu en présentiel chaque dimanche. Pour vous tenir au courant des prochains rendez-vous, rejoignez notre serveur Discord. - + Rejoindre la discussion \ No newline at end of file diff --git a/home/cards/discord-btn.html b/home/cards/discord-btn.html index c3ab248..9c2b873 100644 --- a/home/cards/discord-btn.html +++ b/home/cards/discord-btn.html @@ -1 +1 @@ - Rejoindre la discussion \ No newline at end of file + Rejoindre la discussion \ No newline at end of file diff --git a/home/cards/github-btn.html b/home/cards/github-btn.html index 29e9c18..d5e6f6e 100644 --- a/home/cards/github-btn.html +++ b/home/cards/github-btn.html @@ -1,2 +1,2 @@ - Notre organisation \ No newline at end of file + Notre organisation \ No newline at end of file diff --git a/scss/style.scss b/scss/style.scss index 2f7da77..45bd982 100644 --- a/scss/style.scss +++ b/scss/style.scss @@ -2,7 +2,7 @@ @import "../bootstrap/scss/functions"; // 2. Include any default variable overrides here -$primary: #38acac; +$primary: #008181; $font-size-base: 1.2rem; // 3. Include remainder of required Bootstrap stylesheets (including any separate color mode stylesheets) @@ -11,7 +11,9 @@ $font-size-base: 1.2rem; // 4. Include any default map overrides here $font-size-base: 17px; -// $bs-btn-bg: $bs-primary-rgb; +$theme-colors: map-merge($theme-colors, ( + "primary": $primary +)); // 5. Include remainder of required parts @import "../bootstrap/scss/maps"; @@ -266,11 +268,6 @@ header { @extend .display-4; @extend .mb-3; } - - .motto { - @extend .lead; - @extend .mb-3; - } } }