Skip to content

Commit

Permalink
feat: landing-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed May 21, 2024
1 parent a25375e commit 53d5ef9
Show file tree
Hide file tree
Showing 17 changed files with 591 additions and 19 deletions.
18 changes: 18 additions & 0 deletions app/StartDsfr.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"use client"

import { startReactDsfr } from "@codegouvfr/react-dsfr/next-appdir"
import { defaultColorScheme } from "./defaultColorScheme"
import Link from "next/link"

declare module "@codegouvfr/react-dsfr/next-appdir" {
interface RegisterLink {
Link: typeof Link
}
}

startReactDsfr({ defaultColorScheme, Link })

export function StartDsfr() {
//Yes, leave null here.
return null
}
2 changes: 1 addition & 1 deletion app/blog/[blog]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function Blog({ params }) {

const components = {
DownloadButtons: () => (
<div className="mb-1 grid max-w-[200px] sm:max-w-[400px] sm:grid-flow-col gap-6 auto-cols-fr md:w-5/6 m-auto">
<div className="mt-[70px] mb-1 grid max-w-[200px] sm:max-w-[400px] sm:grid-flow-col gap-6 auto-cols-fr md:w-5/6 m-auto">
<a href={ANDROID_URL} target="_blank" rel="noopener noreferrer">
<img
className="object-contain w-full"
Expand Down
4 changes: 2 additions & 2 deletions app/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function Blog() {
const posts = await getBlogPosts()

return (
<>
<div className="mt-[70px]">
<DownloadPopupStandalone />
<div className="flex flex-col min-h-screen">
<Navigation />
Expand Down Expand Up @@ -45,7 +45,7 @@ export default async function Blog() {
</div>
<Footer />
</div>
</>
</div>
)
}

Expand Down
3 changes: 3 additions & 0 deletions app/defaultColorScheme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import type { DefaultColorScheme } from "@codegouvfr/react-dsfr/next-appdir"

export const defaultColorScheme: DefaultColorScheme = "system"
11 changes: 11 additions & 0 deletions app/landing-v2/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { DsfrHead } from "@codegouvfr/react-dsfr/next-appdir/DsfrHead"
import { DsfrProvider } from "@codegouvfr/react-dsfr/next-appdir/DsfrProvider"
import { getHtmlAttributes } from "@codegouvfr/react-dsfr/next-appdir/getHtmlAttributes"
import { StartDsfr } from "~/app/StartDsfr"
import { defaultColorScheme } from "~/app/defaultColorScheme"
import Link from "next/link"

export default function RootLayout({ children }) {
const lang = "fr"
return <DsfrProvider lang={lang}>{children}</DsfrProvider>
}
Loading

0 comments on commit 53d5ef9

Please sign in to comment.