-
Notifications
You must be signed in to change notification settings - Fork 27
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
83187f6
commit 0bbefd0
Showing
10 changed files
with
262 additions
and
59 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
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,44 @@ | ||
'use client'; | ||
|
||
import * as React from 'react'; | ||
import * as AvatarPrimitive from '@radix-ui/react-avatar'; | ||
|
||
import { cn } from './utils'; | ||
|
||
const Avatar = React.forwardRef(({ className, ...props }, ref) => ( | ||
<AvatarPrimitive.Root | ||
ref={ref} | ||
className={cn( | ||
'relative flex h-10 w-10 shrink-0 overflow-hidden rounded-xl', | ||
className | ||
)} | ||
{...props} | ||
/> | ||
)); | ||
|
||
Avatar.displayName = AvatarPrimitive.Root.displayName; | ||
|
||
const AvatarImage = React.forwardRef(({ className, ...props }, ref) => ( | ||
<AvatarPrimitive.Image | ||
ref={ref} | ||
className={cn('aspect-square h-full w-full', className)} | ||
{...props} | ||
/> | ||
)); | ||
|
||
AvatarImage.displayName = AvatarPrimitive.Image.displayName; | ||
|
||
const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => ( | ||
<AvatarPrimitive.Fallback | ||
ref={ref} | ||
className={cn( | ||
'flex h-full w-full items-center justify-center rounded-xl bg-muted', | ||
className | ||
)} | ||
{...props} | ||
/> | ||
)); | ||
|
||
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName; | ||
|
||
export { Avatar, AvatarImage, AvatarFallback }; |
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,27 @@ | ||
import Section from './Section'; | ||
import { Card, CardHeader, CardContent } from './Card'; | ||
|
||
const Education = ({ education }) => { | ||
return ( | ||
<Section> | ||
<h2 className="text-xl font-bold">Education</h2> | ||
{education.map((e) => { | ||
return ( | ||
<Card key={e.institution}> | ||
<CardHeader> | ||
<div className="flex items-center justify-between gap-x-2 text-base"> | ||
<h3 className="font-semibold leading-none">{e.institution}</h3> | ||
<div className="text-sm tabular-nums text-gray-500"> | ||
{e.startDate} - {e.endDate} | ||
</div> | ||
</div> | ||
</CardHeader> | ||
<CardContent className="mt-2">{e.area}</CardContent> | ||
</Card> | ||
); | ||
})} | ||
</Section> | ||
); | ||
}; | ||
|
||
export default Education; |
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,51 @@ | ||
import { | ||
Card, | ||
CardHeader, | ||
CardContent, | ||
CardDescription, | ||
CardTitle, | ||
} from './Card'; | ||
|
||
export default function ProjectCard({ title, description, link }) { | ||
return ( | ||
<Card className="flex flex-col overflow-hidden border border-muted p-3"> | ||
<CardHeader className=""> | ||
<div className="space-y-1"> | ||
<CardTitle className="text-base"> | ||
{link ? ( | ||
<a | ||
href={link} | ||
target="_blank" | ||
className="inline-flex items-center gap-1 hover:underline" | ||
> | ||
{title}{' '} | ||
<span className="size-1 rounded-full bg-green-500"></span> | ||
</a> | ||
) : ( | ||
title | ||
)} | ||
</CardTitle> | ||
<div className="hidden font-mono text-xs underline print:visible"> | ||
{link?.replace('https://', '').replace('www.', '').replace('/', '')} | ||
</div> | ||
<CardDescription className="font-mono text-xs"> | ||
{description} | ||
</CardDescription> | ||
</div> | ||
</CardHeader> | ||
<CardContent className="mt-auto flex"> | ||
<div className="mt-2 flex flex-wrap gap-1"> | ||
{/* {tags.map((tag) => ( | ||
<Badge | ||
className="px-1 py-0 text-[10px]" | ||
variant="secondary" | ||
key={tag} | ||
> | ||
{tag} | ||
</Badge> | ||
))} */} | ||
</div> | ||
</CardContent> | ||
</Card> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Section from './Section'; | ||
import { Badge } from './Badge'; | ||
|
||
const Skills = ({ skills }) => { | ||
return ( | ||
<Section> | ||
<h2 className="text-xl font-bold">Skills</h2> | ||
<div className="flex flex-wrap gap-1"> | ||
{skills.map((skill) => { | ||
return <Badge key={skill.name}>{skill.name}</Badge>; | ||
})} | ||
</div> | ||
</Section> | ||
); | ||
}; | ||
|
||
export default Skills; |
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
Oops, something went wrong.