Skip to content

Commit

Permalink
feat: add comments and daviddong.me desc
Browse files Browse the repository at this point in the history
  • Loading branch information
hidaviddong committed Jun 25, 2024
1 parent 765e0f3 commit 0babf72
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 21 deletions.
8 changes: 2 additions & 6 deletions src/components/ui/bento-grid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ const BentoCard = ({ name, className, background, description, href }) => {
/>
<Separator className="md:hidden" />
<div className="pointer-events-none z-10 flex transform-gpu flex-col gap-1 md:p-6 pl-4 transition-all duration-200 group-hover:opacity-0">
<h3 className="text-md font-semibold text-neutral-700 dark:text-neutral-300">
{name}
</h3>
<p className="max-w-lg text-neutral-400 text-sm">
{description}
</p>
<h3 className="text-md font-semibold text-neutral-700 dark:text-neutral-300">{name}</h3>
<p className="max-w-lg text-neutral-400 text-sm">{description}</p>
</div>
</div>
);
Expand Down
12 changes: 6 additions & 6 deletions src/config/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ const Works = [
];

const SideProjects = [
{
name: "Comments",
description: "Add comments to your website.",
href: "/project/comments",
background: "/comments.webp",
},
{
name: "daviddong.me",
description: "My website.",
href: "/project/website",
background: "/website.webp",
},
{
name: "Comments",
description: "Add comments to your website.",
href: "/project/comments",
background: "/comments.webp",
},
];

const SONG_BASEURL = "https://img1.doubanio.com/lpic/";
Expand Down
2 changes: 1 addition & 1 deletion src/pages/+Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default function LayoutDefault({ children }) {
return (
<div className="w-full selection:text-blue-500 selection:bg-blue-100 flex flex-col items-center">
<main className="h-full w-full flex justify-center items-center flex-col">{children}</main>
<footer className="w-full text-center text-sm text-neutral-400 relative bottom-0">
<footer className="w-full text-center text-sm text-neutral-700 relative bottom-0">
<p>© {year} David Dong. All rights reserved.</p>
</footer>
</div>
Expand Down
24 changes: 20 additions & 4 deletions src/pages/project/comments/+Page.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
import Comments from "./assets/comments.gif";
export default function Page() {
return (
<>
<h1>Hello</h1>
<h2>Comments</h2>
</>
<div className="flex flex-col">
<div className="font-medium text-base flex flex-col gap-1">
<p className="my-0">Comments</p>
<p className="my-0">2023 · Maintainer</p>
</div>
<p>Add comments to your website.</p>
<div className="flex flex-col justify-center items-center">
<img src={Comments} alt="comments" className="bg-gray-50 border rounded-md my-0" />
{/* biome-ignore lint/a11y/useKeyWithClickEvents: <explanation> */}
<p
className="my-0 mt-4 text-sm font-medium hover:underline hover:cursor-pointer"
onClick={() => {
window.location.href = "https://github.com/DongHY1/comments";
}}
>
Comments
</p>
</div>
</div>
);
}
Binary file added src/pages/project/comments/assets/comments.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 27 additions & 4 deletions src/pages/project/website/+Page.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
import DavidDongMobile from "./assets/daviddong-mobile.png";
export default function Page() {
return (
<>
<h1>Hello</h1>
<h2>Website</h2>
</>
<div className="flex flex-col">
<div className="font-medium text-base flex flex-col gap-1">
<p className="my-0">daviddong.me</p>
<p className="my-0">2024 · Maintainer</p>
</div>
<p>My Personal Website.</p>
<div className="flex flex-col justify-center items-center">
<div className="flex max-w-full w-3/4">
<img
src={DavidDongMobile}
alt="daviddong-mobile"
className="bg-gray-50 border rounded-md my-0"
/>
</div>

{/* biome-ignore lint/a11y/useKeyWithClickEvents: <explanation> */}
<p
className="my-0 mt-4 text-sm font-medium hover:underline hover:cursor-pointer"
onClick={() => {
window.location.href = "https://github.com/DongHY1/daviddong.me";
}}
>
daviddong.me
</p>
</div>
</div>
);
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0babf72

Please sign in to comment.