From 9074f79dee37381efd6b52e7879356d80485b134 Mon Sep 17 00:00:00 2001 From: Brandon Egger Date: Thu, 24 Aug 2023 13:39:23 -0500 Subject: [PATCH] replace remaining pages with new layout --- src/layouts/HeaderFooterLayout.tsx | 2 +- src/pages/about.tsx | 87 ++++++++++++++---------------- src/pages/contact.tsx | 13 ++--- src/pages/resources/index.tsx | 2 +- src/pages/resources/search.tsx | 19 ++----- 5 files changed, 53 insertions(+), 70 deletions(-) diff --git a/src/layouts/HeaderFooterLayout.tsx b/src/layouts/HeaderFooterLayout.tsx index 24dd96a..d155a51 100644 --- a/src/layouts/HeaderFooterLayout.tsx +++ b/src/layouts/HeaderFooterLayout.tsx @@ -6,7 +6,7 @@ export const HeaderFooterLayout = ({ children }: { children: ReactNode }) => { return (
-
{children}
+
{children}
); diff --git a/src/pages/about.tsx b/src/pages/about.tsx index 80de2ef..2b6a9e6 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -1,8 +1,7 @@ import { type NextPage } from "next/types"; import Image from "next/image"; import { HandRaisedIcon } from "@heroicons/react/24/solid"; -import Footer from "~/components/Footer"; -import Header from "~/components/Header"; +import { HeaderFooterLayout } from "~/layouts/HeaderFooterLayout"; type Position = "left" | "right"; interface Biography { @@ -70,60 +69,56 @@ const biographies: Biography[] = [ const About: NextPage = () => { return ( - <> -
-
+ +
-
-
-

- About Us +
+

+ About Us +

+
+

+
+
+
+
+ {/** Small screens */} +
+

+ Meet the Team + +

+
+ {/** Large screens */} +
+

+ Meet the Team +

-
-
-
-
-
- {/** Small screens */} -
-

- Meet the Team - -

-
- {/** Large screens */} -
-

- Meet the Team - -

-
- {/** Biographies (both small & large screens) */} -
- {biographies.map((biography, index) => { - return ; - })} -
+ {/** Biographies (both small & large screens) */} +
+ {biographies.map((biography, index) => { + return ; + })}
-
-