프로젝트 컴포넌트 추가 및 스타일 수정
This commit is contained in:
parent
ac6d823ae0
commit
980d7a62f5
5 changed files with 88 additions and 5 deletions
38
src/components/ProjectsComponents.tsx
Normal file
38
src/components/ProjectsComponents.tsx
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
type Project = {
|
||||
name: string;
|
||||
url: string;
|
||||
description: string;
|
||||
techStack: string[];
|
||||
};
|
||||
|
||||
export default function ProjectsComponents({ project }: { project: Project }) {
|
||||
return (
|
||||
<div>
|
||||
<div>
|
||||
<h1 className="text-xl mb-2">
|
||||
<a href={project.url} target="_blank" rel="noopener noreferrer">
|
||||
{project.name}
|
||||
</a>
|
||||
</h1>
|
||||
<p className="text-sm text-muted-forceground font-light mb-2">
|
||||
{project.description.split('\n').map((line, idx) => (
|
||||
<span key={idx}>
|
||||
{line}
|
||||
<br />
|
||||
</span>
|
||||
))}
|
||||
</p>
|
||||
<div>
|
||||
{project.techStack.map((tech, idx) => (
|
||||
<span
|
||||
key={idx}
|
||||
className="inline-block bg-accent text-accent-foreground text-xs mr-2 px-2.5 py-0.5 rounded select-none"
|
||||
>
|
||||
{tech}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue