Open hours
This commit is contained in:
15
components/OpenHours.tsx
Normal file
15
components/OpenHours.tsx
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import styles from '../styles/OpenHours.module.scss';
|
||||||
|
|
||||||
|
export const OpenHours = () => {
|
||||||
|
return (
|
||||||
|
<section className={styles.mainContainer}>
|
||||||
|
<h2 className={styles.openHoursBold}>Auki:</h2>
|
||||||
|
<span className={styles.openHours}>ma-la 12:00-19:00</span>
|
||||||
|
<p className={styles.openHoursDesc}>
|
||||||
|
kysynnän ja sään salliessa myös pidempään
|
||||||
|
</p>
|
||||||
|
<h2 className={styles.openHoursBold}>Tervetuloa!</h2>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -1,10 +1,14 @@
|
|||||||
import { Header } from '../components/Header';
|
import { Header } from '../components/Header';
|
||||||
|
import { OpenHours } from '../components/OpenHours';
|
||||||
import styles from '../styles/Home.module.scss';
|
import styles from '../styles/Home.module.scss';
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div className={styles.outerContainer}>
|
<div className={styles.outerContainer}>
|
||||||
|
<div className={styles.innerContainer}>
|
||||||
<Header />
|
<Header />
|
||||||
|
<OpenHours />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
public/elvira-iveta.png
Normal file
BIN
public/elvira-iveta.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
@@ -1,9 +1,12 @@
|
|||||||
.outerContainer {
|
.outerContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.innerContainer {
|
.innerContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
max-width: 50%;
|
||||||
}
|
}
|
||||||
|
|||||||
22
styles/OpenHours.module.scss
Normal file
22
styles/OpenHours.module.scss
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
.mainContainer {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openHoursBold {
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openHours {
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openHoursDesc {
|
||||||
|
max-width: 15rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user