Skip to content

Commit 3373474

Browse files
committed
🎨(front) add button github
add button github hackdays2025 - for projects propositions
1 parent 75a221b commit 3373474

File tree

6 files changed

+47
-11
lines changed

6 files changed

+47
-11
lines changed

‎public/locales/en.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"title": "Your Mission",
1919
"description": "For three days, take part in the creation of open-source apps aimed at strengthening European digital sovereignty.",
2020
"button": "Register now",
21+
"githubButton": "Propose a project",
2122
"disclaimer": "Limited places."
2223
},
2324
"avosmarques": {
@@ -80,7 +81,8 @@
8081
"title": "Bring your own track",
8182
"description": "If none of the topics suit you, you can, of course, propose your own."
8283
}
83-
}
84+
},
85+
"githubButton": "Hackathon GitHub"
8486
},
8587
"prets": {
8688
"tag": "Resources",
@@ -124,7 +126,8 @@
124126
"description": "Presentation of projects before a jury followed by conferences. The speakers will be announced here soon.",
125127
"chip": "Open to visitors"
126128
}
127-
}
129+
},
130+
"githubButton": "See the proposed projects"
128131
},
129132
"histoire": {
130133
"tag": "News",

‎public/locales/fr.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"title": "Votre Mission",
1919
"description": "Pendant 3 jours, participez à la création d'applications bureautiques open source, destinées à renforcer la souveraineté numérique européenne.",
2020
"button": "S’inscrire maintenant",
21+
"githubButton": "Proposer un projet",
2122
"disclaimer": "Places limitées."
2223
},
2324
"avosmarques": {
@@ -80,7 +81,8 @@
8081
"title": "Bring your own track",
8182
"description": "Si aucun sujet ne vous convient, vous pourrez évidemment proposer le votre."
8283
}
83-
}
84+
},
85+
"githubButton": "GitHub du hackathon"
8486
},
8587
"prets": {
8688
"tag": "Ressources",
@@ -124,7 +126,8 @@
124126
"description": "Présentation des projets devant un jury suivi de talks. Les intervenants seront affichés ici prochainement.",
125127
"chip": "Ouvert aux visiteurs"
126128
}
127-
}
129+
},
130+
"githubButton": "Voir les projets proposés"
128131
},
129132
"histoire": {
130133
"tag": "News",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from 'react';
2+
import GitHubIcon from '@mui/icons-material/GitHub';
3+
4+
interface GithubButtonProps {
5+
text: string;
6+
}
7+
8+
export function GithubButton({ text }: GithubButtonProps) {
9+
return (
10+
<a
11+
href="https://github.com/suitenumerique/hackdays2025"
12+
target="_blank"
13+
rel="noopener noreferrer"
14+
aria-label={text}
15+
className="flex gap-2 text-lg justify-center py-2 items-center px-4 rounded-full bg-green-700 text-beige-100 text-center transition-all hover:bg-orange-500"
16+
>
17+
<GitHubIcon className="text-beige-100" fontSize="small" />
18+
<span>{text}</span>
19+
</a>
20+
);
21+
}

‎src/sections/AVosMarques.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useTranslations } from '@/hooks/useTranslations';
22
import { Chip } from '@/components/Chip'
33
import { useState, useRef } from 'react';
44
import AnimatedSection from '@/components/AnimatedSection'
5+
import { GithubButton } from '@/components/GithubButton';
56

67
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
78
import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
@@ -171,6 +172,9 @@ export function AVosMarques() {
171172
dangerouslySetInnerHTML={{
172173
__html: t('avosmarques.description'),
173174
}}></p>
175+
<div className="flex mt-4 mb-3">
176+
<GithubButton text={t('avosmarques.githubButton')} />
177+
</div>
174178
</AnimatedSection>
175179
</div>
176180

‎src/sections/Mission.tsx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useTranslations } from '@/hooks/useTranslations';
2-
import { Chip } from '@/components/Chip'
3-
import AnimatedSection from '@/components/AnimatedSection'
2+
import { Chip } from '@/components/Chip';
3+
import AnimatedSection from '@/components/AnimatedSection';
4+
import { GithubButton } from '@/components/GithubButton';
45

56
export function Mission() {
67
const { t } = useTranslations()
@@ -36,16 +37,17 @@ export function Mission() {
3637
</p>
3738
</div>
3839

39-
<div className="flex justify-center mt-8">
40+
<div className="flex flex-col md:flex-row justify-center mt-8 gap-3">
4041
<a
4142
href="https://pretix.dgnum.eu/dgnum/hack-lsn-2025/"
4243
target="_blank"
4344
rel="noopener noreferrer"
4445
aria-label={t('mission.button')}
45-
className="block py-[8px] px-4 text-lg rounded-full bg-orange-600 text-beige-100 text-center transition-all hover:bg-orange-500"
46+
className="flex justify-center py-2 text-lg px-4 text-lg rounded-full bg-orange-600 text-beige-100 text-center transition-all hover:bg-orange-500"
4647
>
4748
{t('mission.button')}
4849
</a>
50+
<GithubButton text={t('mission.githubButton')} />
4951
</div>
5052
<div className="relative md:pb-10">
5153
<p className="mt-[8px] mx-auto text-sm text-green-700 max-w-[478px] text-center">

‎src/sections/Partez.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useTranslations } from '@/hooks/useTranslations';
22
import { Chip } from '@/components/Chip'
33
import AnimatedSection from '@/components/AnimatedSection'
4+
import { GithubButton } from '@/components/GithubButton';
45

56
import Date2 from '@/assets/date/date-2.png'
67
import Date3 from '@/assets/date/date-3.png'
@@ -17,19 +18,21 @@ export function Partez() {
1718
<h3 className="font-title leading-14 py-3 md:py-8 uppercase text-green-700 text-[59px] md:text-[86px]">
1819
{t('partez.title')}
1920
</h3>
20-
<p className="block text-green-500 max-w-[800px] text-normal mb-8">
21+
<p className="block text-green-500 max-w-[800px] text-normal mb-4">
2122
{t('partez.description')}
2223
</p>
23-
24+
<div class="flex gap-2 flex-col md:flex-row">
2425
<a
2526
href="https://pretix.dgnum.eu/dgnum/hack-lsn-2025/"
2627
target="_blank"
2728
rel="noopener noreferrer"
2829
aria-label={t('partez.button')}
29-
className="block inline mt-12 mb-12 px-8 py-3 rounded-full bg-green-700 text-beige-100 text-center transition-all hover:bg-orange-500"
30+
className="block text-lg px-4 py-2 rounded-full bg-orange-600 text-beige-100 text-center transition-all hover:bg-orange-500"
3031
>
3132
{t('partez.button')}
3233
</a>
34+
<GithubButton text={t('partez.githubButton')} />
35+
</div>
3336
</AnimatedSection>
3437

3538
<AnimatedSection delay={0.2}>

0 commit comments

Comments
 (0)