From 341607f2b3eee7f1f748238adab60b8f97254029 Mon Sep 17 00:00:00 2001 From: Ansell Maximilian Date: Tue, 21 Nov 2023 10:38:49 +0700 Subject: [PATCH 1/3] add hover effect for project cards --- app/page.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/page.tsx b/app/page.tsx index be4b9c0..aa045f6 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -39,9 +39,17 @@ export default async function Home() { {/*

{project.name}

*/} +
+
+

+ {project.name} +

+

{project.description}

+
+
{project.name} Date: Tue, 21 Nov 2023 10:44:10 +0700 Subject: [PATCH 2/3] add short description for projects --- sanity/schemas/project-schema.ts | 6 ++++++ sanity/services.ts | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sanity/schemas/project-schema.ts b/sanity/schemas/project-schema.ts index 6ae6617..557e488 100644 --- a/sanity/schemas/project-schema.ts +++ b/sanity/schemas/project-schema.ts @@ -18,6 +18,7 @@ export type Project = { slug: string; content: PortableTextBlock[]; description: string; + shortDescription: string; skills: Skill[]; screenshots?: ProjectScreenshot[]; }; @@ -83,6 +84,11 @@ const project = { title: "Description", type: "string", }, + { + name: "shortDescription", + title: "Short Description", + type: "string", + }, { name: "featured", title: "Featured", diff --git a/sanity/services.ts b/sanity/services.ts index 6e60a03..4a7e86c 100644 --- a/sanity/services.ts +++ b/sanity/services.ts @@ -18,7 +18,8 @@ export async function fetchProjects(): Promise { videoUrl, repoUrl, content, - description + description, + shortDescription }` ); } @@ -36,6 +37,7 @@ export async function fetchProject(slug: string): Promise { videoUrl, content, description, + shortDescription, skills[]->{ name, "image": image.asset->url, From 9981f0ebc191fdc22643fe477d2f38d970f38fbd Mon Sep 17 00:00:00 2001 From: Ansell Maximilian Date: Tue, 21 Nov 2023 10:45:35 +0700 Subject: [PATCH 3/3] switch desc with short desc --- app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/page.tsx b/app/page.tsx index aa045f6..1b6c6a4 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -47,7 +47,7 @@ export default async function Home() {

{project.name}

-

{project.description}

+

{project.shortDescription}