style: mobile styling

This commit is contained in:
log101 2024-07-28 21:54:37 +03:00
parent 0101387b46
commit 466c4eb51d
3 changed files with 17 additions and 16 deletions

View File

@ -30,9 +30,10 @@ function addClasses(elemId: string, ...inputs: string[]) {
else console.error("Element could not be found!") else console.error("Element could not be found!")
} }
function removeElement(elemId: string) { function removeElement(elemId: string, silent = false) {
const elem = document.getElementById(elemId) const elem = document.getElementById(elemId)
if (elem) elem.remove() if (elem) elem.remove()
else if (silent) return
else console.error("Element could not be found!") else console.error("Element could not be found!")
} }

View File

@ -15,7 +15,6 @@ import {
CardTitle, CardTitle,
} from "@/components/ui/card" } from "@/components/ui/card"
import { CalendarIcon } from "@radix-ui/react-icons" import { CalendarIcon } from "@radix-ui/react-icons"
import { Separator } from "@/components/ui/separator"
import type { ContentTable } from "@/lib/db" import type { ContentTable } from "@/lib/db"
// Dayjs // Dayjs
@ -51,8 +50,6 @@ const dateFromNow = dayjs.utc(data?.created_at).from(dayjs.utc())
</p> </p>
</div> </div>
<Separator />
<Card className='w-full'> <Card className='w-full'>
<CardHeader> <CardHeader>
<CardTitle className='text-2xl'>{data?.author}</CardTitle> <CardTitle className='text-2xl'>{data?.author}</CardTitle>

View File

@ -11,7 +11,7 @@ import { Loader2 } from "lucide-react"
<Layout> <Layout>
<main> <main>
<form <form
class='flex flex-col gap-10' class='flex flex-col gap-12 md:gap-10'
id='sample-form' id='sample-form'
enctype='multipart/form-data'> enctype='multipart/form-data'>
<div> <div>
@ -32,9 +32,7 @@ import { Loader2 } from "lucide-react"
1. Fotoğraf Seçimi 1. Fotoğraf Seçimi
</h2> </h2>
<p class='leading-7 [&:not(:first-child)]:mt-6 text-2xl'> <p class='leading-7 [&:not(:first-child)]:mt-6 text-2xl'>
Aşağıdaki butona basıp galerinizden bir fotoğraf seçin, seçtiğiniz Bir fotoğraf seçin.
fotoğraf yalnızca belirli bir konumda açılabilecek bir hale
getirilecek.
</p> </p>
<div class='grid w-full max-w-sm items-center gap-1.5 mt-4'> <div class='grid w-full max-w-sm items-center gap-1.5 mt-4'>
<input <input
@ -56,14 +54,18 @@ import { Loader2 } from "lucide-react"
2. Fotoğrafın Açılacağı Konum 2. Fotoğrafın Açılacağı Konum
</h2> </h2>
<p class='leading-7 [&:not(:first-child)]:mt-6 text-2xl'> <p class='leading-7 [&:not(:first-child)]:mt-6 text-2xl'>
Haritadan bir nokta seçin. Bağlantıyı gönderdiğiniz kişi bu konuma Haritadan bir nokta seçin.
gittiği zaman seçtiğiniz fotoğrafı görebilecek.
</p> </p>
<div> <div>
<div <div
id='map' id='map'
class='w-full h-[450px] rounded mt-6 transition-colors ease-in-out border-2 duration-300'> class='w-full h-[450px] rounded mt-6 transition-colors ease-in-out border-2 duration-300'>
</div> </div>
<p class='text-lg text-muted-foreground mt-2'>
Bağlantıyı gönderdiğiniz kişi bu konuma gittiği zaman seçtiğiniz
fotoğrafı görebilecek.
</p>
<p class='text-2xl mt-4 mb-2'> <p class='text-2xl mt-4 mb-2'>
<span class='font-semibold'>Seçilen Konum:</span> <span class='font-semibold'>Seçilen Konum:</span>
</p> </p>
@ -88,18 +90,18 @@ import { Loader2 } from "lucide-react"
class='mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0'> class='mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0'>
3. Fotoğraf Açıklaması 3. Fotoğraf Açıklaması
</h2> </h2>
<div class='grid w-full max-w-md items-center gap-2 mt-4'> <div class='grid w-full max-w-md items-center gap-4 mt-4'>
<div class='grid w-full items-center gap-1.5'> <div class='grid w-full items-center gap-2'>
<label for='location-author' class='text-xl'> Gönderici: </label> <label for='location-author' class='text-xl'> Gönderici: </label>
<input <input
id='location-author' id='location-author'
name='author' name='author'
placeholder='İsminizi buraya yazınız.' placeholder='İsminizi buraya yazınız.'
class='lg:text-lg text-md py-2 px-3 border border-gray rounded-lg placeholder:text-slate-400' class='text-lg py-2 px-3 border border-gray rounded-lg placeholder:text-slate-400'
required required
/> />
</div> </div>
<div class='grid w-full items-center gap-1.5'> <div class='grid w-full items-center gap-2'>
<label for='location-description' class='text-xl'> <label for='location-description' class='text-xl'>
ıklama: ıklama:
</label> </label>
@ -107,7 +109,7 @@ import { Loader2 } from "lucide-react"
placeholder='Açıklamanızı buraya yazınız.' placeholder='Açıklamanızı buraya yazınız.'
name='description' name='description'
id='location-description' id='location-description'
class='lg:text-lg text-md py-2 px-3 border border-gray rounded-lg placeholder:text-slate-400 resize-none' class='text-lg py-2 px-3 border border-gray rounded-lg placeholder:text-slate-400 resize-none'
required></textarea> required></textarea>
<p class='text-lg text-muted-foreground'> <p class='text-lg text-muted-foreground'>
Bir açıklama girin, yüklediğiniz içeriğin üzerine bu metin Bir açıklama girin, yüklediğiniz içeriğin üzerine bu metin
@ -115,7 +117,8 @@ import { Loader2 } from "lucide-react"
</p> </p>
</div> </div>
</div> </div>
<div class='flex gap-2 my-6 items-center mt-6'> <hr class='my-4' />
<div class='flex gap-2 my-6 items-center mt-4'>
<input type='checkbox' id='kvkk' class='w-6 h-6' required /> <input type='checkbox' id='kvkk' class='w-6 h-6' required />
<label <label
for='kvkk' for='kvkk'