From 0101387b463eeecccd19d4b9da73ff5f8c7b1162 Mon Sep 17 00:00:00 2001 From: log101 Date: Sun, 28 Jul 2024 20:32:56 +0300 Subject: [PATCH] style: bigger font sizes --- src/components/ShareButton.tsx | 28 ++++++++++++++-------------- src/pages/[id].astro | 25 ++++++++++++------------- src/styles/locked-page.css | 2 +- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/src/components/ShareButton.tsx b/src/components/ShareButton.tsx index 3fc9c65..a99d63b 100644 --- a/src/components/ShareButton.tsx +++ b/src/components/ShareButton.tsx @@ -1,5 +1,5 @@ -import { toast } from "@/lib/utils"; -import { Button } from "./ui/button"; +import { toast } from "@/lib/utils" +import { Button } from "./ui/button" const ShareButton = () => { const shareLink = async () => { @@ -7,36 +7,36 @@ const ShareButton = () => { title: "Konulu Konum", text: "Sevdiklerinizi şaşırtın!", url: document.URL, - }; + } - await navigator.share(shareData); - }; + await navigator.share(shareData) + } const copyLink = async () => { try { - await navigator.clipboard.writeText(document.URL); - toast("Konulu konum kopyalandı."); + await navigator.clipboard.writeText(document.URL) + toast("Konulu konum kopyalandı.") } catch (err: any) { - console.error(err.message); + console.error(err.message) } - }; + } return (
{ //@ts-expect-error navigator is not always defined window.navigator.share ? ( - ) : ( - ) }
- ); -}; + ) +} -export default ShareButton; +export default ShareButton diff --git a/src/pages/[id].astro b/src/pages/[id].astro index 42a61cf..4ed5e3f 100644 --- a/src/pages/[id].astro +++ b/src/pages/[id].astro @@ -40,15 +40,14 @@ const dateFromNow = dayjs.utc(data?.created_at).from(dayjs.utc())
-
+

Konulu Konum

-

- Arkadaşınız size bir fotoğraf ve bir not bıraktı. Fakat fotoğrafı - görebilmeniz için aşağıdaki konuma gitmeniz gerekiyor. Konuma - yaklaştığınızda butona basıp fotoğrafı görüntüleyebilirsiniz. +

+ Size bir konulu konum bırakıldı, görüntüleyebilmek için haritadaki + konuma gitmeniz gerekiyor.

@@ -56,12 +55,12 @@ const dateFromNow = dayjs.utc(data?.created_at).from(dayjs.utc()) - {data?.author} + {data?.author} - +

{data?.description}

- +

{dateFromNow}

@@ -86,8 +85,8 @@ const dateFromNow = dayjs.utc(data?.created_at).from(dayjs.utc()) -

İçerik Kilitli

+

İçerik Kilitli

-

+

Ne kadar yaklaştığını görmek için aşağıdaki butona bas.

diff --git a/src/styles/locked-page.css b/src/styles/locked-page.css index 0ed2a30..089fa75 100644 --- a/src/styles/locked-page.css +++ b/src/styles/locked-page.css @@ -1,11 +1,11 @@ .custom-map-control-button { + @apply text-xl; background-color: #fff; border: 0; border-radius: 2px; box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3); margin: 10px; padding: 0 0.5em; - font: 400 18px Roboto, Arial, sans-serif; overflow: hidden; height: 40px; cursor: pointer;