Created EventPreview component

This commit is contained in:
mmacierzanka committed 2021-10-02 22:35:33 +02:00
1 parent 5f95bfdc75
commit 2217fb2634
4 files changed
+45 -26

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { Link } from "react-router-dom";
import { BIcon } from "../BIcon";
import styles from "./index.module.scss";
export const EventPreview = (props) => {
return (
<Link to="/" className={styles.link}>
<div className={styles.item}>
<span className={styles.location}>{props.name ?? "Event name"}</span> <br></br>
<span>
<BIcon icon="calendar" /> {props.date ?? ""}
</span>
</div>
</Link>
);
};
@@ -0,0 +1,21 @@
@import "../../index.scss";
.link {
text-decoration: none;
color: black !important;
}
.item {
border: 1px solid black;
border-radius: 15px;
width: 70vw;
max-width: 500px;
height: 10vh;
margin: 3px auto;
padding: 10px 25px;
}
.location {
font-weight: bold;
font-size: 1.7em;
}