PostService section + little tweaking
This commit is contained in:
@@ -39,7 +39,7 @@ export const Contact = () => {
|
|||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<span className={styles.separator} />
|
<span className='separator' />
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -15,9 +15,7 @@ export const Header = () => {
|
|||||||
width={528}
|
width={528}
|
||||||
height={237}
|
height={237}
|
||||||
/>
|
/>
|
||||||
<span className={styles.subTitleText}>
|
<h1 className={styles.subTitleText}>Kauppa&Ravintola&Kahvila&Baari</h1>
|
||||||
Kauppa&Ravintola&Kahvila&Baari
|
|
||||||
</span>
|
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
20
components/PostService.tsx
Normal file
20
components/PostService.tsx
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import styles from '../styles/PostService.module.scss';
|
||||||
|
|
||||||
|
export const PostService = () => {
|
||||||
|
return (
|
||||||
|
<section className={styles.mainContainer}>
|
||||||
|
<h1 className={styles.title}>Postin automaattipalvelu</h1>
|
||||||
|
<p className={styles.desc}>
|
||||||
|
Lähetä tai nouda paketti Postin pakettiautomaatista Livonsaaren
|
||||||
|
Osuuskaupasta
|
||||||
|
</p>
|
||||||
|
<span className={styles.info}>ma-la 12:00-19:00</span>
|
||||||
|
<span className={styles.info}>Velkuantie 988, 21180 Livonsaari</span>
|
||||||
|
<a href='https://www.smartpost.fi/' className={styles.link}>
|
||||||
|
Lisätietoja
|
||||||
|
</a>
|
||||||
|
<span className='separator' />
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Contact } from '../components/Contact';
|
import { Contact } from '../components/Contact';
|
||||||
import { Header } from '../components/Header';
|
import { Header } from '../components/Header';
|
||||||
import { OpenHours } from '../components/OpenHours';
|
import { OpenHours } from '../components/OpenHours';
|
||||||
|
import { PostService } from '../components/PostService';
|
||||||
import styles from '../styles/Home.module.scss';
|
import styles from '../styles/Home.module.scss';
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
@@ -10,6 +11,7 @@ export default function Home() {
|
|||||||
<Header />
|
<Header />
|
||||||
<OpenHours />
|
<OpenHours />
|
||||||
<Contact />
|
<Contact />
|
||||||
|
<PostService />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -24,10 +24,5 @@
|
|||||||
.someIcon {
|
.someIcon {
|
||||||
max-width: 30px;
|
max-width: 30px;
|
||||||
margin: 15px;
|
margin: 15px;
|
||||||
}
|
margin-bottom: 0;
|
||||||
|
|
||||||
.separator {
|
|
||||||
background-color: #fff;
|
|
||||||
width: 100%;
|
|
||||||
height: 0.05rem;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,4 +12,8 @@
|
|||||||
|
|
||||||
.subTitleText {
|
.subTitleText {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #686868;
|
||||||
}
|
}
|
||||||
|
|||||||
34
styles/PostService.module.scss
Normal file
34
styles/PostService.module.scss
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
.mainContainer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 2rem;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #686868;
|
||||||
|
}
|
||||||
|
|
||||||
|
.desc {
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
margin-top: 0.7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link {
|
||||||
|
color: #0274be;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 0.7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link:hover {
|
||||||
|
color: #3a3a3a;
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@ body {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Quicksand';
|
font-family: 'Quicksand';
|
||||||
|
letter-spacing: 0.8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
@@ -15,7 +16,15 @@ body {
|
|||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
color: white;
|
color: black;
|
||||||
background: black;
|
background: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.separator {
|
||||||
|
background-color: #c1c1c1;
|
||||||
|
width: 100%;
|
||||||
|
height: 0.05rem;
|
||||||
|
margin-top: 2rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user