Skip to content

Commit

Permalink
chore: update card image example
Browse files Browse the repository at this point in the history
  • Loading branch information
ivalshamkya committed Jan 25, 2024
1 parent d97923c commit a183604
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
Binary file added public/aiko.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/components/example/CardExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ export default function CardExample() {
return (
<div className="flex gap-3">
<Card rounded="none">
<Card.Header imageUrl="https://picsum.photos/200.webp" />
<Card.Header imageUrl="/aiko.jpeg" />
<Card.Body>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Praesentium rem cum nisi molestiae voluptatibus nemo eaque doloremque tempora incidunt laborum! Obcaecati ipsum ducimus ad aliquid cum delectus adipisci ratione dolores.
<h1 className="text-2xl font-bold mb-2">Aiko 🐈</h1>
<p className="line-clamp-4">
Meet the orange cat, a charismatic furball with a coat as vibrant as a summer sunset. This feline fashionista proudly dons a luxurious fur ensemble in various shades of citrus, making every day a catwalk. With eyes that sparkle like the juiciest mandarin, this orange fluff-master struts through life, leaving a trail of paw prints and a lingering scent of sunshine. Known for stealing hearts faster than you can peel an orange, this cat is the ultimate blend of mischief and zest, making it the purrfect companion for anyone in need of a daily dose of Vitamin Cuteness. 🍊😺
</p>
</Card.Body>
<Card.Footer>
<Button>Read More</Button>
Expand Down
10 changes: 5 additions & 5 deletions src/components/neobruu/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ function Card({ rounded = 'none', children }: CardProps) {

Card.Header = function CardHeader({ imageUrl }: CardHeaderProps) {
return (
<a href="" className="block cursor-pointer h-[250px]">
<article className="w-full h-[250px]">
<figure className="w-full h-[250px] border-black border-b-2">
<a href="" className="relative block cursor-pointer h-[300px]">
<article className="w-full h-[300px]">
<figure className="w-full h-[300px] border-black border-b-2">
<Image
src={imageUrl}
alt="thumbnail"
className="w-full h-full object-cover"
fill={true}
/>
</figure>
</article>
Expand All @@ -50,7 +50,7 @@ Card.Footer = function CardFooter({ children }: CardFooterProps) {

Card.Body = function CardBody({ children }: CardBodyProps) {
return (
<div className="px-6 py-5 text-left h-full">
<div className="px-6 py-5 text-justify h-full">
{children}
</div>
);
Expand Down
23 changes: 12 additions & 11 deletions src/data/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type ComponentObj = {
const components: ComponentObj[] = [
{
name: 'Button',
sub: 'button',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Button,
exampleComponent: ButtonExample,
prevComponent: 'Badge',
Expand All @@ -46,7 +46,7 @@ const components: ComponentObj[] = [

{
name: 'Toast',
sub: 'Toast',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Toast,
exampleComponent: ToastExample,
prevComponent: 'Badge',
Expand All @@ -55,7 +55,7 @@ const components: ComponentObj[] = [

{
name: 'Alert',
sub: 'alert',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Alert,
exampleComponent: AlertExample,
prevComponent: 'Badge',
Expand All @@ -64,6 +64,7 @@ const components: ComponentObj[] = [

{
name: 'Badge',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Badge,
exampleComponent: BadgeExample,
prevComponent: 'Badge',
Expand All @@ -72,7 +73,7 @@ const components: ComponentObj[] = [

{
name: 'Checkbox',
sub: 'Checkbox',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Checkbox,
exampleComponent: CheckboxExample,
prevComponent: 'Badge',
Expand All @@ -81,7 +82,7 @@ const components: ComponentObj[] = [

{
name: 'Avatar',
sub: 'Avatar',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Avatar,
exampleComponent: AvatarExample,
prevComponent: 'Badge',
Expand All @@ -90,7 +91,7 @@ const components: ComponentObj[] = [

{
name: 'Tooltip',
sub: 'Tooltip',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Tooltip,
exampleComponent: TooltipExample,
prevComponent: 'Badge',
Expand All @@ -99,7 +100,7 @@ const components: ComponentObj[] = [

{
name: 'Dropdown',
sub: 'Dropdown',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Dropdown,
exampleComponent: DropdownExample,
prevComponent: 'Badge',
Expand All @@ -108,7 +109,7 @@ const components: ComponentObj[] = [

{
name: 'Tabs',
sub: 'Tabs',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Tabs,
exampleComponent: TabsExample,
prevComponent: 'Badge',
Expand All @@ -117,7 +118,7 @@ const components: ComponentObj[] = [

{
name: 'Input',
sub: 'Displays a form input field or a component that looks like an input field.',
sub: 'Lorem ipsum dolor sit amet, consectetur',
component: Input,
exampleComponent: InputExample,
prevComponent: 'Badge',
Expand All @@ -126,7 +127,7 @@ const components: ComponentObj[] = [

{
name: 'Textarea',
sub: 'Displays a form textarea field or a component that looks like an textarea.',
sub: 'Lorem ipsum dolor sit amet, consectetur',
isNew: true,
component: Textarea,
exampleComponent: TextareaExample,
Expand All @@ -136,7 +137,7 @@ const components: ComponentObj[] = [

{
name: 'Card',
sub: 'Displays a form Card field or a component that looks like an Card.',
sub: 'Lorem ipsum dolor sit amet, consectetur',
isNew: true,
component: Card,
exampleComponent: CardExample,
Expand Down

0 comments on commit a183604

Please sign in to comment.