Skip to content

Commit

Permalink
Avatar ✅
Browse files Browse the repository at this point in the history
  • Loading branch information
ariflogs committed Sep 12, 2024
1 parent d7316f0 commit 1a0e772
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { Button, H1, H2, H3, H4, H5, H6, Input, Textarea, Accordion, BasicCard, ProductCard } from "@/components";
import { Button, H1, H2, H3, H4, H5, H6, Input, Textarea, Accordion, BasicCard, ProductCard, Avatar } from "@/components";

export default function page() {
return (
Expand All @@ -17,6 +17,12 @@ export default function page() {
<H5>This is H5</H5>
<H6>This is H6</H6>
</div>

<div>
<H3>Avatars</H3>
<Avatar />
</div>

<div>
<H3>Buttons</H3>
<Button>Primary Button</Button>
Expand Down
13 changes: 13 additions & 0 deletions components/Avatars/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from "react";

export function Avatar() {
return (
<div className="inline-block w-14 h-14 border-2 border-black rounded-full overflow-hidden">
<img
className="w-full h-full"
src="https://pagedone.io/asset/uploads/1704275541.png"
alt="Rounded Avatar"
/>
</div>
);
}
1 change: 1 addition & 0 deletions components/Avatars/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Avatar"
3 changes: 2 additions & 1 deletion components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export * from "./Buttons"
export * from "./Form"
export * from "./Typography"
export * from "./Accordions"
export * from "./Cards"
export * from "./Cards"
export * from "./Avatars"

0 comments on commit 1a0e772

Please sign in to comment.