Skip to content

Commit

Permalink
la suite numérique
Browse files Browse the repository at this point in the history
  • Loading branch information
youssefElMkhantar committed Jun 21, 2024
1 parent 1b651cf commit 0272d76
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 27 deletions.
Binary file added public/static/media/visuel_webconf.webp
Binary file not shown.
Binary file added src/assets/visuel_webconf.webp
Binary file not shown.
Binary file added src/assets/webconf_img_40OP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/components/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import { Footer, FooterProps } from '@codegouvfr/react-dsfr/Footer';

interface props {
headerFooterDisplayItem: FooterProps.BottomItem;
style: any;
}

function footer({ headerFooterDisplayItem }: props) {
function footer({ headerFooterDisplayItem, style }: props) {
return (
<Footer
className={style}
accessibility="fully compliant"
brandTop={
<>
Expand Down
7 changes: 7 additions & 0 deletions src/components/layout/Layout.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* .layout {
background-image: url(../../assets/visuel_webconf.webp);
} */

/* .footer {
background-color: white;
} */
11 changes: 9 additions & 2 deletions src/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ interface headerProps {
export default function Layout(propos: headerProps) {
return (
<div className={styles.layout}>
<Header {...propos} />
<header>
<Header {...propos} />
</header>
<main>
<Outlet />
</main>
<Footer headerFooterDisplayItem={headerFooterDisplayItem} />
<footer className={styles.footer}>
<Footer
style="footer"
headerFooterDisplayItem={headerFooterDisplayItem}
/>
</footer>
<Display />
</div>
);
Expand Down
46 changes: 24 additions & 22 deletions src/pages/home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,30 @@ interface AuthModalProps {
function Home(props: AuthModalProps) {
const [buttons, setButtons] = useState<boolean>(false);
return (
<div
className={styles.home}
onClick={
((event: MouseEvent) => {
const div = event.currentTarget;
const plusButton = div.querySelector('#plusButton');
const copyButton = div.querySelector('#copyButton');
const calendarButton = div.querySelector('#calendarButton');
const calendar = document.querySelector('#Calendar');
if (
event.target !== plusButton &&
event.target !== copyButton &&
event.target !== calendarButton &&
!calendar?.contains(event.target as any)
) {
setButtons(false);
}
}) as MouseEventHandler<HTMLDivElement>
}
>
<HomeForm {...props} setButtons={setButtons} buttons={buttons} />
<HomeSlider />
<div className={styles.homeContainer}>
<div
className={styles.home}
onClick={
((event: MouseEvent) => {
const div = event.currentTarget;
const plusButton = div.querySelector('#plusButton');
const copyButton = div.querySelector('#copyButton');
const calendarButton = div.querySelector('#calendarButton');
const calendar = document.querySelector('#Calendar');
if (
event.target !== plusButton &&
event.target !== copyButton &&
event.target !== calendarButton &&
!calendar?.contains(event.target as any)
) {
setButtons(false);
}
}) as MouseEventHandler<HTMLDivElement>
}
>
<HomeForm {...props} setButtons={setButtons} buttons={buttons} />
<HomeSlider />
</div>
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/home/HomeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,14 @@ function HomeForm(props: AuthModalProps) {
{props.participantNumber} participants.
</Badge>
<hr />
<Alert
{/* <Alert
closable={false}
description="Il est recommandé de ne pas dépasser 40 participants par conférence pour
optimiser le confort de vos différents échanges."
severity="info"
small
title=""
/>
/> */}
<br />
<p>
En savoir plus sur la <strong>WebConf</strong> de l'Etat
Expand Down
10 changes: 10 additions & 0 deletions src/pages/home/HomeSlider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Fade } from 'react-slideshow-image';
import { Alert } from '@codegouvfr/react-dsfr/Alert';

import 'react-slideshow-image/dist/styles.css';
import styles from './Home.module.css';

Expand Down Expand Up @@ -34,6 +36,14 @@ const HomeSlider = () => {
))}
</Fade>
</div>
<Alert
closable={false}
description="Il est recommandé de ne pas dépasser 40 participants par conférence pour
optimiser le confort de vos différents échanges."
severity="info"
small
title=""
/>
</div>
);
};
Expand Down

0 comments on commit 0272d76

Please sign in to comment.