diff --git a/src/components/Labels.tsx b/src/components/Labels.tsx new file mode 100644 index 0000000..95ffba2 --- /dev/null +++ b/src/components/Labels.tsx @@ -0,0 +1,13 @@ +/** + * Styled black background gradient label used to label a widget. + * Widget refers to one of the isolated rounded containers (such as search form or table). + */ +const TopLabel = ({ children }: { children: JSX.Element | JSX.Element[] }) => { + return ( +
+ {children} +
+ ); +}; + +export { TopLabel }; diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 389ff55..f5f6469 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -5,6 +5,7 @@ import { type SkillLevel, } from "@prisma/client"; import { type Dispatch, type SetStateAction, useState, useEffect } from "react"; +import { TopLabel } from "./Labels"; export type QuestionTypes = | Platform @@ -359,9 +360,9 @@ const GuidedSearch = ({ return (
-
+

Search

-
+ { + return ( +
+
+

{details.label}

+

{details.role}

+
+
+ ); +} const Contact: NextPage = () => { return ( <>
-
+
+ {/** Contact section */} +
+ +

Contact Information

+
+
+ {contacts.map((contactDetails, index) => { + return ( + + ); + })} +
+
+