- {certificate.map(({ name, issuer, url }) => {
+ {certificate.map(({ name, issuer, issuerDate, url, logoName }) => {
return (
-
-
-
- {name}
-
-
- {issuer}
+
+
+ {issuer} - {new Date(issuerDate).getFullYear()}
-
+
);
})}
diff --git a/src/components/ui/sections/Projects.astro b/src/components/ui/sections/Projects.astro
index c2dacfc..e67c74c 100644
--- a/src/components/ui/sections/Projects.astro
+++ b/src/components/ui/sections/Projects.astro
@@ -13,7 +13,7 @@ const projects = await directus.request(
})
);
-const baseClasses = 'smooth-reveal-cards rounded-xl flex flex-col';
+const baseClasses = 'smooth-reveal-cards rounded-xl flex flex-col group group-hover';
const borderClasses = 'border border-neutral-100 dark:border-stone-500/20';
const bgColorClasses =
'bg-neutral-100/80 hover:bg-neutral-100 dark:bg-neutral-800/60 dark:hover:bg-neutral-800/90';
@@ -31,8 +31,9 @@ const shadowClasses = 'shadow-xs hover:shadow-md dark:shadow-md dark:hover:shado
projects.map((project: Project) => {
return (
-
{project.name}
@@ -43,30 +44,21 @@ const shadowClasses = 'shadow-xs hover:shadow-md dark:shadow-md dark:hover:shado
})}
-
+
);
})
diff --git a/src/lib/directusTypes.ts b/src/lib/directusTypes.ts
index e874177..dd0dc77 100644
--- a/src/lib/directusTypes.ts
+++ b/src/lib/directusTypes.ts
@@ -73,6 +73,8 @@ export type Education = {
area: string;
studyType: string;
graduationDate: string;
+ logo: string;
+ logoDark: string;
};
export type Certificate = {
@@ -81,6 +83,7 @@ export type Certificate = {
issuer: string;
issuerDate: string;
url: string;
+ logoName: string;
};
export type Project = {