Skip to content

Commit

Permalink
fix parteners
Browse files Browse the repository at this point in the history
  • Loading branch information
axelcasareale committed Jan 8, 2025
1 parent ac3c2b6 commit 9f8a1eb
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 59 deletions.
4 changes: 3 additions & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@
"terms": " HES-SO. All rights reserved.",
"partner-1": "https://www.mobiliere.ch",
"partner-2": "https://www.ehl.edu",
"partner-3": "https://www.hes-so.ch"
"partner-3": "https://www.hes-so.ch",
"partner-4": "https://heig-vd.ch",
"partner-5": "https://www.opi.ch/"
}
}
]
Expand Down
4 changes: 3 additions & 1 deletion public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@
"terms": " HES-SO. All rights reserved.",
"partner-1": "https://www.mobiliere.ch",
"partner-2": "https://www.ehl.edu",
"partner-3": "https://www.hes-so.ch"
"partner-3": "https://www.hes-so.ch",
"partner-4": "https://heig-vd.ch",
"partner-5": "https://www.opi.ch/"
}
}
]
Expand Down
Binary file added public/logo-e4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 26 additions & 2 deletions src/components/Footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Footer: React.FC = () => {
>
<Box
component="a"
href={t(`years.${selectedYearIndex(year)}.footer.partner-1`)} // Lien vers HES-SO
href={t(`years.${selectedYearIndex(year)}.footer.partner-1`)} // Lien vers La Mobiliere
target="_blank"
rel="noopener noreferrer"
sx={{mx: 2}}
Expand All @@ -46,7 +46,7 @@ const Footer: React.FC = () => {

<Box
component="a"
href={t(`years.${selectedYearIndex(year)}.footer.partner-2`)} // Lien vers HES-SO
href={t(`years.${selectedYearIndex(year)}.footer.partner-2`)} // Lien vers EHL
target="_blank"
rel="noopener noreferrer"
sx={{mx: 2}}
Expand All @@ -55,6 +55,18 @@ const Footer: React.FC = () => {
sx={{height: '50px', objectFit: 'contain'}}/>
</Box>

<Box
component="a"
href={t(`years.${selectedYearIndex(year)}.footer.partner-5`)} // Lien vers OPI
target="_blank"
rel="noopener noreferrer"
sx={{mx: 2}}
>
<Box component="img" src={"opi-logo.svg"} alt="OPI"
sx={{height: '20px', objectFit: 'contain'}}/>
</Box>


<Box
component="a"
href={t(`years.${selectedYearIndex(year)}.footer.partner-3`)} // Lien vers HES-SO
Expand All @@ -65,6 +77,18 @@ const Footer: React.FC = () => {
<Box component="img" src={"hes-so.png"} alt="HES-SO"
sx={{height: '50px', objectFit: 'contain'}}/>
</Box>

<Box
component="a"
href={t(`years.${selectedYearIndex(year)}.footer.partner-4`)} // Lien vers HEIG
target="_blank"
rel="noopener noreferrer"
sx={{mx: 2}}
>
<Box component="img" src={"logo_heig-vd.png"} alt="HEIG"
sx={{height: '20px', objectFit: 'contain'}}/>
</Box>

</Box>

{/* Title aligned to the right */}
Expand Down
128 changes: 73 additions & 55 deletions src/pages/Partners/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,25 @@ const Partners: React.FC = () => {
</Box>

{/* Logos Partenaire Platine */}
<div className={"partner-img"}>
<Box sx={{display: 'flex', justifyContent: 'center', alignItems: 'center', gap: 4, py: 4}}>
<div className="partner-img">
<Box
sx={{
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'center',
gap: 4,
py: 4,
}}
>
<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open(t(`years.${selectedYearIndex(year)}.footer.partner-1`), "_blank")
}>
<CardActionArea
onClick={() =>
window.open(
t(`years.${selectedYearIndex(year)}.footer.partner-1`),
"_blank"
)
}
>
<CardMedia
component="img"
height="200px"
Expand All @@ -113,9 +126,14 @@ const Partners: React.FC = () => {
</CardActionArea>
</Card>
<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open(t(`years.${selectedYearIndex(year)}.footer.partner-2`), "_blank")
}>
<CardActionArea
onClick={() =>
window.open(
t(`years.${selectedYearIndex(year)}.footer.partner-2`),
"_blank"
)
}
>
<CardMedia
component="img"
height="200px"
Expand All @@ -125,21 +143,24 @@ const Partners: React.FC = () => {
</CardActionArea>
</Card>
<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open("https://www.opi.ch/", "_blank")
}>
<CardActionArea onClick={() => window.open("https://www.opi.ch/", "_blank")}>
<CardMedia
component="img"
width="200px"
height="200px"
image="/opi-logo.svg"
alt="OPI Logo"
/>
</CardActionArea>
</Card>
<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open(t(`years.${selectedYearIndex(year)}.footer.partner-3`), "_blank")
}>
<CardActionArea
onClick={() =>
window.open(
t(`years.${selectedYearIndex(year)}.footer.partner-3`),
"_blank"
)
}
>
<CardMedia
component="img"
height="200px"
Expand All @@ -148,16 +169,13 @@ const Partners: React.FC = () => {
/>
</CardActionArea>
</Card>

<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open("https://heig-vd.ch", "_blank")
}>
<CardActionArea onClick={() => window.open("https://heig-vd.ch", "_blank")}>
<CardMedia
component="img"
height="200px"
image="/logo_heig-vd.png"
alt="HEIG-VD"
alt="HEIG-VD Logo"
/>
</CardActionArea>
</Card>
Expand Down Expand Up @@ -199,85 +217,84 @@ const Partners: React.FC = () => {
</Box>
*/}
{/* Partenaire Or */}
<div className={"partner-img"}>
<div className="partner-img">
<Box sx={{display: 'flex', flexDirection: 'column', textAlign: 'left', p: 2, pt: 4}}>
<Typography variant={"h4"} sx={{fontWeight: 'bold'}}>
<Typography variant="h4" sx={{fontWeight: 'bold'}}>
{t(`years.${selectedYearIndex(year)}.partners.partnerships.gold.title`)}
</Typography>
</Box>

{/* Logos Partenaire Or */}
<Box sx={{display: 'flex', justifyContent: 'center', alignItems: 'center', gap: 4, py: 4}}>
<Box
sx={{
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'center',
gap: 4,
py: 4,
}}
>
<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open("https://alpict.ch/", "_blank")
}>
<CardActionArea onClick={() => window.open("https://alpict.ch/", "_blank")}>
<CardMedia
sx={{p: 2}}
sx={{objectFit: 'contain', p: 2}}
component="img"
height="200px"
height="150px"
image="/alp_ict.png"
alt="ALP ICT Logo"
/>
</CardActionArea>
</Card>

<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open("https://icosys.ch/", "_blank")
}>
<CardActionArea onClick={() => window.open("https://icosys.ch/", "_blank")}>
<CardMedia
sx={{p: 2}}
sx={{objectFit: 'contain', p: 2}}
component="img"
height="200px"
height="150px"
image="/icosys-logo.png"
alt="iCoSys Logo"
/>
</CardActionArea>
</Card>

<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open("https://www.purestorage.com/solutions/ai.html", "_blank")
}>
<CardActionArea
onClick={() => window.open("https://www.purestorage.com/solutions/ai.html", "_blank")}
>
<CardMedia
sx={{p: 2}}
sx={{objectFit: 'contain', p: 2}}
component="img"
height="200px"
height="150px"
image="/logo_pure.svg"
alt="PureStorage"
/>
</CardActionArea>
</Card>

