add card component
This commit is contained in:
parent
84a2cc7bdd
commit
0ab7478690
7
src/components/UI/Card.js
Normal file
7
src/components/UI/Card.js
Normal file
@ -0,0 +1,7 @@
|
||||
import classes from "./Card.module.css";
|
||||
|
||||
const Card = (props) => {
|
||||
return <div className={classes.card}>{props.children}</div>;
|
||||
};
|
||||
|
||||
export default Card;
|
6
src/components/UI/Card.module.css
Normal file
6
src/components/UI/Card.module.css
Normal file
@ -0,0 +1,6 @@
|
||||
.card {
|
||||
padding: 1rem;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
||||
border-radius: 14px;
|
||||
background-color: white;
|
||||
}
|
Loading…
Reference in New Issue
Block a user