Card container components for a cleaner dashboard
This commit is contained in:
9
src/components/CardContainers/CardContainers.tsx
Normal file
9
src/components/CardContainers/CardContainers.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import style from "./style.module.css";
|
||||
|
||||
export function CardRow({ children }) {
|
||||
return <div className={style.cardRow}>{children}</div>;
|
||||
}
|
||||
|
||||
export function CardColumn({ children }) {
|
||||
return <div className={style.cardColumn}>{children}</div>;
|
||||
}
|
||||
17
src/components/CardContainers/style.module.css
Normal file
17
src/components/CardContainers/style.module.css
Normal file
@@ -0,0 +1,17 @@
|
||||
.cardColumn {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: stretch;
|
||||
gap: 30px;
|
||||
margin: 30px;
|
||||
}
|
||||
|
||||
.cardRow {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
align-items: stretch;
|
||||
gap: 30px;
|
||||
}
|
||||
Reference in New Issue
Block a user