From 3f26695b2e7edea9d7320fc9e9260b48a516089d Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Thu, 13 Jun 2024 19:33:06 +0200 Subject: [PATCH] new css --- website/src/components/Map.astro | 6 +++ website/src/layouts/Layout.astro | 16 +++--- website/src/pages/index.astro | 23 +++++---- website/src/pages/privacy.md | 1 + website/src/pages/quick_start.astro | 70 +++++++++++++------------- website/src/pages/tos.md | 1 + website/src/styles/global.css | 77 ++++++++++------------------- 7 files changed, 94 insertions(+), 100 deletions(-) diff --git a/website/src/components/Map.astro b/website/src/components/Map.astro index 736e982..b38d1d2 100644 --- a/website/src/components/Map.astro +++ b/website/src/components/Map.astro @@ -33,6 +33,12 @@ const { showStyleURL } = Astro.props position: relative; } + @media (max-width: 550px) { + #map-container { + height: 300px; + } + } + #mapbg-image { width: 100%; height: 100%; diff --git a/website/src/layouts/Layout.astro b/website/src/layouts/Layout.astro index b190dc2..a0b7c30 100644 --- a/website/src/layouts/Layout.astro +++ b/website/src/layouts/Layout.astro @@ -1,9 +1,6 @@ --- -interface Props { - title: string -} - -const { title } = Astro.props +const { frontmatter } = Astro.props || {} +const { title, container } = frontmatter || Astro.props import '../styles/_style.css' --- @@ -32,7 +29,14 @@ import '../styles/_style.css' - + { + container && ( +
+ +
+ ) + } + {!container && }