Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Background container div subsituted by before: on main #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,12 @@ export default function App({ Component, pageProps, router }: AppProps) {
<>
<ThemeProvider attribute="class">
<div className={`${GeistSans.className}`}>
<div className="fixed inset-0 flex justify-center sm:px-8">
<div className="flex w-full max-w-7xl lg:px-8">
<div className="w-full bg-white ring-1 ring-zinc-100 dark:bg-zinc-900 dark:ring-zinc-300/20" />
</div>
</div>
<div className="relative">
<Header />
<main>
<Component previousPathname={previousPathname} {...pageProps} />
</main>
<Footer />
</div>
<Header />
<main className="before:fixed before:inset-0 before:ring-1 before:ring-zinc-100 before:bg-white dark:before:ring-zinc-300/20 dark:before:bg-zinc-900 before:w-full sm:before:w-[min(100%-4rem,76rem)] before:mx-auto">
<Component previousPathname={previousPathname} {...pageProps} />
</main>
<Footer />

<Analytics />
</div>
</ThemeProvider>
Expand Down