feat: add sample photo
This commit is contained in:
parent
e184e055c6
commit
4794b66718
BIN
public/sample-selfie.webp
Normal file
BIN
public/sample-selfie.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 320 KiB |
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
@ -15,6 +16,4 @@
|
||||||
<slot />
|
<slot />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<style is:global>
|
<style is:global></style>
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
|
@ -1,53 +1,91 @@
|
||||||
---
|
---
|
||||||
import '@/styles/globals.css'
|
import '@/styles/globals.css';
|
||||||
import Layout from '../layouts/Layout.astro';
|
import Layout from '../layouts/Layout.astro';
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from '@/components/ui/button';
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardContent,
|
CardContent,
|
||||||
CardFooter,
|
CardFooter,
|
||||||
CardHeader,
|
CardHeader,
|
||||||
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 { LockClosedIcon } from '@radix-ui/react-icons';
|
||||||
|
|
||||||
const apiKey = import.meta.env.MAPS_SDK_KEY
|
const apiKey = import.meta.env.MAPS_SDK_KEY;
|
||||||
const mapSrc = `https://www.google.com/maps/embed/v1/place?q=place_id:ChIJpSDn9V25yhQRsA2NsrXtDp8&key=${apiKey}`
|
const mapSrc = `https://www.google.com/maps/embed/v1/place?q=place_id:ChIJpSDn9V25yhQRsA2NsrXtDp8&key=${apiKey}`;
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout>
|
<Layout>
|
||||||
<main class="flex flex-col gap-3 mt-4">
|
<main class="flex flex-col gap-3 my-4 items-center">
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Ayşe</CardTitle>
|
<CardTitle>Ayşe</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<p>Senin için bir sürpriz hazırladım, ama önce aşağıdaki konuma gitmen lazım 😘</p>
|
<p>
|
||||||
|
Senin için bir sürpriz hazırladım, ama önce aşağıdaki konuma gitmen
|
||||||
|
lazım 😘
|
||||||
|
</p>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<CardFooter className='gap-2'>
|
<CardFooter className="gap-2">
|
||||||
<CalendarIcon />
|
<CalendarIcon />
|
||||||
<p>5 saat önce</p>
|
<p>5 saat önce</p>
|
||||||
</CardFooter>
|
</CardFooter>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Button className='w-full bg-indigo-500'>Haritayı Gizle</Button>
|
<Button className="w-full bg-indigo-500">Haritayı Gizle</Button>
|
||||||
|
|
||||||
<iframe height="450" style="border:0" loading="lazy" allowfullscreen src={mapSrc}></iframe>
|
<iframe
|
||||||
|
height="450"
|
||||||
|
style="border:0"
|
||||||
|
loading="lazy"
|
||||||
|
allowfullscreen
|
||||||
|
src={mapSrc}
|
||||||
|
class="w-full"></iframe>
|
||||||
|
|
||||||
<div class="w-full h-[200px] bg-gray-600 rounded"></div>
|
<div class="module w-full h-[450px] p-4">
|
||||||
<Button className='w-full'>Paylaş</Button>
|
<div
|
||||||
|
class="module-inside flex flex-col justify-center items-center gap-2"
|
||||||
|
>
|
||||||
|
<Button>
|
||||||
|
<LockClosedIcon className="mr-2 h-4 w-4" />İçerik Kilitli
|
||||||
|
</Button>
|
||||||
|
<Card className="p-2">
|
||||||
|
<CardContent className="pb-0 text-center">
|
||||||
|
İçeriği görmek için konuma gitmelisin!
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Button className="w-full">Paylaş</Button>
|
||||||
</main>
|
</main>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
gmp-map {
|
.module {
|
||||||
height: 100%;
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
.module::before {
|
||||||
body {
|
content: '';
|
||||||
margin: 0;
|
top: 0;
|
||||||
padding: 0;
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
background-image: url('/sample-selfie.webp');
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.module-inside {
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user