From 6d1ebed09c59021bbab2ab615c6f3bb3ac06222b Mon Sep 17 00:00:00 2001 From: oonyeje Date: Thu, 28 Sep 2023 16:48:03 +0000 Subject: [PATCH] - add boilerplate for landing page --- components/content/index.tsx | 18 + components/layout.tsx | 13 + lib/navigationContent.tsx | 42 + package.json | 14 +- pages/_app.tsx | 10 +- pages/_document.tsx | 13 +- pages/index.tsx | 167 +-- public/unspash_image.jpg | Bin 0 -> 2407427 bytes styles/globals.css | 35 + yarn.lock | 2543 ++++++++++++++++++++++++++++++++++ 10 files changed, 2740 insertions(+), 115 deletions(-) create mode 100644 components/content/index.tsx create mode 100644 components/layout.tsx create mode 100644 lib/navigationContent.tsx create mode 100644 public/unspash_image.jpg create mode 100644 yarn.lock diff --git a/components/content/index.tsx b/components/content/index.tsx new file mode 100644 index 0000000..a761964 --- /dev/null +++ b/components/content/index.tsx @@ -0,0 +1,18 @@ +import React from "react"; +import Image from "next/image"; + +const Content = ({ + title = '', + heroImgSrc, + description = '' +}) => { + return ( +
+
{title}
+ {heroImgSrc &&
} +
{description}
+
+ ); +}; + +export default Content; \ No newline at end of file diff --git a/components/layout.tsx b/components/layout.tsx new file mode 100644 index 0000000..70d0a7f --- /dev/null +++ b/components/layout.tsx @@ -0,0 +1,13 @@ +// import Navbar from './navbar' +// import Footer from './footer' +import React from 'react' + +export default function Layout({ children }) { + return ( + <> + {/* */} +
{children}
+ {/*