Skip to content

Commit

Permalink
fix affichages divers
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyMaury committed Sep 1, 2024
1 parent 6ec5c39 commit 9737392
Show file tree
Hide file tree
Showing 12 changed files with 6,717 additions and 10,246 deletions.
1 change: 0 additions & 1 deletion data/speakers/stephanie_vachon.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
key: stephanie_vachon
name: Stéphanie Vachon
feature: false
company: 'Nantes Numérique Responsable'
companyLogo: /images/partners/nantes_numerique_responsable_.png
city: Nantes, France
Expand Down
1 change: 0 additions & 1 deletion data/speakers/valentin_deleplace.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
key: valentin_deleplace
name: Valentin Deleplace
feature: false
photoUrl: https://avatars.githubusercontent.com/u/13508141?v=4
city: Paris, France
company: Google
Expand Down
3 changes: 2 additions & 1 deletion locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
"what-is": "What is DevFest Nantes?",
"jumbo": {
"come-back": "Devfest Nantes will be back",
"date": "on October 17,18 2024",
"date": "October 17,18 2024",
"cfp": "Become speaker",
"previous": "2022 Edition",
"schedule": "Schedule",
"generate-ticket": "Edit my ticket",
"bring-ecocup": "Don't forget your own eco-cup and bag !",
"resend-tickets": "Resend my tickets",
Expand Down
3 changes: 2 additions & 1 deletion locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
"what-is": "Le DevFest Nantes",
"jumbo": {
"come-back": "Le Devfest Nantes reviendra",
"date": "les 17 & 18 Octobre 2024",
"date": "17 & 18 Octobre 2024",
"cfp": "Devenir speaker",
"previous": "Édition 2022",
"schedule": "Programme",
"generate-ticket": "Générer mon billet",
"bring-ecocup": "N'oubliez pas vos propres eco-cups et sac !",
"resend-tickets": "Renvoyer mes billets",
Expand Down
16,865 changes: 6,658 additions & 10,207 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/commun/jumbo/jumbo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const Jumbo: React.FC<
React.PropsWithChildren<{ background?: string }>
> = ({ children, background }) => {
return (
<div className="jumbo bande-film-bottom">
<div className="jumbo">
<div className="jumbo-content">{children}</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/commun/section/section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

&.slim {
padding: 2rem 10vw;
padding: 1.2rem 10vw;
}

&.padding-none {
Expand Down
7 changes: 7 additions & 0 deletions src/components/home/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@
width: 100%;
margin-top: 10%;
max-height: 45%;
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
img {
height: auto;
width: 50%;
max-height: 100%;
margin: auto;
display: block;
@media (max-width: 960px) {
width: 75%;
}
}
}

Expand Down
30 changes: 19 additions & 11 deletions src/components/home/jumbo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ export const HomeJumbo = () => {
</div>

<div>
<Typography variant="h1" textAlign="center">
{/* <Typography variant="h1" textAlign="center">
{t("come-back")}
</Typography>
</Typography> */}
<Typography variant="h1" textAlign="center">
{t("date")}
</Typography>
{/*<Typography*/}
{/* variant="h2"*/}
{/* textAlign="center"*/}
{/* style={{marginTop: "10px", marginBottom: "25px"}}*/}
{/*>*/}
{/* Code, Dev, et... Action !*/}
{/*</Typography>*/}
<Typography
variant="h2"
textAlign="center"
style={{marginTop: "10px", marginBottom: "25px"}}
>
At night, they come to code !
</Typography>
<Stack direction="column" spacing={3}>
{/*<Stack direction="row" spacing={3} justifyContent={"center"}>*/}
{/* <Button*/}
Expand All @@ -52,14 +52,14 @@ export const HomeJumbo = () => {
>
{t("cfp")}
</Button> */}
<Button
{/* <Button
color="secondary"
variant="contained"
href="https://www.billetweb.fr/partenaire-devfest-nantes-2024"
aria-label="Devenir Sponsor"
>
Devenir Sponsor 2024
</Button>
</Button> */}
<Button
color="secondary"
variant="contained"
Expand All @@ -68,6 +68,14 @@ export const HomeJumbo = () => {
>
Billetterie
</Button>
<Button
color="secondary"
variant="contained"
aria-label="Billetterie"
href="/schedule"
>
{t('schedule')}
</Button>
</Stack>
<Stack direction="row" spacing={3} justifyContent={"center"}>

Expand Down
4 changes: 3 additions & 1 deletion src/components/session/sessionPageTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const SessionPageTemplate: React.FC<{ pageContext: { session: Session } }> = ({
>
{session.title}
</Typography>
<Stack spacing={5}>
<Stack spacing={3}>
<Stack direction="row" spacing={2} alignItems="center">
<Typography
variant="h3"
Expand Down Expand Up @@ -156,6 +156,8 @@ const SpeakerCard: React.FC<{ speakerKey }> = ({ speakerKey }) => {
minHeight: "75px",
color: "var(--tertiary)",
backgroundColor: "var(--primary)",
border: "1px solid white",
borderLeft: "5px solid var(--secondary)"
}}
>
<Stack
Expand Down
11 changes: 6 additions & 5 deletions src/components/speakers/speakerPageTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ const SpeakerPageTemplate: React.FC<{ pageContext: { speaker: Speaker } }> = ({
<Layout>
<DefaultPage title={speaker.name} noHero={true}>
<TertiarySection slim>
<Stack spacing={5}>
<Stack spacing={5} direction="column" alignItems="center">
<Stack spacing={1}>
<Stack spacing={2} direction="column" alignItems="center">
<AvatarSpeaker speaker={speaker} size="large" />
<Typography
variant="h1"
color="primary"
sx={{ marginBottom: "5px" }}
sx={{ marginBottom: "2px" }}
>
{speaker.name}
</Typography>
{speaker.company && (
<Typography
variant="h4"
style={{ color: "white", marginTop: "20px" }}
style={{ color: "white", marginTop: "10px" }}
>
{speaker.company}
</Typography>
Expand Down Expand Up @@ -101,7 +101,8 @@ const SessionCard: React.FC<{ session: PartialSession }> = ({ session }) => {
color: "var(--tertiary)",
backgroundColor: "var(--primary)",
padding: "10px",
border: "1px solid white"
border: "1px solid white",
borderLeft: "5px solid var(--secondary)"
}}
>
<Stack
Expand Down
34 changes: 18 additions & 16 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,44 +15,46 @@ import {
HomeMap,
Tickets,
} from "../components/home";
import { PlanCite } from "../components/home/plan";
import { Partners } from "../components/partners";
import Layout from "../layout";

const HomeContent = () => {
const { t } = useTranslation("translation");
return (
<>
<PrimarySection>
<PrimarySection>
<Typography variant="h1">{t("pages.home.what-is")}</Typography>
<Typography variant="body1">{t("site.description")}</Typography>
<Typography variant="body1">{t("site.theme")}</Typography>
<DevfestNumbers />
<Youtube id="IE0pnWdSwuw" title="After Movie 2023" />
</PrimarySection>
{/*<PlanCite />*/}
<HomeMap />
{/*<DefaultSection variant="primary-dark" className="home-speakers">*/}
{/* <Typography variant="h2">{t("pages.home.speakers.title")}</Typography>*/}
{/* <Speakers featuredOnly={true} />*/}
{/* <Stack justifyContent="center" alignItems="center" marginTop={8}>*/}
{/* <MyLink to="/speakers">*/}
{/* <Button variant="contained">*/}
{/* {t("pages.home.speakers.seeAll")}*/}
{/* </Button>*/}
{/* </MyLink>*/}
{/* </Stack>*/}
{/*</DefaultSection>*/}
<PrimarySection>
{/* <PrimarySection slim className="home-speakers">
<Typography variant="h2">{t("pages.home.speakers.title")}</Typography>
<Speakers featuredOnly={true} />
<Stack justifyContent="center" alignItems="center">
<MyLink to="/speakers">
<Button variant="contained">
{t("pages.home.speakers.seeAll")}
</Button>
</MyLink>
</Stack>
</PrimarySection> */}
<PrimarySection slim>
<Typography variant="h2">{t("pages.home.tickets.name")}</Typography>
<Typography variant="h3">
{t("pages.home.tickets.description")}
</Typography>
<Tickets />
</PrimarySection>
<PlanCite />
<TertiarySection slim>
<Typography variant="h2">{t("pages.home.newsletter")}</Typography>
<SubscribeNewsletter />
</TertiarySection>
{/*<Partners onlyPlatinium={true} />*/}
<HomeMap />
<Partners onlyPlatinium={true} />

<DevfestPhotos />
</>
Expand Down

0 comments on commit 9737392

Please sign in to comment.