make some fun components for rich text and events 🎷
This commit is contained in:
13
web/src/components/events/EventItem.tsx
Normal file
13
web/src/components/events/EventItem.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import styles from "./eventItem.module.scss";
|
||||
|
||||
export const EventItem = () => {
|
||||
return (
|
||||
<li className={`${styles.eventItem} linkItem`}>
|
||||
<div className={styles.image}></div>
|
||||
<div className={styles.text}>
|
||||
<h1 className={styles.title}>Arrangementstittel</h1>
|
||||
<p className={styles.details}>Detaljer og tidspunkt</p>
|
||||
</div>
|
||||
</li>
|
||||
);
|
||||
};
|
13
web/src/components/events/EventList.tsx
Normal file
13
web/src/components/events/EventList.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import { EventItem } from "./EventItem";
|
||||
import styles from "./eventList.module.scss";
|
||||
|
||||
export const EventList = () => {
|
||||
return (
|
||||
<ul className={styles.eventList}>
|
||||
<EventItem />
|
||||
<EventItem />
|
||||
<EventItem />
|
||||
<EventItem />
|
||||
</ul>
|
||||
);
|
||||
};
|
23
web/src/components/events/eventItem.module.scss
Normal file
23
web/src/components/events/eventItem.module.scss
Normal file
@ -0,0 +1,23 @@
|
||||
.eventItem {
|
||||
position: relative;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.image {
|
||||
width: 100%;
|
||||
padding-top: 60%;
|
||||
background: var(--color-neufPink);
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: .8rem 0;
|
||||
}
|
||||
|
||||
.title,
|
||||
.details {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
.details {
|
||||
font-family: var(--font-serif);
|
||||
}
|
7
web/src/components/events/eventList.module.scss
Normal file
7
web/src/components/events/eventList.module.scss
Normal file
@ -0,0 +1,7 @@
|
||||
.eventList {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
column-gap: var(--spacing-gap-column);
|
||||
row-gap: var(--spacing-gap-row);
|
||||
padding-bottom: var(--spacing-section-bottom);
|
||||
}
|
Reference in New Issue
Block a user