diff options
| author | Yuval Adam <_@yuv.al> | 2024-09-23 16:54:07 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2024-09-23 16:54:07 +0200 |
| commit | 20d392a6300fc331df30f8f11da8b2f33cbe4a93 (patch) | |
| tree | e09fe866b7997f29ab9678b3171dc73694708e50 | |
| parent | 74d6bf7e01fca36b0a915c7c9d4e4284300979c4 (diff) | |
Cleanup Datetime styles
| -rw-r--r-- | app/components/Datetime.tsx | 6 | ||||
| -rw-r--r-- | app/globals.css | 16 |
2 files changed, 3 insertions, 19 deletions
diff --git a/app/components/Datetime.tsx b/app/components/Datetime.tsx index 0a8fbcf..b781287 100644 --- a/app/components/Datetime.tsx +++ b/app/components/Datetime.tsx @@ -20,9 +20,9 @@ export function DateTime({ images, slider }: DateTimeProps) { const time = datetime ? datetime.toFormat("HH:mm") : ""; return ( - <div id="datetime"> - <div id="date">{date}</div> - <div id="time">{time}</div> + <div id="datetime" className="absolute top-3 left-5 font-mono text-gray-200"> + <div id="date" className="text-lg">{date}</div> + <div id="time" className="text-4xl">{time}</div> </div> ); } diff --git a/app/globals.css b/app/globals.css index 62b9a76..3024a0c 100644 --- a/app/globals.css +++ b/app/globals.css @@ -26,22 +26,6 @@ body { } } -#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; |
