From 891330d98d75b8621bda2dd7528e099af287060c Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 24 Sep 2025 10:32:25 +0200 Subject: Migrate to tailwind styles --- src/components/Datetime.tsx | 6 +++--- src/components/Map.tsx | 5 +---- src/components/Slider.tsx | 24 ++++++---------------- src/pages/history/[date].astro | 1 - src/pages/index.astro | 1 - src/styles/geshem.css | 45 ------------------------------------------ src/styles/global.css | 17 +++++++++++++++- 7 files changed, 26 insertions(+), 73 deletions(-) delete mode 100644 src/styles/geshem.css diff --git a/src/components/Datetime.tsx b/src/components/Datetime.tsx index 2010f8b..8b66a4f 100644 --- a/src/components/Datetime.tsx +++ b/src/components/Datetime.tsx @@ -20,9 +20,9 @@ export function DateTime({ images, slider }: DateTimeProps) { const time = datetime ? datetime.toFormat("HH:mm") : ""; return ( -
-
{date}
-
{time}
+
+
{date}
+
{time}
); } \ No newline at end of file diff --git a/src/components/Map.tsx b/src/components/Map.tsx index 0e39308..070dc5c 100644 --- a/src/components/Map.tsx +++ b/src/components/Map.tsx @@ -99,10 +99,7 @@ export function Map({ slider, images }: MapProps) { return (
-
+
); } \ No newline at end of file diff --git a/src/components/Slider.tsx b/src/components/Slider.tsx index bb1b84f..bdca22c 100644 --- a/src/components/Slider.tsx +++ b/src/components/Slider.tsx @@ -52,30 +52,18 @@ export function Slider({ playback, slider, setSlider }: SliderProps) { const percentage = (slider / max) * 100; return ( -
+
diff --git a/src/pages/history/[date].astro b/src/pages/history/[date].astro index 0bd1e40..8796c14 100644 --- a/src/pages/history/[date].astro +++ b/src/pages/history/[date].astro @@ -1,7 +1,6 @@ --- import { Geshem } from '../../components/Geshem'; import '../../styles/global.css'; -import '../../styles/geshem.css'; export const prerender = false; diff --git a/src/pages/index.astro b/src/pages/index.astro index fb90246..d41f1fa 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,7 +1,6 @@ --- import { Geshem } from '../components/Geshem'; import '../styles/global.css'; -import '../styles/geshem.css'; const { date } = Astro.params; --- diff --git a/src/styles/geshem.css b/src/styles/geshem.css deleted file mode 100644 index 2dba79f..0000000 --- a/src/styles/geshem.css +++ /dev/null @@ -1,45 +0,0 @@ -#datetime { - position: absolute; - top: 20px; - left: 20px; - color: white; - font-family: monospace; -} - -#date { - font-size: 1.4em; -} - -#time { - font-size: 2.8em; -} - -#slider { - position: fixed; - bottom: 8vh; - width: 30vw; - margin-left: 35vw; -} - -@media only screen and (max-device-width: 812px) { - #slider { - width: 80vw; - margin-left: 8vw; - z-index: 10; - } -} - -body { - margin: 0; - padding: 0; - position: fixed; - overflow: hidden; - width: 100vw; - height: 100vh; - user-select: none; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} \ No newline at end of file diff --git a/src/styles/global.css b/src/styles/global.css index a461c50..c81f9a9 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -1 +1,16 @@ -@import "tailwindcss"; \ No newline at end of file +@import "tailwindcss"; + +body { + margin: 0; + padding: 0; + position: fixed; + overflow: hidden; + width: 100vw; + height: 100vh; + user-select: none; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", + "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} \ No newline at end of file -- cgit v1.3.1