-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5513e24
commit 2e860e8
Showing
89 changed files
with
1,130 additions
and
571 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from 'react'; | ||
import { MultipleCTA } from '../MultipleCTA'; | ||
import { openModal } from 'src/components/modals/Modal'; | ||
import { ModalInterestLinkedOut } from 'src/components/modals/Modal/ModalGeneric/StepperModal/ModalInterestLinkedOut'; | ||
import { Section } from 'src/components/utils'; | ||
import { H2 } from 'src/components/utils/Headings'; | ||
import { GA_TAGS } from 'src/constants/tags'; | ||
import { gaEvent } from 'src/lib/gtag'; | ||
import { StyledEnSavoirPlusButtonContainer } from './EnSavoirPlus.styles'; | ||
|
||
export const EnSavoirPlus = () => { | ||
return ( | ||
<Section container="large" style="muted"> | ||
<H2 | ||
title={ | ||
<> | ||
Vous souhaitez <span className="orange">en savoir plus</span> sur | ||
LinkedOut ? | ||
</> | ||
} | ||
color="black" | ||
center | ||
/> | ||
<StyledEnSavoirPlusButtonContainer> | ||
<MultipleCTA | ||
data={[ | ||
{ | ||
button: { | ||
label: 'Nous contacter', | ||
onClick: () => { | ||
gaEvent(GA_TAGS.PAGE_ORIENTER_CONTACT_CLIC); | ||
openModal(<ModalInterestLinkedOut />); | ||
}, | ||
}, | ||
}, | ||
{ | ||
button: { | ||
label: 'Télécharger la brochure', | ||
href: process.env.ASSOCIATION_BROCHURE, | ||
external: true, | ||
onClick: () => { | ||
gaEvent(GA_TAGS.PAGE_ORIENTER_BROCHURE_CLIC); | ||
}, | ||
style: 'custom-primary-inverted', | ||
}, | ||
}, | ||
]} | ||
/> | ||
</StyledEnSavoirPlusButtonContainer> | ||
</Section> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const StyledEnSavoirPlusButtonContainer = styled.div` | ||
display: block; | ||
max-width: 550px; | ||
margin: 40px auto 0; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './EnSavoirPlus'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const LogoListFlexContainer = styled.div` | ||
display: flex; | ||
flex-wrap: wrap; | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
margin-left: -15px; | ||
justify-content: center; | ||
align-items: center; | ||
&.background { | ||
background-color: #fff; | ||
} | ||
&.border-rounded { | ||
border-radius: 5px; | ||
} | ||
&.padding { | ||
} | ||
padding: 15px; | ||
`; | ||
|
||
export const LogoListFlexItem = styled.div` | ||
box-sizing: border-box; | ||
padding-left: 15px; | ||
width: ${({ width }) => { | ||
return width; | ||
}}; | ||
`; | ||
|
||
export const StyledCarouselItem = styled.div` | ||
margin: 0 40px !important; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React from 'react'; | ||
import { Logo } from 'src/components/utils'; | ||
import { CarouselSwiper } from 'src/components/utils/CarouselSwiper'; | ||
import { | ||
LogoListFlexContainer, | ||
LogoListFlexItem, | ||
StyledCarouselItem, | ||
} from './LogoList.styles'; | ||
|
||
interface LogoListProps { | ||
logos: { | ||
key: string; | ||
link: string; | ||
bis?: boolean; | ||
}[]; | ||
carousel?: boolean; | ||
padding?: boolean; | ||
background?: boolean; | ||
} | ||
|
||
export const LogoList = ({ | ||
logos, | ||
carousel, | ||
padding, | ||
background, | ||
}: LogoListProps) => { | ||
const logosPerLine = logos.length > 12 ? 5 : Math.floor(logos.length / 3 + 1); | ||
if (carousel) { | ||
return ( | ||
<CarouselSwiper | ||
slidesPerview={logosPerLine} | ||
slides={logos.map(({ key, link, bis }) => { | ||
return ( | ||
<StyledCarouselItem key={key}> | ||
<Logo logoKey={key} link={link} bis={bis} /> | ||
</StyledCarouselItem> | ||
); | ||
})} | ||
/> | ||
); | ||
} | ||
return ( | ||
<LogoListFlexContainer | ||
className={`${background ? 'background' : 'border-rounded'} ${ | ||
padding ? 'padding' : '' | ||
}`} | ||
> | ||
{logos.map(({ key, link, bis }) => { | ||
return ( | ||
<LogoListFlexItem | ||
width={`calc(100% * 1 / ${logosPerLine <= 3 ? 3 : logosPerLine})`} | ||
> | ||
<Logo logoKey={key} link={link} bis={bis} /> | ||
</LogoListFlexItem> | ||
); | ||
})} | ||
</LogoListFlexContainer> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './LogoList'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.