generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 3
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
987b1dc
commit 8269294
Showing
13 changed files
with
175 additions
and
284 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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
import React from 'react'; | ||
|
||
const Footer: React.FC = () => { | ||
return ( | ||
<div className="bg-gray-200 flex justify-center items-center h-[6vh]"> | ||
<p className="text-gray-600 text-sm text-center"> | ||
The contents of this website are deployed from this{' '} | ||
<a | ||
href="https://github.com/Real-Dev-Squad/tiny-site-frontend" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="text-blue-500" | ||
> | ||
open sourced repo | ||
</a> | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { FC, ReactNode } from 'react'; | ||
|
||
import Head from 'next/head'; | ||
import Navbar from '@/components/Navbar'; | ||
import Footer from '@/components/Footer'; | ||
|
||
type LayoutProps = { | ||
title: string; | ||
children: ReactNode; | ||
}; | ||
|
||
const Layout: FC<LayoutProps> = ({ title, children }) => { | ||
return ( | ||
<div> | ||
<Head> | ||
<title>{title}</title> | ||
</Head> | ||
<Navbar /> | ||
<main className="bg-gray-900 flex flex-col justify-center items-center h-container">{children}</main> | ||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Layout; |
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 |
---|---|---|
|
@@ -65,4 +65,4 @@ const Navbar: React.FC = () => { | |
); | ||
}; | ||
|
||
export { Navbar }; | ||
export default Navbar; |
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,16 +1,5 @@ | ||
import '@/styles/global.css'; | ||
import { Footer } from '@/components/Footer/Footer'; | ||
import { Navbar } from '@/components/Navbar/Navbar'; | ||
|
||
export default function MyApp({ Component, pageProps }) { | ||
return ( | ||
<div> | ||
<title>URL Shortener</title> | ||
<Navbar /> | ||
<div className="bg-gray-900 flex flex-col justify-center items-center h-container"> | ||
<Component {...pageProps} /> | ||
</div> | ||
<Footer /> | ||
</div> | ||
); | ||
return <Component {...pageProps} />; | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.