Skip to content

Commit

Permalink
Migrate components Card styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Oct 23, 2024
1 parent f6d882f commit 3de1c8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 46 deletions.
11 changes: 7 additions & 4 deletions src/components/card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { classes } from "../../utils/classes";

import styles from "./card.module.scss";

interface CardProps {
children?: React.ReactNode;
title?: string;
Expand All @@ -12,8 +10,13 @@ export default function Card(props: CardProps) {
const { children, title, className } = props;

return (
<div className={classes(styles.card, className)}>
{title && <h2 className={styles.title}>{title}</h2>}
<div
className={classes(
"flex flex-col justify-between items-center rounded-3xl shadow bg-alveus-green p-5 my-6 mx-4 w-[32rem] max-w-full max-h-full overflow-y-auto scrollbar-thin scrollbar-track-alveus-green-900 scrollbar-thumb-alveus-green",
className,
)}
>
{title && <h2 className="text-center text-3xl mb-2">{title}</h2>}
{children}
</div>
);
Expand Down
42 changes: 0 additions & 42 deletions src/components/card/card.module.scss

This file was deleted.

0 comments on commit 3de1c8d

Please sign in to comment.