This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
20 changed files
with
258 additions
and
44 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,38 +1,18 @@ | ||
// This file sets a custom webpack configuration to use your Next.js app | ||
// with Sentry. | ||
// https://nextjs.org/docs/api-reference/next.config.js/introduction | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/ | ||
const { withSentryConfig } = require("@sentry/nextjs"); | ||
|
||
const { version } = require("./package.json"); | ||
|
||
const commitSha = process.env.GITHUB_SHA || "dev"; | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const moduleExports = { | ||
reactStrictMode: true, | ||
sentry: { | ||
disableClientWebpackPlugin: true, | ||
disableServerWebpackPlugin: true, | ||
}, | ||
}; | ||
|
||
const sentryWebpackPluginOptions = { | ||
// Additional config options for the Sentry Webpack plugin. Keep in mind that | ||
// the following options are set automatically, and overriding them is not | ||
// recommended: | ||
// release, url, org, project, authToken, configFile, stripPrefix, | ||
// urlPrefix, include, ignore | ||
|
||
silent: true, // Suppresses all logs | ||
// For all available options, see: | ||
// https://github.com/getsentry/sentry-webpack-plugin#options. | ||
env: { | ||
NEXT_PUBLIC_APP_VERSION: version, | ||
NEXT_PUBLIC_APP_VERSION_COMMIT: commitSha, | ||
NEXT_PUBLIC_APP_VERSION_COMMIT: process.env.GITHUB_SHA, | ||
}, | ||
}; | ||
|
||
// Make sure adding Sentry options is the last code to run before exporting, to | ||
// ensure that your source maps include changes from all other Webpack plugins | ||
module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions); | ||
module.exports = withSentryConfig(moduleExports, { silent: true }); |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> | ||
<url><loc>https://template.fabrique.social.gouv.fr</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-03-04T15:45:11.208Z</lastmod></url> | ||
<url><loc>https://template.fabrique.social.gouv.fr</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-03-04T18:00:28.304Z</lastmod></url> | ||
</urlset> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ type Image = { | |
}; | ||
|
||
type Logo = Image & { | ||
isMain?: boolean; | ||
href: string; | ||
}; | ||
|
||
|
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 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,15 @@ | ||
import { SkiplinkItem, Skiplinks } from "@dataesr/react-dsfr"; | ||
|
||
import { SkipLinksProps } from "./type"; | ||
|
||
export const SkipLinks = (props: SkipLinksProps): JSX.Element => { | ||
return ( | ||
<Skiplinks> | ||
{props.items.map((item, index) => ( | ||
<SkiplinkItem key={`${index}-${item.title}`} href={item.href}> | ||
{item.title} | ||
</SkiplinkItem> | ||
))} | ||
</Skiplinks> | ||
); | ||
}; |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export type HeadProps = { | ||
title: string; | ||
textLead: string | React.ReactNode | React.ReactNode[]; | ||
description: string; | ||
image: { | ||
src: string; | ||
alt: string; | ||
}; | ||
}; | ||
|
||
export const Head = (props: HeadProps): JSX.Element => { | ||
return ( | ||
<> | ||
<div className="fr-col-12 fr-col-md-6"> | ||
<h1> | ||
{props.title} | ||
<span className="fr-text--lead d-block fr-mt-3w"> | ||
{props.textLead} | ||
</span> | ||
</h1> | ||
<p className="fr-mt-10w">{props.description}</p> | ||
</div> | ||
<div className="fr-col-12 fr-col-offset-md-1 fr-col-md-4"> | ||
<img className="fr-mt-2w" src={props.image.src} alt={props.image.alt} /> | ||
</div> | ||
</> | ||
); | ||
}; |
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,3 @@ | ||
export * from "./tile"; | ||
export * from "./head"; | ||
export * from "./testimonial"; |
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,30 @@ | ||
export type TestimonialProps = { | ||
description: string; | ||
image: { | ||
src: string; | ||
alt: string; | ||
}; | ||
link: { | ||
title: string; | ||
href: string; | ||
}; | ||
}; | ||
|
||
export const Testimonial = (props: TestimonialProps): JSX.Element => { | ||
return ( | ||
<div className="fr-col-12 fr-col-md-4 fr-px-2w"> | ||
<div className="fr-centered fr-my-2w fr-py-4w"> | ||
<a | ||
target="_blank" | ||
className="fr-link" | ||
title={props.link.title} | ||
href={props.link.href} | ||
rel="noreferrer" | ||
> | ||
<img src={props.image.src} alt={props.image.alt} /> | ||
</a> | ||
</div> | ||
<p>{props.description}</p> | ||
</div> | ||
); | ||
}; |
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,31 @@ | ||
import Link from "next/link"; | ||
|
||
export type TileProps = { | ||
title: string; | ||
description: string; | ||
href: string; | ||
image: { | ||
src: string; | ||
alt: string; | ||
}; | ||
}; | ||
|
||
export const Tile = (props: TileProps): JSX.Element => { | ||
return ( | ||
<div className="fr-col-12 fr-col-offset-md-1 fr-col-md-3"> | ||
<div className="fr-card fr-enlarge-link fr-pt-3w"> | ||
<div className="fr-card__body"> | ||
<h2 className="fr-card__title"> | ||
<Link href={props.href} passHref> | ||
<a className="fr-card__link">{props.title}</a> | ||
</Link> | ||
</h2> | ||
<p className="fr-card__desc">{props.description}</p> | ||
</div> | ||
<div className="fr-card__img"> | ||
<img src={props.image.src} alt={props.image.alt} /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
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 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,9 @@ | ||
import React from "react"; | ||
|
||
export default function Healthz() { | ||
return ( | ||
<div className="fr-container fr-my-6w"> | ||
<h1>App is up and running</h1> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.