diff --git a/src/app/page.tsx b/src/app/page.tsx index 582976a..73df50e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,12 +1,78 @@ import dynamic from "next/dynamic"; +import Image from "next/image"; +import Section from "@/components/Section"; import { MainHeader } from "@/components/header"; +import certificates from "@/data/certifications"; +import degrees from "@/data/degrees"; +import skills from "@/data/skills"; +import type { Certification, Degree, Skill } from "@/types"; +import "@/types"; +const Intro = dynamic(() => import("@/components/intro")); const SocialMedia = dynamic(() => import("@/components/social")); -const Intro = dynamic(() => import("@/sections/intro")); -const Skills = dynamic(() => import("@/sections/skills")); -const Certifications = dynamic(() => import("@/sections/certifications")); -const Education = dynamic(() => import("@/sections/education")); + +const Skills = () => ( +
+ {Object.values(skills).map((skill: Skill) => ( +
+

{skill.icon}

+

{skill.name}

+
+ ))} +
+); + +const Certifications = () => ( +
+ {certificates.map((certificate: Certification) => ( +
+ +
+ {`Badge +

{certificate.title}

+

{certificate.organization.name}

+

{certificate.date}

+
+
+
+ ))} +
+); + +const Degrees = () => ( +
+ {degrees.map((degree: Degree) => ( +
+ +
+ {`${degree.university.name} +

+ {degree.title} +

+

+ {degree.university.name} +

+

{degree.duration}

+
+
+
+ ))} +
+); const Home = () => ( <> @@ -14,7 +80,7 @@ const Home = () => ( - + ); diff --git a/src/sections/intro.jsx b/src/components/intro.jsx similarity index 97% rename from src/sections/intro.jsx rename to src/components/intro.jsx index 68619ca..1d663a5 100644 --- a/src/sections/intro.jsx +++ b/src/components/intro.jsx @@ -70,7 +70,7 @@ const Intro = () => { {/* Profile Name */}

I'm - + {" a"} ( -

- {certificates.map((certificate: Certification) => ( - - ))} -
-); - -export default Certifications; diff --git a/src/sections/education.tsx b/src/sections/education.tsx deleted file mode 100644 index 6fe8932..0000000 --- a/src/sections/education.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import Image from "next/image"; - -import Section from "@/components/Section"; -import degrees from "@/data/degrees"; -import { Degree } from "@/types"; - -const Education = () => ( -
- {degrees.map((degree: Degree) => ( - - ))} -
-); - -export default Education; diff --git a/src/sections/skills.tsx b/src/sections/skills.tsx deleted file mode 100644 index cfe2a3b..0000000 --- a/src/sections/skills.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import Section from "@/components/Section"; -import skills from "@/data/skills"; -import { Skill } from "@/types"; - -const Skills = () => ( -
- {Object.values(skills).map((skill: Skill) => ( -
-

{skill.icon}

-

{skill.name}

-
- ))} -
-); - -export default Skills; diff --git a/tailwind.config.ts b/tailwind.config.ts index ae36826..cff1f53 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,4 +1,5 @@ import type { Config } from "tailwindcss"; +import colors from "tailwindcss/colors"; import { nextui } from "@nextui-org/react"; @@ -14,14 +15,18 @@ const config: Config = { themes: { dark: { colors: { - primary: "#07d0e5", - secondary: "#333333", + primary: colors.indigo[300], + secondary: colors.zinc[400], + foreground: colors.slate[400], + background: colors.slate[950], }, }, light: { colors: { - primary: "#006994", - secondary: "#f7f7f7", + primary: colors.indigo[600], + secondary: colors.zinc[600], + foreground: colors.slate[600], + background: colors.white, }, }, },