Skip to content

Commit 6318f40

Browse files
committed
feat: adding cards
1 parent 5a4f24d commit 6318f40

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

lib/Card/Card.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,16 @@ export const Card = ({
3232
const card = (
3333
<div
3434
className={clsx(
35-
'shadow-sm border rounded-xl flex p-3 flex-col items-center justify-center',
35+
'shadow-sm border dark:border-gray-800 rounded-2xl flex p-3 flex-col items-center justify-center',
3636
className,
3737
)}
3838
>
3939
{icon && (
40-
<div className="">
41-
<img
42-
src={icon}
43-
alt={title}
44-
className="w-10 h-10 object-contain mb-2"
45-
/>
46-
</div>
40+
<img
41+
src={icon}
42+
alt={title}
43+
className="w-10 h-10 object-contain mb-2 dark:filter dark:invert dark:opacity-80"
44+
/>
4745
)}
4846
<div className="flex items-center justify-center flex-col">
4947
<h3 className="font-semibold">{title}</h3>
@@ -55,7 +53,7 @@ export const Card = ({
5553
return link ? (
5654
<a
5755
href={link}
58-
className="hover:shadow-sm overflow-hidden rounded-xl transition-shadow duration-200"
56+
className="hover:shadow-sm overflow-hidden rounded-2xl transition-shadow duration-200"
5957
target="_blank"
6058
>
6159
{card}

lib/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
export * from './Callout/Callout';
2-
export * from './Accordion/Accordion';
3-
export * from './Steps/Steps';
1+
export * from './utils';
2+
export * from './Card/Card';
43
export * from './Tabs/Tabs';
4+
export * from './Steps/Steps';
5+
export * from './Callout/Callout';
6+
export * from './Image/ImageZoom';
57
export * from './Code/Code.Server';
68
export * from './Code/Code.Client';
9+
export * from './Accordion/Accordion';
710
export * from './Typography/Typography';
8-
export * from './utils';
9-
export * from './Image/ImageZoom';

0 commit comments

Comments
 (0)