From 7f76fe0da9823b07d43ec4ca807475aa122ca637 Mon Sep 17 00:00:00 2001 From: jaames Date: Fri, 15 Apr 2022 12:54:41 +0100 Subject: [PATCH] homepage mobile layout --- website/src/pages/index.astro | 153 +++++++++++++------- website/src/styles/global.scss | 7 +- website/src/styles/mixins/_breakpoints.scss | 7 + 3 files changed, 114 insertions(+), 53 deletions(-) diff --git a/website/src/pages/index.astro b/website/src/pages/index.astro index 8c24504..7b4d761 100644 --- a/website/src/pages/index.astro +++ b/website/src/pages/index.astro @@ -243,23 +243,16 @@ import Button from '../components/Button.astro'; \ No newline at end of file diff --git a/website/src/styles/global.scss b/website/src/styles/global.scss index e4c7401..13b9620 100644 --- a/website/src/styles/global.scss +++ b/website/src/styles/global.scss @@ -15,7 +15,11 @@ html, body { '); background-position: center top; background-repeat: repeat; - scroll-behavior:smooth + scroll-behavior: smooth; + + @include breakpoint-below-desktop { + font-size: $font-size-global-mobile; + } } img, svg { @@ -32,6 +36,7 @@ h1, h2, h3, h4, h5, h6 { a { cursor: pointer; color: inherit; + font-weight: bold; text-decoration: none; } diff --git a/website/src/styles/mixins/_breakpoints.scss b/website/src/styles/mixins/_breakpoints.scss index 2437307..86d3ef3 100644 --- a/website/src/styles/mixins/_breakpoints.scss +++ b/website/src/styles/mixins/_breakpoints.scss @@ -22,6 +22,13 @@ } } +// phone and tablet +@mixin breakpoint-below-desktop { + @media (max-width: 1199px) { + @content; + } +} + // desktop width and up @mixin breakpoint-desktop { @media (min-width: 1200px) {