-
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
ea9632d
commit c874e25
Showing
5 changed files
with
59 additions
and
18 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,23 @@ | ||
import logo from '@/images/logo.png' | ||
|
||
export default function Header({ children }) { | ||
return ( | ||
<> | ||
<header className="; flex"> | ||
<img className="; block h-32 w-auto" src={logo} alt="Logo" /> | ||
|
||
<div className="flex space-x-4"> | ||
{/* <!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" --> */} | ||
<a href="#">Home</a> | ||
<a href="#">About Us</a> | ||
<a href="#">News</a> | ||
<a href="#">Dues</a> | ||
<a href="#">Events</a> | ||
<a href="#">Contact</a> | ||
<a href="#">Gallery</a> | ||
<a href="#">History</a> | ||
</div> | ||
</header> | ||
</> | ||
) | ||
} |
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,12 +1,11 @@ | ||
import logo from '@/images/logo.png' | ||
import Header from '@/components/header' | ||
|
||
export default function Layout({ children }) { | ||
return ( | ||
<> | ||
<header> | ||
<img src={logo} alt="Logo" /> | ||
</header> | ||
<div className="; lg:container mx-auto"> | ||
<Header /> | ||
|
||
{children} | ||
</> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Head from 'next/head' | ||
|
||
export default function Title({ children }) { | ||
return ( | ||
<Head> | ||
<title>{children}{children && ' | '}Renaissance Neighborhood Association, Tulsa, OK</title> | ||
</Head> | ||
) | ||
} |
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,8 +1,22 @@ | ||
import '@/styles/globals.css' | ||
// import 'tailwindcss/tailwind.css' | ||
import Title from '@/components/title' | ||
import Head from 'next/head' | ||
import Layout from '@/components/layout' | ||
|
||
function MyApp({ Component, pageProps }) { | ||
return <Component {...pageProps} /> | ||
return ( | ||
<> | ||
<Title /> | ||
|
||
<Head> | ||
<link rel="icon" href={`${process.env.BASE_PATH || ''}/favicon.ico`} /> | ||
</Head> | ||
|
||
<Layout> | ||
<Component {...pageProps} /> | ||
</Layout> | ||
</> | ||
) | ||
} | ||
|
||
export default MyApp |
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