Skip to content

Commit

Permalink
TRELLO-2706
Browse files Browse the repository at this point in the history
ajout des ancres sur les liens vers les fiches pratiques sur les LP du BF
  • Loading branch information
AlineGauthier committed Nov 12, 2024
1 parent 0094a5a commit b98e945
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {
AlternatingPurpleBands,
getManualLpButtonProps,
HighlightBlue,
HighlightPurple,
LinkToFichePratique,
LpColoredBand,
NarrowAndCentered,
WithSuperheroIllustration,
getManualLpButtonProps,
} from '@/landings/manualLandingsUtils'

import Button from '@codegouvfr/react-dsfr/Button'
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {notFound} from 'next/navigation'

export function blackFridayAboFraisCaches(props: PageComponentProps) {
Expand Down Expand Up @@ -108,7 +109,9 @@ export function blackFridayAboFraisCaches(props: PageComponentProps) {
</NarrowAndCentered>
<LinkToFichePratique
url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/pieges-sur-les-sites-de-commerce-en-ligne-attention-aux-dark-patterns"
text="la fiche pratique Dark pattern"
url2="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/abonnements-caches"
text2="la fiche pratique Abonnements cachés"
/>
</LpColoredBand>
</FullWidthPageContainer>
Expand Down
10 changes: 6 additions & 4 deletions website/src/reusablePages/manual_landings/blackFridayColis.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {
AlternatingPurpleBands,
getManualLpButtonProps,
HighlightBlue,
HighlightPurple,
LinkToFichePratique,
LpColoredBand,
NarrowAndCentered,
WithSuperheroIllustration,
getManualLpButtonProps,
} from '@/landings/manualLandingsUtils'

import Button from '@codegouvfr/react-dsfr/Button'
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {notFound} from 'next/navigation'

export function blackFridayColis(props: PageComponentProps) {
Expand Down Expand Up @@ -112,7 +113,8 @@ export function blackFridayColis(props: PageComponentProps) {
</p>
{button}
</NarrowAndCentered>
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/les-fiches-pratiques/livraison-quelles-sont-les-obligations-du-professionnel-et-les-recours" />
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/les-fiches-pratiques/livraison-quelles-sont-les-obligations-du-professionnel-et-les-recours"
text="la fiche pratique Droits et obligations du professionnel en matière de livraison" />
</LpColoredBand>
</FullWidthPageContainer>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {
AlternatingPurpleBands,
getManualLpButtonProps,
HighlightBlue,
HighlightPurple,
LinkToFichePratique,
LpColoredBand,
NarrowAndCentered,
WithSuperheroIllustration,
getManualLpButtonProps,
} from '@/landings/manualLandingsUtils'

import Button from '@codegouvfr/react-dsfr/Button'
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {notFound} from 'next/navigation'

export function blackFridayDarkPatterns(props: PageComponentProps) {
Expand Down Expand Up @@ -117,7 +118,8 @@ export function blackFridayDarkPatterns(props: PageComponentProps) {
</p>
{button}
</NarrowAndCentered>
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/pieges-sur-les-sites-de-commerce-en-ligne-attention-aux-dark-patterns" />
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/pieges-sur-les-sites-de-commerce-en-ligne-attention-aux-dark-patterns"
text="la fiche pratique Dark pattern" />
</LpColoredBand>
</FullWidthPageContainer>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {
AlternatingPurpleBands,
getManualLpButtonProps,
HighlightBlue,
HighlightPurple,
LinkToFichePratique,
LpColoredBand,
NarrowAndCentered,
WithSuperheroIllustration,
getManualLpButtonProps,
} from '@/landings/manualLandingsUtils'

import Button from '@codegouvfr/react-dsfr/Button'
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {notFound} from 'next/navigation'

export function blackFridayFausseReduction(props: PageComponentProps) {
Expand Down Expand Up @@ -100,7 +101,9 @@ export function blackFridayFausseReduction(props: PageComponentProps) {
</p>
{button}
</NarrowAndCentered>
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/Annonce-de-reduction-de-prix" />
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/Annonce-de-reduction-de-prix"
text="la fiche pratique Fausses réductions de prix"
/>
</LpColoredBand>
</FullWidthPageContainer>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {
AlternatingPurpleBands,
getManualLpButtonProps,
HighlightBlue,
HighlightPurple,
LinkToFichePratique,
LpColoredBand,
NarrowAndCentered,
getManualLpButtonProps,
} from '@/landings/manualLandingsUtils'

import Button from '@codegouvfr/react-dsfr/Button'
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {notFound} from 'next/navigation'

export function blackFridayFauxStocks(props: PageComponentProps) {
Expand Down Expand Up @@ -94,7 +95,9 @@ export function blackFridayFauxStocks(props: PageComponentProps) {
</p>
{button}
</NarrowAndCentered>
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/pieges-sur-les-sites-de-commerce-en-ligne-attention-aux-dark-patterns" />
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/pieges-sur-les-sites-de-commerce-en-ligne-attention-aux-dark-patterns"
text="la fiche pratique Dark pattern"
/>
</LpColoredBand>
</FullWidthPageContainer>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {
AlternatingPurpleBands,
getManualLpButtonProps,
HighlightBlue,
HighlightPurple,
LinkToFichePratique,
LpColoredBand,
NarrowAndCentered,
WithSuperheroIllustration,
getManualLpButtonProps,
} from '@/landings/manualLandingsUtils'

import Button from '@codegouvfr/react-dsfr/Button'
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {notFound} from 'next/navigation'

export function blackFridayRetractation(props: PageComponentProps) {
Expand Down Expand Up @@ -113,7 +114,9 @@ export function blackFridayRetractation(props: PageComponentProps) {
</p>
{button}
</NarrowAndCentered>
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/Delais-de-reflexion-ou-de-retractation" />
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/Delais-de-reflexion-ou-de-retractation"
text="la fiche pratique Délai de réflexion ou de rétractation"
/>
</LpColoredBand>
</FullWidthPageContainer>
)
Expand Down
10 changes: 6 additions & 4 deletions website/src/reusablePages/manual_landings/blackFridaySav.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {
AlternatingPurpleBands,
getManualLpButtonProps,
HighlightBlue,
HighlightPurple,
LinkToFichePratique,
LpColoredBand,
NarrowAndCentered,
WithSuperheroIllustration,
getManualLpButtonProps,
} from '@/landings/manualLandingsUtils'

import Button from '@codegouvfr/react-dsfr/Button'
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {notFound} from 'next/navigation'

export function blackFridaySav(props: PageComponentProps) {
Expand Down Expand Up @@ -112,7 +113,8 @@ export function blackFridaySav(props: PageComponentProps) {
</p>
{button}
</NarrowAndCentered>
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/le-service-apres-vente" />
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/le-service-apres-vente"
text="la fiche pratique Service Après Vente"/>
</LpColoredBand>
</FullWidthPageContainer>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {
AlternatingPurpleBands,
getManualLpButtonProps,
HighlightBlue,
HighlightPurple,
LinkToFichePratique,
LpColoredBand,
NarrowAndCentered,
getManualLpButtonProps,
} from '@/landings/manualLandingsUtils'

import Button from '@codegouvfr/react-dsfr/Button'
import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {PageComponentProps} from '@/core/metadatas'
import {notFound} from 'next/navigation'

export function blackFridaySitesFrauduleux(props: PageComponentProps) {
Expand Down Expand Up @@ -108,7 +109,8 @@ export function blackFridaySitesFrauduleux(props: PageComponentProps) {
</p>
{button}
</NarrowAndCentered>
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/acheter-sur-internet" />
<LinkToFichePratique url="https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/acheter-sur-internet"
text="la fiche pratique Acheter sur internet"/>
</LpColoredBand>
</FullWidthPageContainer>
)
Expand Down

0 comments on commit b98e945

Please sign in to comment.