diff --git a/src/components/ProjectListItem.astro b/src/components/ProjectListItem.astro index 6fc2da76..a8381ce4 100644 --- a/src/components/ProjectListItem.astro +++ b/src/components/ProjectListItem.astro @@ -8,6 +8,7 @@ const { isDevMode = false, isHidden = false, tags = [], + type = "personal", } = Astro.props; tags.sort(); diff --git a/src/components/ProjectPage.astro b/src/components/ProjectPage.astro index 6be11cad..1efa25ef 100644 --- a/src/components/ProjectPage.astro +++ b/src/components/ProjectPage.astro @@ -12,6 +12,7 @@ export interface Props { github?: string; hidden: boolean; tags?: string[]; + type: string; }; } diff --git a/src/pages/index.astro b/src/pages/index.astro index d4562a33..34bb284a 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -13,6 +13,7 @@ interface ProjectMetadata { hidden: boolean; image?: string; tags?: string[]; + type: string; } interface AstroModule { @@ -146,7 +147,8 @@ const sortedTags = Array.from(allTags).sort((a, b) => a.localeCompare(b)); Developer Junior
  • - Education: Final Year Software Engineeering (BEng), University of Westminster (2024-2026) + Education: Final Year + Software Engineeering (BEng), University of Westminster (2024-2026)
  • Experience: 7 years, @@ -171,43 +173,54 @@ const sortedTags = Array.from(allTags).sort((a, b) => a.localeCompare(b));
  • --> -

    PROJECTS

    + { + projects.filter((project) => project.type === "professional").length > + 0 && ( + <> +

    + PROFESSIONAL PROJECTS +

    +
    + {projects + .filter((project) => project.type === "professional") + .map((project) => ( + + ))} +
    + + ) + } + +

    PERSONAL PROJECTS

    -
    -
    - - - { - sortedTags.map((tag) => ( - - {tag} - - )) - } -
    -
    { - projects.map((project) => ( - - )) + projects + .filter((project) => project.type === "personal") + .map((project) => ( + + )) }
    +