add people components
This commit is contained in:
27
web/src/components/people/PersonItem.tsx
Normal file
27
web/src/components/people/PersonItem.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import styles from "./personItem.module.scss";
|
||||
|
||||
export const PersonItem = () => {
|
||||
return (
|
||||
<li className={styles.personItem}>
|
||||
<div className={styles.image}></div>
|
||||
<div className={styles.text}>
|
||||
<h1 className={styles.name}>Ellisiv Sunde Myrva</h1>
|
||||
<p className={styles.role}>Kommunikasjonssjef</p>
|
||||
<ul className={styles.contact}>
|
||||
<li>
|
||||
<span className={styles.icon}>✉ </span>
|
||||
<a href="mailto:ellisiv@neuf.no" target="_blank">
|
||||
ellisiv@neuf.no
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<span className={styles.icon}>☎ </span>
|
||||
<a href="tel:94 47 34 04" target="_blank">
|
||||
94 47 34 04
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
);
|
||||
};
|
12
web/src/components/people/PersonList.tsx
Normal file
12
web/src/components/people/PersonList.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import { PersonItem } from "./PersonItem";
|
||||
import styles from "./personList.module.scss";
|
||||
|
||||
export const PersonList = () => {
|
||||
return (
|
||||
<ul className={styles.personList}>
|
||||
<PersonItem />
|
||||
<PersonItem />
|
||||
<PersonItem />
|
||||
</ul>
|
||||
);
|
||||
};
|
43
web/src/components/people/personItem.module.scss
Normal file
43
web/src/components/people/personItem.module.scss
Normal file
@ -0,0 +1,43 @@
|
||||
.personItem {
|
||||
position: relative;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.image {
|
||||
flex: none;
|
||||
width: 7rem;
|
||||
height: 7rem;
|
||||
background: var(--color-neufPink);
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.name,
|
||||
.role {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.role {
|
||||
font-family: var(--font-serif);
|
||||
}
|
||||
|
||||
.contact {
|
||||
list-style: none;
|
||||
margin: .6rem 0;
|
||||
font-size: var(--font-size-caption);
|
||||
font-weight: 500;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.icon {
|
||||
display: inline-block;
|
||||
width: 1rem;
|
||||
text-align: center;
|
||||
margin-right: .4rem;
|
||||
}
|
19
web/src/components/people/personList.module.scss
Normal file
19
web/src/components/people/personList.module.scss
Normal file
@ -0,0 +1,19 @@
|
||||
.personList {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
column-gap: var(--spacing-gap-column);
|
||||
row-gap: var(--spacing-gap-row);
|
||||
padding-bottom: var(--spacing-section-bottom);
|
||||
}
|
||||
|
||||
@media (min-width: 700px) {
|
||||
.personList {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.personList {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user