-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
74 additions
and
0 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
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,32 @@ | ||
import Head from "next/head"; | ||
import Link from "next/link"; | ||
import { FC } from "react"; | ||
|
||
const LayoutComponentPreview: FC = ({ children }) => { | ||
return ( | ||
<div className={`w-full h-screen bg-gray-100`}> | ||
<Head> | ||
<title>Component Preview</title> | ||
</Head> | ||
|
||
<main className={`grid grid-cols-8`}> | ||
<div className={`bg-white h-screen col-span-1 p-5 border-r`}> | ||
<div className={`font-bold uppercase mb-10`}>Component Preview</div> | ||
<Menu title={`Top Navigation Bar`} href={`/components/top-navbar`} /> | ||
<Menu title={`Footer`} href={`/components/footer`} /> | ||
</div> | ||
<div className={`h-screen col-span-7 p-5 overflow-y-scroll`}> | ||
{children} | ||
</div> | ||
</main> | ||
</div> | ||
) | ||
} | ||
|
||
const Menu = ({ title, href }: any) => ( | ||
<Link href={href}> | ||
<div className={`cursor-pointer block mb-2`}>{title}</div> | ||
</Link> | ||
) | ||
|
||
export default LayoutComponentPreview |
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,11 @@ | ||
import { Footer1 } from "components/footer"; | ||
import LayoutComponentPreview from "./_layout"; | ||
|
||
export default function HeaderPreviewPage() { | ||
return ( | ||
<LayoutComponentPreview> | ||
<div className={`mb-10 text-lg font-bold uppercase`}>Footer</div> | ||
<div className={`bg-white mb-10 pb-5`}><Footer1 /></div> | ||
</LayoutComponentPreview> | ||
) | ||
} |
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 LayoutComponentPreview from "./_layout"; | ||
|
||
export default function ComponentPreviewPage() { | ||
return ( | ||
<LayoutComponentPreview> | ||
test | ||
</LayoutComponentPreview> | ||
) | ||
} |
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,14 @@ | ||
import { TopNavBar1, TopNavBar2, TopNavBar3, TopNavBar4 } from "components/navbar"; | ||
import LayoutComponentPreview from "./_layout"; | ||
|
||
export default function HeaderPreviewPage() { | ||
return ( | ||
<LayoutComponentPreview> | ||
<div className={`mb-10 text-lg font-bold uppercase`}>Top Navigation Bar</div> | ||
<div className={`bg-white mb-10`}><TopNavBar1 /></div> | ||
<div className={`bg-white mb-10`}><TopNavBar2 /></div> | ||
<div className={`bg-white mb-10`}><TopNavBar3 /></div> | ||
<div className={`bg-white pt-5 mb-10`}><TopNavBar4 /></div> | ||
</LayoutComponentPreview> | ||
) | ||
} |