Skip to content

Commit

Permalink
[EN-6251] feat: page orienter (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulEntourage authored Dec 7, 2023
1 parent 5513e24 commit 8ff3127
Show file tree
Hide file tree
Showing 89 changed files with 1,211 additions and 596 deletions.
11 changes: 11 additions & 0 deletions assets/icons/orienter-carte-solidaire.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/icons/orienter-sablier.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 48 additions & 44 deletions cypress/e2e/parcours-orienter.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,51 +14,9 @@ describe('Parcours Orienter', () => {
cy.visit('/orienter');
});

describe('Nous contacter', () => {
it('Remplir le formulaire, envoyer et fermer', () => {
cy.get('[data-testid="button-contact"]').first().click();

cy.wait(500);

cy.get('.ReactModalPortal div').first().should('be.visible');

cy.get('#form-interest-lastName').scrollIntoView().type('Doe');

cy.get('#form-interest-firstName').scrollIntoView().type('John');

cy.get('#form-interest-email').scrollIntoView().type('johndoe@gmail.com');

cy.get('#form-interest-phone').scrollIntoView().type('0698754321');

cy.get('#form-interest-structure').scrollIntoView().type('Test');

cy.get('#form-interest-message').scrollIntoView().type('Form test');

cy.get('#form-interest-heardAbout-container')
.should('be.visible')
.scrollIntoView()
.click()
.find('.option')
.contains('Autre')
.click();

cy.get('label[for="form-interest-cgu"]').scrollIntoView().click();

cy.get('button').contains('Envoyer').click();

cy.wait('@postContact');

cy.get('[data-testid="success-modal-content"]').should('be.visible');

cy.get('[data-testid="success-close-modal"]').click();

cy.get('[data-testid="success-modal-content"]').should('not.exist');
});
});

describe('Orienter un candidat', () => {
it('Remplir le formulaire, envoyer et fermer', () => {
cy.get('[data-testid="button-orientate"]').first().click();
cy.get('[data-testid="button-orienter"]').first().click();

cy.wait(500);

Expand Down Expand Up @@ -282,5 +240,51 @@ describe('Parcours Orienter', () => {

cy.get('.ReactModalPortal div').should('not.exist');
});
});
})


describe('Nous contacter', () => {
it('Remplir le formulaire, envoyer et fermer', () => {
cy.get('[data-testid="button-contact"]')
.scrollIntoView()
.first()
.click();

cy.wait(500);

cy.get('.ReactModalPortal div').first().should('be.visible');

cy.get('#form-interest-lastName').scrollIntoView().type('Doe');

cy.get('#form-interest-firstName').scrollIntoView().type('John');

cy.get('#form-interest-email').scrollIntoView().type('johndoe@gmail.com');

cy.get('#form-interest-phone').scrollIntoView().type('0698754321');

cy.get('#form-interest-structure').scrollIntoView().type('Test');

cy.get('#form-interest-message').scrollIntoView().type('Form test');

cy.get('#form-interest-heardAbout-container')
.should('be.visible')
.scrollIntoView()
.click()
.find('.option')
.contains('Autre')
.click();

cy.get('label[for="form-interest-cgu"]').scrollIntoView().click();

cy.get('button').contains('Envoyer').click();

cy.wait('@postContact');

cy.get('[data-testid="success-modal-content"]').should('be.visible');

cy.get('[data-testid="success-close-modal"]').click();

cy.get('[data-testid="success-modal-content"]').should('not.exist');
});
});;
});
Binary file added public/static/img/orienter-banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/img/orienter-calendrier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/img/orienter-cv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/img/orienter-decouvrir-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/img/orienter-diffuser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/img/orienter-emploi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/img/orienter-publier.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/components/partials/Aider/H2/index.ts

This file was deleted.

7 changes: 7 additions & 0 deletions src/components/partials/EnSavoirPlus/EnSavoirPlus.styles.tsx
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;
`;
53 changes: 53 additions & 0 deletions src/components/partials/EnSavoirPlus/EnSavoirPlus.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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&nbsp;?
</>
}
color="black"
center
/>
<StyledEnSavoirPlusButtonContainer>
<MultipleCTA
data={[
{
button: {
label: 'Nous contacter',
onClick: () => {
gaEvent(GA_TAGS.PAGE_ORIENTER_CONTACT_CLIC);
openModal(<ModalInterestLinkedOut />);
},
dataTestId: 'button-contact',
},
},
{
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>
);
};
1 change: 1 addition & 0 deletions src/components/partials/EnSavoirPlus/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './EnSavoirPlus';
11 changes: 2 additions & 9 deletions src/components/partials/ImageTitle/ImageTitle.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,16 @@ export const StyledImageTitle = styled.section`
h1 {
margin: 0;
font-size: 24px;
color: white;
font-weight: 700;
}
p {
font-size: 14px;
line-height: 20px;
padding-right: 40px;
flex: 1;
display: flex;
align-items: center;
margin-top: 16px;
color: ${(props) => props.textColor};
}
&.desktop {
padding: 40px 55% 40px 40px;
h1 {
font-size: 32px;
}
p {
font-size: 20px;
line-height: 30px;
Expand Down
17 changes: 11 additions & 6 deletions src/components/partials/ImageTitle/ImageTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ interface CTAProps {
onClick: () => void;
label: string;
href?: string;
style: UIKIT_BUTTON_STYLES_SPEC;
style?: UIKIT_BUTTON_STYLES_SPEC;
isExternal?: boolean;
newTab?: boolean;
dataTest: string;
dataTest?: string;
}

interface ImageTitleProps {
title: string;
description: string;
img: string;
imgMobile?: string;
title: React.ReactNode;
description: React.ReactNode;
alt?: string;
textColor?: string;
cta?: CTAProps | CTAProps[];
}

Expand All @@ -34,6 +35,7 @@ export const ImageTitle = ({
imgMobile,
alt,
cta,
textColor,
}: ImageTitleProps) => {
const isDesktop = useIsDesktop();

Expand All @@ -45,10 +47,13 @@ export const ImageTitle = ({
isHero
hasCta={!!cta}
>
<StyledImageTitle className={`${isDesktop ? 'desktop' : ''}`}>
<StyledImageTitle
className={`${isDesktop ? 'desktop' : ''}`}
textColor={textColor || 'white'}
>
<H1
title={title}
color="white"
color={textColor || 'white'}
effect="cls: uk-animation-slide-left uk-animation-fade; delay: 200;"
/>
<p data-uk-scrollspy="cls: uk-animation-slide-left uk-animation-fade; delay: 200;">
Expand Down
67 changes: 0 additions & 67 deletions src/components/partials/LogoList.tsx

This file was deleted.

33 changes: 33 additions & 0 deletions src/components/partials/LogoList/LogoList.styles.tsx
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;
`;
Loading

0 comments on commit 8ff3127

Please sign in to comment.