From 6636e0f05f47cb2b7a8fb5f93da946c3d8b0d4fa Mon Sep 17 00:00:00 2001 From: DongHY1 Date: Tue, 18 Jun 2024 17:07:54 +0800 Subject: [PATCH] fix: md card layout --- src/components/ui/bento-grid.jsx | 2 +- src/pages/index/+Page.jsx | 36 ++++++++++++++++++++++++++++---- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/src/components/ui/bento-grid.jsx b/src/components/ui/bento-grid.jsx index f10fafd..480ce54 100644 --- a/src/components/ui/bento-grid.jsx +++ b/src/components/ui/bento-grid.jsx @@ -26,7 +26,7 @@ const BentoCard = ({ name, className, background, description, href }) => { )} >
{background}
-
+

{name}

diff --git a/src/pages/index/+Page.jsx b/src/pages/index/+Page.jsx index 0456e22..105c5cf 100644 --- a/src/pages/index/+Page.jsx +++ b/src/pages/index/+Page.jsx @@ -14,14 +14,28 @@ const Works = [ ), }, { - name: "Data and 3D Visualization", - description: "Comprehensive 3D visualization project.", + name: "Data Visualization", + description: "Chart and 3D models.", href: "/project/data-visualization", + background: ( + Large Language Model + ), }, { name: "Hybrid Mobile App", description: "QQ Music / We Sing Living Room.", href: "/project/tme", + background: ( + Large Language Model + ), }, ]; @@ -30,11 +44,25 @@ const OpenSourceProjects = [ name: "Comments", description: "Add comments to your website.", href: "/project/comments", + background: ( + Large Language Model + ), }, { name: "daviddong.me", description: "Personal website template.", href: "/", + background: ( + Large Language Model + ), }, ]; @@ -71,7 +99,7 @@ export default function Page() { {/* Works */}

Works

- + {Works.map((feature) => ( ))} @@ -80,7 +108,7 @@ export default function Page() { {/* Open Source Project */}

Open Source Projects

- + {OpenSourceProjects.map((feature) => ( ))}