v0.1/styling-and-bug-fixes #38

Merged
lamacchinadesiderante merged 5 commits from v0.1/styling-and-bug-fixes into main 2024-04-25 21:14:47 +00:00
9 changed files with 37 additions and 7 deletions
Showing only changes of commit b82548e52e - Show all commits

View File

@ -0,0 +1,7 @@
@import 'fontsize';
@import 'spacing';
.container {
font-size: $font-size-small;
margin: $spacing_8 0px $spacing_16;
}

View File

@ -1,5 +1,7 @@
import React from 'react'; import React from 'react';
import style from './Description.module.scss'
import {useTranslations} from 'next-intl'; import {useTranslations} from 'next-intl';
const Description: React.FC = () => { const Description: React.FC = () => {
@ -7,7 +9,7 @@ const Description: React.FC = () => {
const t = useTranslations('Header'); const t = useTranslations('Header');
return ( return (
<div>{t('description')}</div> <div className={style.container}>{t('description')}</div>
); );
}; };

View File

@ -1,10 +1,12 @@
@import 'colors'; @import 'colors';
@import 'spacing'; @import 'spacing';
@import 'fontsize';
.messageBox { .messageBox {
border: 1px solid $colors_yellow; border: 1px solid $colors_yellow;
text-align: center; text-align: center;
padding: $spacing_8; padding: $spacing_8;
border-radius: $spacing_4; border-radius: $spacing_4;
margin-bottom: $spacing_32; margin-bottom: $spacing_16;
font-size: $font-size-medium;
} }

View File

@ -0,0 +1,5 @@
@import 'spacing';
.title {
margin-bottom: 0px;
}

View File

@ -1,5 +1,7 @@
import React from 'react'; import React from 'react';
import style from './Title.module.scss'
import {useTranslations} from 'next-intl'; import {useTranslations} from 'next-intl';
import Link from 'next/link'; import Link from 'next/link';
@ -8,8 +10,7 @@ const Title: React.FC = () => {
const t = useTranslations('Header'); const t = useTranslations('Header');
return ( return (
<Link href={'/'}><h1>{t('title')}</h1></Link> <Link href={'/'}><h1 className={style.title}>{t('title')}</h1></Link>
); );
}; };

View File

@ -25,7 +25,7 @@
} }
.galleryContainer.show { .galleryContainer.show {
@media only screen and (max-width: $portrait) { @media only screen and (max-width: $tablet) {
grid-template-columns: repeat(1, 1fr); grid-template-columns: repeat(1, 1fr);
} }
} }

View File

@ -1,6 +1,11 @@
@import 'breakpoints'; @import 'breakpoints';
.toggleContainer { .toggleContainer {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 16px;
@media only screen and (min-width: $tablet) { @media only screen and (min-width: $tablet) {
display: none; display: none;
} }

View File

@ -1,5 +1,5 @@
@import "./breakpoints"; @import "./breakpoints";
@import "./spacing"; @import "./fontsize";
@font-face { @font-face {
font-family: 'Lemon Yellow Sun'; font-family: 'Lemon Yellow Sun';
@ -19,7 +19,11 @@ h5 {
} }
h1 { h1 {
font-size: $spacing_48; font-size: $font-size-xlarge;
@media only screen and (max-width: $tablet) {
font-size: $font-size-large;
}
} }
span, span,

View File

@ -0,0 +1,4 @@
$font-size-small: 10px;
$font-size-medium: 16px;
$font-size-large: 32px;
$font-size-xlarge: 48px;