<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open("https://www.exoscale.com", "_blank")
}>
<CardActionArea onClick={() => window.open("https://www.exoscale.com", "_blank")}>
<CardMedia
sx={{p: 2}}
sx={{objectFit: 'contain', p: 2}}
component="img"
height="200px"
height="150px"
image="/logo_exoscale.jpg"
alt="Exoscale"
/>
</CardActionArea>
</Card>

<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open("https://www.innovaud.ch/en/", "_blank")
}>
<CardActionArea onClick={() => window.open("https://www.innovaud.ch/en/", "_blank")}>
<CardMedia
sx={{p: 2}}
sx={{objectFit: 'contain', p: 2}}
component="img"
height="200px"
height="150px"
image="/logo_innovaud.png"
alt="InnoVaud"
/>
</CardActionArea>
</Card>

</Box>
</div>
{/* <Box sx={{display: 'flex', flexDirection: 'column', textAlign: 'left', p: 2}}>
Expand Down Expand Up @@ -321,16 +338,17 @@ const Partners: React.FC = () => {
{t(`years.${selectedYearIndex(year)}.partners.partnerships.silver.title`)}
</Typography>
</Box>
{/* Logos Partenaire Or */}

<Box sx={{display: 'flex', justifyContent: 'center', alignItems: 'center', gap: 4, py: 4}}>

<Card sx={{border: '1px solid lightgrey'}} elevation={0}>
<CardActionArea onClick={
() => window.open("https://www.dina.ch", "_blank")
}>
<CardMedia
sx={{p: 2}}
sx={{objectFit: 'contain', p: 2}}
component="img"
width="200px"
height="100px"
image="/logo_dina.jpg"
alt="Dina Logo"
/>
Expand All @@ -342,9 +360,9 @@ const Partners: React.FC = () => {
() => window.open("https://www.e4company.com", "_blank")
}>
<CardMedia
sx={{p: 2}}
sx={{objectFit: 'contain', p: 2}}
component="img"
width="200px"
height="100px"
image="/logo-e4.png"
alt="E4 Logo"
/>
Expand Down Expand Up @@ -405,7 +423,7 @@ const Partners: React.FC = () => {
<CardMedia
sx={{p: 1}}
component="img"
height="200px"
height="100px"
image="/swissdevjobs.png"
alt="SwissDevJobs Logo"
/>
Expand Down

0 comments on commit 9f8a1eb

Please sign in to comment.