-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
8 changed files
with
171 additions
and
3 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { ReactNode } from 'react' | ||
|
||
export interface AboutMeProps { | ||
header: string | ||
body: string | ||
children?: React.ReactNode | ||
children?: ReactNode | ||
} |
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,6 @@ | ||
import { ReactNode } from 'react' | ||
|
||
export interface ChildrenProps { | ||
children: ReactNode | ||
className?: '' | ||
} |
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,24 @@ | ||
import { ProjectType } from '../enums/project.enum' | ||
|
||
export interface ProjectItem { | ||
title: string | ||
description: string | ||
simpleStack: string | ||
detailStacks: StackDescriptions[] | ||
period: string | ||
image: string | ||
type: ProjectType | ||
features: string[] | ||
company: string | ||
links: ProjectLinks | ||
} | ||
|
||
export interface ProjectLinks { | ||
github: string | ||
demo: string | ||
} | ||
|
||
export interface StackDescriptions { | ||
title: string | ||
description: string | ||
} |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { ReactNode } from 'react' | ||
|
||
export interface TextProps { | ||
children: React.ReactNode | ||
children: ReactNode | ||
className?: string | ||
} |
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,4 @@ | ||
export enum ProjectType { | ||
PERSONAL = 'personal', | ||
WORK = 'work', | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ChildrenProps } from '@/app/domain/entities/common.entity' | ||
import React from 'react' | ||
|
||
const CommonCard = ({ children, className = '' }: ChildrenProps) => { | ||
return ( | ||
<div | ||
className={`bg-slate-50 rounded-md shadow-md overflow-hidden hover:shadow-xl transition-shadow duration-300 ${className}`} | ||
> | ||
{children} | ||
</div> | ||
) | ||
} | ||
|
||
export default CommonCard |
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,33 @@ | ||
import { ProjectItem } from '@/app/domain/entities/project.entity' | ||
import React from 'react' | ||
import CommonCard from './CommonCard' | ||
import { ProjectType } from '@/app/domain/enums/project.enum' | ||
|
||
const ProjectItemCard = (props: ProjectItem) => { | ||
return ( | ||
<CommonCard className=""> | ||
<div className="w-80 aspect-video"> | ||
<img src={props.image} className="w-full h-full object-cover" /> | ||
</div> | ||
<div className="p-4"> | ||
<h4 className="text-lg font-bold mb-2">{props.title}</h4> | ||
<p className="text-sm text-stone-600 mb-2">{props.description}</p> | ||
<p className="text-xs text-stone-500 mb-1">{props.simpleStack}</p> | ||
<p className="text-xs text-stone-500">{props.period}</p> | ||
|
||
<div className="flex gap-2 mt-4"> | ||
<button className="text-sm px-3 py-1 bg-blue-500 text-white rounded-md hover:bg-blue-600">상세보기</button> | ||
{props.type === ProjectType.PERSONAL && ( | ||
<button className="text-sm px-3 py-1 border border-stone-300 text-black rounded-md hover:bg-stone-200"> | ||
<a href="https://www.netflix.com/kr/" target="_blank"> | ||
바로가기 | ||
</a> | ||
</button> | ||
)} | ||
</div> | ||
</div> | ||
</CommonCard> | ||
) | ||
} | ||
|
||
export default ProjectItemCard |