Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ai-safety-saclay/site
Browse files Browse the repository at this point in the history
  • Loading branch information
rambip committed Nov 10, 2024
2 parents 4cf9d01 + 5ae8bd8 commit 9df4e8a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 22 deletions.
31 changes: 20 additions & 11 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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():
Expand Down Expand Up @@ -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'))
Expand Down
2 changes: 1 addition & 1 deletion contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 :

<div class="flex-container">
<a class="btn" href="https://discord.gg/zCyg7UWW2tZ">
<a class="btn" href="https://discord.gg/pWRjGuP4nE">
<i class="bi bi-discord me-2"></i> Rejoindre la discussion
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion groupe_de_lecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<a class="btn" href="https://discord.gg/zCyg7UWW2tZ">
<a class="btn" href="https://discord.gg/pWRjGuP4nE">
<i class="bi bi-discord me-2"></i> Rejoindre la discussion
</a>
2 changes: 1 addition & 1 deletion home/cards/discord-btn.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="https://discord.gg/zCyg7UWW2tZ"><i class="bi bi-discord me-2"></i> Rejoindre la discussion</a>
<a href="https://discord.gg/pWRjGuP4nE"><i class="bi bi-discord me-2"></i> Rejoindre la discussion</a>
2 changes: 1 addition & 1 deletion home/cards/github-btn.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

<a href="https://github.com/ai-safety-saclay"><i class="bi bi-discord me-2"></i> Notre organisation</a>
<a href="https://github.com/ai-safety-saclay"><i class="bi bi-github me-2"></i> Notre organisation</a>
11 changes: 4 additions & 7 deletions scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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";
Expand Down Expand Up @@ -266,11 +268,6 @@ header {
@extend .display-4;
@extend .mb-3;
}

.motto {
@extend .lead;
@extend .mb-3;
}
}
}

Expand Down

0 comments on commit 9df4e8a

Please sign in to comment.