generated from scaffold-eth/scaffold-eth-2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add page layout with no header or footer * add page layout with header and footer * edit index.tsx page to work with new page layouts * remove Header and Footer from _app.tsx * alter _app.tsx to work with new page layouts
- Loading branch information
1 parent
55d6a6d
commit f2054ae
Showing
4 changed files
with
54 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React, { ReactNode } from "react"; | ||
|
||
interface CleanLayoutProps { | ||
children: ReactNode; | ||
} | ||
|
||
export default function CleanLayout({ children }: CleanLayoutProps) { | ||
return ( | ||
<> | ||
<main className="relative flex flex-col justify-center flex-1">{children}</main> | ||
</> | ||
); | ||
} |
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,17 @@ | ||
import React, { ReactNode } from "react"; | ||
import { Footer } from "~~/components/Footer"; | ||
import { Header } from "~~/components/Header"; | ||
|
||
interface HeaderFooterLayoutProps { | ||
children: ReactNode; | ||
} | ||
|
||
export default function HeaderFooterLayout({ children }: HeaderFooterLayoutProps) { | ||
return ( | ||
<> | ||
<Header /> | ||
<main className="relative flex flex-col justify-center flex-1">{children}</main> | ||
<Footer /> | ||
</> | ||
); | ||
} |
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