Skip to content

Commit

Permalink
Corrections de mise en forme sur le site
Browse files Browse the repository at this point in the history
  • Loading branch information
mariheck committed Oct 1, 2024
1 parent 3c93258 commit 432f74c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion packages/site/app/Temoignages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type TemoignagesProps = {
const Temoignages = ({ titre, contenu }: TemoignagesProps) => {
return contenu.length > 1 ? (
<Section>
{/* <h2 className="text-center max-md:mb-2">{titre}</h2> */}
{!!titre.trim() && <h2 className="text-center max-md:mb-2">{titre}</h2>}
<TestimonialSlideshow
contenu={contenu}
className="rounded-md md:w-3/4 mx-auto md:border border-primary-3"
Expand Down
6 changes: 3 additions & 3 deletions packages/site/app/collectivites/Carte.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const Carte = () => {
</h2>

<p className="text-center text-grey-8 text-2xl mb-2">
Parcourez notre carte interactive et découvrez les collectivités.
Parcourez notre carte interactive et découvrez les collectivités
</p>

<p className="text-center text-info-1 italic text-sm mb-0">
Seules les collectivités labellisées disposent d’une page
personnalisée.
Cliquez sur les collectivités labellisées pour découvrir leur page
personnalisée
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion packages/site/app/programme/ProgrammeBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ProgrammeBanner = ({
<Section>
<h1 className="text-center text-primary-8">{titre}</h1>
{!!description && (
<p className="text-[1.375rem] text-grey-8 text-center">{description}</p>
<p className="text-2xl text-grey-8 text-center">{description}</p>
)}
{!!couvertureURL && (
<EmbededVideo
Expand Down
48 changes: 24 additions & 24 deletions packages/site/components/layout/AppHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
'use client';

import {usePathname} from 'next/navigation';
import { usePathname } from 'next/navigation';
import Image from 'next/image';
import {MenuPrincipal} from './MenuPrincipal';
import {Dispatch, SetStateAction, useEffect, useState} from 'react';
import { MenuPrincipal } from './MenuPrincipal';
import { Dispatch, SetStateAction, useEffect, useState } from 'react';
import classNames from 'classnames';
import {getAuthPaths, getAppBaseUrl} from '@tet/api';
import { getAuthPaths, getAppBaseUrl } from '@tet/api';

export type MenuProps = {
menuOpened: boolean;
setMenuOpened: Dispatch<SetStateAction<boolean>>;
};

function Brand({menuOpened, setMenuOpened}: MenuProps) {
function Brand({ menuOpened, setMenuOpened }: MenuProps) {
return (
<div className="fr-header__brand-top">
<div className="fr-header__logo">
Expand All @@ -23,7 +23,7 @@ function Brand({menuOpened, setMenuOpened}: MenuProps) {
</p>
</div>
<div className="fr-header__operator">
<div className="fr-grid-row" style={{minWidth: 160 + 'px'}}>
<div className="fr-grid-row" style={{ minWidth: 160 + 'px' }}>
<Image src="/ademe.jpg" alt="ADEME" width="70" height="80" />
<Image
src="/territoire-engage.jpg"
Expand All @@ -41,7 +41,7 @@ function Brand({menuOpened, setMenuOpened}: MenuProps) {
id="button-861"
title="Menu"
className="fr-btn--menu fr-btn"
onClick={() => setMenuOpened(prevState => !prevState)}
onClick={() => setMenuOpened((prevState) => !prevState)}
>
Menu
</button>
Expand All @@ -58,8 +58,8 @@ function Links() {
setAuthPaths(
getAuthPaths(
document.location.hostname,
getAppBaseUrl(document.location.hostname),
),
getAppBaseUrl(document.location.hostname)
)
);
}, []);

Expand All @@ -68,6 +68,17 @@ function Links() {

return (
<ul className="fr-btns-group">
<li>
<a
href="/faq"
className={classNames('fr-btn', {
'fr-icon-question-line': !isFAQ,
'fr-icon-question-fill': isFAQ,
})}
>
FAQ
</a>
</li>
<li>
<a
href={authPaths?.signUp}
Expand All @@ -92,17 +103,6 @@ function Links() {
Se connecter
</a>
</li>
<li>
<a
href="/faq"
className={classNames('fr-btn', {
'fr-icon-question-line': !isFAQ,
'fr-icon-question-fill': isFAQ,
})}
>
FAQ
</a>
</li>
</ul>
);
}
Expand Down Expand Up @@ -141,7 +141,7 @@ function Body(props: MenuProps) {
);
}

function Menu({menuOpened, setMenuOpened}: MenuProps) {
function Menu({ menuOpened, setMenuOpened }: MenuProps) {
return (
<div
id="modal-header__menu"
Expand All @@ -168,7 +168,7 @@ function Menu({menuOpened, setMenuOpened}: MenuProps) {
aria-label="Menu principal"
className="fr-nav"
>
<MenuPrincipal {...{menuOpened, setMenuOpened}} />
<MenuPrincipal {...{ menuOpened, setMenuOpened }} />
</nav>
</div>
</div>
Expand All @@ -180,8 +180,8 @@ const AppHeader = () => {

return (
<header role="banner" id="header-navigation" className="fr-header">
<Body {...{menuOpened, setMenuOpened}} />
<Menu {...{menuOpened, setMenuOpened}} />
<Body {...{ menuOpened, setMenuOpened }} />
<Menu {...{ menuOpened, setMenuOpened }} />
</header>
);
};
Expand Down

0 comments on commit 432f74c

Please sign in to comment.