From a213bb33fb7f74800d2e7c4130674cc6d3594f12 Mon Sep 17 00:00:00 2001 From: LionTion Date: Mon, 21 Sep 2026 14:33:18 +0200 Subject: [PATCH] Tour stuff --- public/icons/krone.svg | 5 +- src/components/screens/Tour.tsx | 9 +++- src/css/Tour.module.css | 88 ++++++++++++++++++++++++++++----- 3 files changed, 87 insertions(+), 15 deletions(-) diff --git a/public/icons/krone.svg b/public/icons/krone.svg index b46b342..87a2b32 100644 --- a/public/icons/krone.svg +++ b/public/icons/krone.svg @@ -1 +1,4 @@ - \ No newline at end of file + + + + \ No newline at end of file diff --git a/src/components/screens/Tour.tsx b/src/components/screens/Tour.tsx index 6471a7c..06fb699 100644 --- a/src/components/screens/Tour.tsx +++ b/src/components/screens/Tour.tsx @@ -9,6 +9,7 @@ import MapView, { PlaceMarker } from "../MapView"; import { useEffect, useState } from "react"; import { usePermissions } from "@/hooks/usePermission"; import PermissionCheck from "../PermissionCheck"; +import clsx from "clsx"; export default function Tour() { const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0"); @@ -57,11 +58,17 @@ export default function Tour() {
+
+ + +
+ +

Rufpunkte

- Your content goes here
+

6500 / 10.000

diff --git a/src/css/Tour.module.css b/src/css/Tour.module.css index be456a4..7a857d0 100644 --- a/src/css/Tour.module.css +++ b/src/css/Tour.module.css @@ -11,7 +11,6 @@ left: 0; flex-shrink: 0; width: 100%; - height: 120px; z-index: 2; background-color: transparent; @@ -49,7 +48,7 @@ background-image: url('/bg/Hintergrund_ohne_Verzierung.webp'); background-size: cover; background-position: top center; - box-shadow: inset 0px -15px 32px 0px #0000004d; + box-shadow: inset 0px -15px 24px 0px #0000004d; z-index: -1; --b: var(--border-width); @@ -69,9 +68,16 @@ } .top-bar-content { - padding: 8px; + padding-left: 8px; + padding-right: 8px; + padding-bottom: 28px; + padding-top: 3.5dvh; position: relative; z-index: 1; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; } .main-content { @@ -94,7 +100,6 @@ top: 0; left: 0; width: 100%; - /*height: 100%; TODO: fullsize when doing this*/ padding: 1rem; background-color: #000000AA; z-index: 10; @@ -112,16 +117,73 @@ } .points-outer-box { - position: relative; - width: 300px; - height: 200px; - background-color: #3498db; - color: #fff; - - -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Cpath d='M 20 0 Q 0 0 0 20 L 0 180 Q 0 200 20 200 L 300 200 Q 320 200 320 180 L 320 200 Z'/%3E%3C/svg%3E"); + --radius: 5px; + --border-size: 4px; + --inner-radius: calc(var(--radius) + var(--border-size)); + --offset: calc(-1 * var(--border-size)); + + width: 70%; + height: 18px; + background-color: #72654c; + padding: var(--border-size); + box-sizing: border-box; + + -webkit-mask: + radial-gradient(var(--radius) at top left, #0000 98%, #000) top left, + radial-gradient(var(--radius) at top right, #0000 98%, #000) top right, + radial-gradient(var(--radius) at bottom left, #0000 98%, #000) bottom left, + radial-gradient(var(--radius) at bottom right, #0000 98%, #000) bottom right; + mask: + radial-gradient(var(--radius) at top left, #0000 98%, #000) top left, + radial-gradient(var(--radius) at top right, #0000 98%, #000) top right, + radial-gradient(var(--radius) at bottom left, #0000 98%, #000) bottom left, + radial-gradient(var(--radius) at bottom right, #0000 98%, #000) bottom right; + + -webkit-mask-size: 51% 51%; + mask-size: 51% 51%; + -webkit-mask-repeat: no-repeat; + mask-repeat: no-repeat; } .points-inner-box { - padding: 30px; - color: #fff; + width: 60%; + height: 100%; + background-color: #fff; + position: relative; + overflow: hidden; + + -webkit-mask: + radial-gradient(var(--inner-radius) at var(--offset) var(--offset), #0000 98%, #000) top left, + radial-gradient(var(--inner-radius) at calc(100% + var(--border-size)) var(--offset), #0000 98%, #000) top right, + radial-gradient(var(--inner-radius) at var(--offset) calc(100% + var(--border-size)), #0000 98%, #000) bottom left, + radial-gradient(var(--inner-radius) at calc(100% + var(--border-size)) calc(100% + var(--border-size)), #0000 98%, #000) bottom right; + mask: + radial-gradient(var(--inner-radius) at var(--offset) var(--offset), #0000 98%, #000) top left, + radial-gradient(var(--inner-radius) at calc(100% + var(--border-size)) var(--offset), #0000 98%, #000) top right, + radial-gradient(var(--inner-radius) at var(--offset) calc(100% + var(--border-size)), #0000 98%, #000) bottom left, + radial-gradient(var(--inner-radius) at calc(100% + var(--border-size)) calc(100% + var(--border-size)), #0000 98%, #000) bottom right; + + -webkit-mask-size: 51% 51%; + mask-size: 51% 51%; + -webkit-mask-repeat: no-repeat; + mask-repeat: no-repeat; +} + +.corner-bar { + width: 100%; + position: absolute; + display: flex; + flex-direction: row; + justify-content: space-between; + padding-left: 6dvw; + padding-right: 6dvw; +} + +.corner { + width: 21%; + max-width: 200px; +} + +.crown { + width: 2rem; } \ No newline at end of file