-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a8de48
commit 21c255a
Showing
10 changed files
with
120 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import * as React from 'react'; | ||
|
||
import UnstyledLink from '@/components/links/UnstyledLink'; | ||
|
||
import { ProjectsType } from '@/types/frontmatters'; | ||
|
||
type ProjectCardProps = { | ||
project: ProjectsType; | ||
} & React.ComponentPropsWithoutRef<'li'>; | ||
|
||
export default function ProjectCard({ project }: ProjectCardProps) { | ||
return ( | ||
<ul className='mt-6 grid grid-cols-2 gap-4'> | ||
{project.child.map((projectItem) => ( | ||
<UnstyledLink | ||
href={projectItem.link} | ||
className='group h-full p-4 hover:bg-[#88888808]' | ||
key={projectItem.title} | ||
> | ||
<section className=' flex items-center gap-[24px]'> | ||
<div className='text-[38px] opacity-50 group-hover:opacity-70 dark:group-hover:opacity-80'> | ||
{projectItem.icon} | ||
</div> | ||
<div> | ||
<h4 className='text-[#555] group-hover:text-gray-800 dark:text-gray-400 dark:group-hover:text-gray-100'> | ||
{projectItem.title} | ||
</h4> | ||
<p className='mb-auto text-sm text-gray-700 opacity-50 dark:text-gray-300 dark:group-hover:text-gray-50'> | ||
{projectItem.description} | ||
</p> | ||
</div> | ||
</section> | ||
</UnstyledLink> | ||
))} | ||
</ul> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { BsGithub } from 'react-icons/bs'; | ||
import { SiBilibili, SiNextdotjs, SiVite } from 'react-icons/si'; | ||
import { atom } from 'recoil'; | ||
|
||
export const projectsAtom = atom({ | ||
key: 'PROJECTS_ATOM', | ||
default: [ | ||
{ | ||
category: 'Next Ecosystem', | ||
child: [ | ||
{ | ||
title: 'nextjs-tailwind-blog', | ||
description: | ||
'The most beautiful blog in modern times, using Next.js, TypeScript, Tailwind CSS, Welcome to visit', | ||
link: 'https://github.com/Chocolate1999/nextjs-tailwind-blog', | ||
icon: <BsGithub />, | ||
}, | ||
{ | ||
title: 'nextjs-tailwind-blog', | ||
description: | ||
'The most beautiful blog in modern times, using Next.js, TypeScript, Tailwind CSS, Welcome to visit', | ||
link: 'https://github.com/Chocolate1999/nextjs-tailwind-blog', | ||
icon: <SiBilibili />, | ||
}, | ||
{ | ||
title: 'nextjs-tailwind-blog', | ||
description: | ||
'The most beautiful blog in modern times, using Next.js, TypeScript, Tailwind CSS, Welcome to visit', | ||
link: 'https://github.com/Chocolate1999/nextjs-tailwind-blog', | ||
icon: <SiVite />, | ||
}, | ||
{ | ||
title: 'nextjs-tailwind-blog', | ||
description: | ||
'The most beautiful blog in modern times, using Next.js, TypeScript, Tailwind CSS, Welcome to visit', | ||
link: 'https://github.com/Chocolate1999/nextjs-tailwind-blog', | ||
icon: <SiNextdotjs />, | ||
}, | ||
{ | ||
title: 'nextjs-tailwind-blog', | ||
description: | ||
'The most beautiful blog in modern times, using Next.js, TypeScript, Tailwind CSS, Welcome to visit', | ||
link: 'https://github.com/Chocolate1999/nextjs-tailwind-blog', | ||
icon: <SiNextdotjs />, | ||
}, | ||
{ | ||
title: 'nextjs-tailwind-blog', | ||
description: | ||
'The most beautiful blog in modern times, using Next.js, TypeScript, Tailwind CSS, Welcome to visit', | ||
link: 'https://github.com/Chocolate1999/nextjs-tailwind-blog', | ||
icon: <SiNextdotjs />, | ||
}, | ||
], | ||
}, | ||
], | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters