Skip to content

Commit 4fb900e

Browse files
committed
fix : modify project ui
1 parent 94767a9 commit 4fb900e

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

app/projects/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ export default function Projects() {
2424
href={d.href}
2525
github={d.github}
2626
stack={d.stack}
27+
live={d.live}
28+
app={d.app}
2729
/>
2830
))}
2931
</div>

components/Card.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Link from './Link'
33
import SocialIcon from './social-icons'
44
import TechStackIcon from './stack-icons'
55

6-
const Card = ({ title, description, imgSrc, href, github, stack }) => (
6+
const Card = ({ title, description, imgSrc, href, github, stack, live, app }) => (
77
<div
88
className={`${
99
imgSrc && 'h-full'
@@ -49,12 +49,25 @@ const Card = ({ title, description, imgSrc, href, github, stack }) => (
4949
</h2>
5050
<p className="prose mb-3 max-w-none text-gray-500 dark:text-gray-400">{description}</p>
5151
<div className="flex justify-between">
52-
<div className="flex flex-wrap items-center justify-between">
52+
<div className="flex flex-wrap items-center">
53+
{app && (
54+
<>
55+
<Link href={app} className="text-gray-900 hover:text-primary-500 dark:text-gray-400">
56+
AppStore
57+
</Link>
58+
</>
59+
)}
5360
{github && (
5461
<>
5562
<SocialIcon kind="github" href={github} size={5} />
63+
<span className="mx-2 text-gray-900 dark:text-gray-400">|</span>
5664
</>
5765
)}
66+
{live && (
67+
<Link href={live} className="text-gray-900 hover:text-primary-500 dark:text-gray-400">
68+
Live
69+
</Link>
70+
)}
5871
</div>
5972
{stack?.length > 0 && (
6073
<div className="flex">

data/projectsData.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ interface Project {
55
imgSrc?: string
66
github?: string
77
stack?: string[]
8+
live?: string
9+
app?: string
810
}
911

1012
const projectsData: Project[] = [
@@ -21,6 +23,7 @@ const projectsData: Project[] = [
2123
href: '/blog/projects/tot-app',
2224
github: '',
2325
stack: ['reactnative', 'tailwindcss', 'recoil', 'appwrite'],
26+
app: 'https://apps.apple.com/us/app/t-o-t/id6449160981',
2427
},
2528
{
2629
title: 'SafeMoney',
@@ -37,6 +40,7 @@ const projectsData: Project[] = [
3740
href: '/blog/projects/tot',
3841
github: 'https://github.com/keimindev/tot',
3942
stack: ['nextjs', 'recoil', 'mongodb', 'tailwindcss'],
43+
live: 'https://tot.keimindev.com',
4044
},
4145
{
4246
title: 'Netflix OX Quiz',
@@ -45,6 +49,7 @@ const projectsData: Project[] = [
4549
href: '/blog/projects/netflix-ox-quiz',
4650
github: 'https://github.com/keimindev/OX_Quiz',
4751
stack: ['react', 'redux', 'firebase'],
52+
live: 'https://netflix-ox-quiz.web.app/',
4853
},
4954
]
5055

0 commit comments

Comments
 (0)