Responsive styling

This commit is contained in:
2022-11-12 17:21:53 +02:00
parent 88df9ee947
commit 3a9d767f14
3 changed files with 36 additions and 16 deletions

View File

@@ -19,7 +19,9 @@ export default function Index() {
height={237} height={237}
loading='lazy' loading='lazy'
/> />
<h1 className={styles.title}>Kauppa&Ravintola&Kahvila&Baari</h1> <h1 className={styles.title + ' ' + styles.underLogo}>
Kauppa&Ravintola&Kahvila&Baari
</h1>
</header> </header>
<section className={styles.sectionContainer}> <section className={styles.sectionContainer}>
@@ -42,7 +44,6 @@ export default function Index() {
<Image <Image
className={styles.socialMediaIcon} className={styles.socialMediaIcon}
src='/fb-icon.png' src='/fb-icon.png'
layout='responsive'
alt='facebook' alt='facebook'
width={300} width={300}
height={300} height={300}
@@ -53,7 +54,6 @@ export default function Index() {
<Image <Image
className={styles.socialMediaIcon} className={styles.socialMediaIcon}
src='/insta-icon.png' src='/insta-icon.png'
layout='responsive'
alt='facebook' alt='facebook'
width={300} width={300}
height={300} height={300}
@@ -87,7 +87,6 @@ export default function Index() {
<Image <Image
className={styles.menuImage} className={styles.menuImage}
src='/restaurant.webp' src='/restaurant.webp'
layout='responsive'
alt='restaurant' alt='restaurant'
width={506} width={506}
height={89} height={89}
@@ -123,8 +122,8 @@ export default function Index() {
<section className={styles.sectionContainer}> <section className={styles.sectionContainer}>
<h1 className={styles.title}>Teemme yhteistyötä</h1> <h1 className={styles.title}>Teemme yhteistyötä</h1>
<Image <Image
className={styles.collaborationImage}
src='/collaboration.png' src='/collaboration.png'
layout='responsive'
alt='yhteystyö' alt='yhteystyö'
width={496} width={496}
height={326} height={326}

View File

@@ -16,6 +16,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
max-width: 80%;
} }
.sectionContainer { .sectionContainer {
@@ -29,8 +30,17 @@
margin-top: 1rem; margin-top: 1rem;
} }
@media screen and (max-width: 600px) {
.address {
max-width: 120%;
margin-bottom: 1rem;
}
}
.mainLogo { .mainLogo {
margin-top: -1rem; margin-top: -1rem;
max-width: 120%;
height: 100%;
} }
.title { .title {
@@ -42,6 +52,12 @@
letter-spacing: normal; letter-spacing: normal;
} }
@media screen and (max-width: 600px) {
.underLogo {
font-size: 1.1rem;
}
}
.keepersImage { .keepersImage {
max-width: 150px; max-width: 150px;
margin-top: 1.5rem; margin-top: 1.5rem;
@@ -56,12 +72,13 @@
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
margin-top: 1rem; margin-top: 1rem;
width: 50%;
} }
.socialMediaIcon { .socialMediaIcon {
max-width: 30px; max-width: 30px;
margin: 15px;
margin-bottom: 0; margin-bottom: 0;
height: 100%;
} }
.postServiceDesc { .postServiceDesc {
@@ -92,6 +109,8 @@
.menuImage { .menuImage {
margin-bottom: 1rem; margin-bottom: 1rem;
max-width: 100%;
height: 100%;
} }
.menuLink { .menuLink {
@@ -121,9 +140,20 @@
margin-bottom: 0; margin-bottom: 0;
} }
.collaborationImage {
max-width: 100%;
height: 100%;
}
.googleMaps { .googleMaps {
border: 0; border: 0;
width: 100%; width: 100%;
height: 30rem; height: 30rem;
margin: 5% 20% 0% 20%; margin: 5% 20% 0% 20%;
} }
@media screen and (max-width: 600px) {
.googleMaps {
height: 15rem;
}
}

View File

@@ -5,19 +5,10 @@ body {
font-family: 'Quicksand'; font-family: 'Quicksand';
letter-spacing: 0.8px; letter-spacing: 0.8px;
scroll-behavior: smooth; scroll-behavior: smooth;
text-align: center;
} }
@font-face { @font-face {
font-family: 'Quicksand'; font-family: 'Quicksand';
src: url('/Quicksand-VariableFont_wght.ttf'); src: url('/Quicksand-VariableFont_wght.ttf');
} }
@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
body {
color: black;
background: white;
}
}