From 99183d91629f7748203f0d0f75e10252809287cc Mon Sep 17 00:00:00 2001 From: oonyeje Date: Mon, 27 Nov 2023 21:33:12 -0500 Subject: [PATCH] - pdf is loaded on page - added links to github, linkedin, gitea, and bside website - adjusted styling and added footer block --- components/content/carousel/index.tsx | 13 +++++----- components/content/index.tsx | 5 ++-- components/footer.tsx | 8 +++++++ components/layout.tsx | 16 +++++++------ components/navbar.tsx | 23 ++++++++++++++++++ lib/content.ts | 13 ++++------ lib/navigationContent.tsx | 9 +++---- lib/portfolio.ts | 12 +++++----- package.json | 1 + pages/index.tsx | 16 ++++++------- yarn.lock | 34 ++++++++++++++++----------- 11 files changed, 91 insertions(+), 59 deletions(-) create mode 100644 components/footer.tsx create mode 100644 components/navbar.tsx diff --git a/components/content/carousel/index.tsx b/components/content/carousel/index.tsx index f7a60ef..5ab85c1 100755 --- a/components/content/carousel/index.tsx +++ b/components/content/carousel/index.tsx @@ -4,6 +4,7 @@ import { StaticImport } from "next/dist/shared/lib/get-img-props"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faChevronCircleLeft, faChevronCircleRight } from "@fortawesome/free-solid-svg-icons"; import IframeResizer from "iframe-resizer-react"; +import Link from "next/link"; interface ContentCarouselProps { data: Array<{ @@ -28,19 +29,19 @@ const ContentCarousel = ({
{portfolioData.title}
{portfolioData.heroImgSrc &&
}
{portfolioData.description}
- {portfolioData.prototypeIframeURL &&
- { + {/* {} + />} */} + + {portfolioData.title} +
} {(currentPageIdx < pageLength - 1) && setCurrentPageIdx(currentPageIdx + 1)}>} diff --git a/components/content/index.tsx b/components/content/index.tsx index 16e44df..969a06b 100755 --- a/components/content/index.tsx +++ b/components/content/index.tsx @@ -4,10 +4,11 @@ import { StaticImport } from "next/dist/shared/lib/get-img-props"; interface ContentProps { title: string, - heroImgSrc: string | StaticImport, + heroImgSrc: string | StaticImport | null, description?: string, innerChildren?: ReactNode } + const Content = ({ title = '', heroImgSrc = '', @@ -17,7 +18,7 @@ const Content = ({ return (
{title}
- {heroImgSrc &&
} + {heroImgSrc &&
}
{description}
{innerChildren}
diff --git a/components/footer.tsx b/components/footer.tsx new file mode 100644 index 0000000..8e7d1cd --- /dev/null +++ b/components/footer.tsx @@ -0,0 +1,8 @@ +import React from "react"; +export default function Footer({}) { + return ( +
+ +
+ ); +}; \ No newline at end of file diff --git a/components/layout.tsx b/components/layout.tsx index 70d0a7f..21c7d25 100644 --- a/components/layout.tsx +++ b/components/layout.tsx @@ -1,13 +1,15 @@ -// import Navbar from './navbar' -// import Footer from './footer' +import Navbar from './navbar' +import Footer from './footer' import React from 'react' export default function Layout({ children }) { return ( - <> - {/* */} -
{children}
- {/*