Skip to content

Commit 1a0e772

Browse files
committed
Avatar ✅
1 parent d7316f0 commit 1a0e772

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

app/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { Button, H1, H2, H3, H4, H5, H6, Input, Textarea, Accordion, BasicCard, ProductCard } from "@/components";
2+
import { Button, H1, H2, H3, H4, H5, H6, Input, Textarea, Accordion, BasicCard, ProductCard, Avatar } from "@/components";
33

44
export default function page() {
55
return (
@@ -17,6 +17,12 @@ export default function page() {
1717
<H5>This is H5</H5>
1818
<H6>This is H6</H6>
1919
</div>
20+
21+
<div>
22+
<H3>Avatars</H3>
23+
<Avatar />
24+
</div>
25+
2026
<div>
2127
<H3>Buttons</H3>
2228
<Button>Primary Button</Button>

components/Avatars/Avatar.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from "react";
2+
3+
export function Avatar() {
4+
return (
5+
<div className="inline-block w-14 h-14 border-2 border-black rounded-full overflow-hidden">
6+
<img
7+
className="w-full h-full"
8+
src="https://pagedone.io/asset/uploads/1704275541.png"
9+
alt="Rounded Avatar"
10+
/>
11+
</div>
12+
);
13+
}

components/Avatars/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./Avatar"

components/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export * from "./Buttons"
22
export * from "./Form"
33
export * from "./Typography"
44
export * from "./Accordions"
5-
export * from "./Cards"
5+
export * from "./Cards"
6+
export * from "./Avatars"

0 commit comments

Comments
 (0)