generated from fern-api/docs-starter
-
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
1 parent
f6b32d9
commit 4d7028f
Showing
4 changed files
with
63 additions
and
26 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,7 +1,8 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<body> | ||
<div id="root"></div> | ||
<header id="fern-header"></header> | ||
<footer id="fern-footer" style="margin-top:100px"></footer> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
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,18 +1,55 @@ | ||
import { Transition } from "@headlessui/react" | ||
import { Fragment } from "react" | ||
import NavigationMenuDemo from "./NavMenu" | ||
|
||
function NavHeader() { | ||
export function NavHeader() { | ||
return ( | ||
<Transition as={Fragment} show={true} appear={true} enter="tw-transition-opacity" enterFrom="tw-opacity-0" enterTo="tw-opacity-100"> | ||
<header className="tw-relative tw-w-full flex justify-between items-center"> | ||
<h2 className="tw-whitespace-nowrap m-0">Custom Header</h2> | ||
<div className="tw-absolute tw-w-full sm:tw-left-1/2 sm:-tw-translate-x-1/2 tw-h-full sm:tw-top-0 sm:tw-flex sm:tw-items-center"> | ||
<NavigationMenuDemo /> | ||
<div className="tw-fixed tw-top-0 tw-inset-x-0 tw-border-b tw-border-sage6 tw-backdrop-blur-2xl tw-h-[var(--spacing-header-height)] tw-z-30 tw-flex tw-items-center"> | ||
{/* <Transition | ||
as={Fragment} | ||
show={true} | ||
appear={true} | ||
enter="tw-transition-opacity" | ||
enterFrom="tw-opacity-0" | ||
enterTo="tw-opacity-100"> */} | ||
<div className="tw-relative tw-w-full tw-flex tw-justify-between tw-items-center tw-max-w-[var(--spacing-page-width)] tw-mx-auto tw-px-4 md:tw-px-6 lg:tw-px-8"> | ||
<h2 className="tw-whitespace-nowrap tw-m-0">Custom Header</h2> | ||
<div className="tw-absolute tw-right-0 sm:tw-right-auto sm:tw-w-full sm:tw-left-1/2 sm:-tw-translate-x-1/2 tw-h-full sm:tw-top-0 sm:tw-flex sm:tw-items-center"> | ||
<NavigationMenuDemo /> | ||
</div> | ||
<div className="tw-hidden sm:tw-block"> | ||
<button className="tw-rounded-md tw-bg-grass11 tw-text-white tw-py-2 tw-px-3"> | ||
Sign Up | ||
</button> | ||
</div> | ||
</div> | ||
</header> | ||
</Transition> | ||
{/* </Transition> */} | ||
</div> | ||
) | ||
} | ||
|
||
export default NavHeader | ||
export function NavFooter() { | ||
return ( | ||
<div className="tw-border-t tw-border-sage6 tw-bg-sage3"> | ||
<div className="tw-max-w-[var(--spacing-page-width)] tw-mx-auto tw-px-4 md:tw-px-6 lg:tw-px-8"> | ||
<div className="tw-grid tw-grid-cols-4 py-8"> | ||
<ul className="tw-space-y-2"> | ||
<li>Footer Item 1</li> | ||
<li>Footer Item 2</li> | ||
<li>Footer Item 3</li> | ||
</ul> | ||
<ul className="tw-space-y-2"> | ||
<li>Footer Item 1</li> | ||
<li>Footer Item 2</li> | ||
<li>Footer Item 3</li> | ||
</ul> | ||
<div className="tw-flex tw-justify-end tw-items-end tw-text-sage11 tw-flex-col tw-text-end tw-gap-2 tw-col-span-2"> | ||
<h4>Footer Title</h4> | ||
<p className="tw-max-w-96"> | ||
Footer content goes here. This is a good place to put contact | ||
information or other important information. | ||
</p> | ||
</div> | ||
</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