feat: remove remote stylesheets

This commit is contained in:
log101 2024-07-29 18:34:32 +03:00
parent 892b719222
commit 360c51cbea
2 changed files with 6 additions and 20 deletions

View File

@ -1,3 +1,8 @@
---
import "leaflet/dist/leaflet.css"
import "toastify-js/src/toastify.css"
---
<!doctype html>
<html lang='en'>
<head>
@ -5,25 +10,6 @@
<meta name='description' content='Astro description' />
<meta name='viewport' content='width=device-width' />
<link rel='icon' type='image/jpg' href='/konulu-konum-logo.jpg' />
<link
rel='stylesheet'
href='https://unpkg.com/leaflet@1.9.4/dist/leaflet.css'
integrity='sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY='
crossorigin=''
/>
<link
rel='stylesheet'
type='text/css'
href='https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css'
/>
<script
is:inline
src='https://unpkg.com/leaflet@1.9.4/dist/leaflet.js'
integrity='sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo='
crossorigin=''></script>
<script
type='text/javascript'
src='https://cdn.jsdelivr.net/npm/toastify-js'></script>
<meta property='og:title' content='Konulu Konum' />
<meta property='og:description' content='Sevdiklerinizi şaşırtın!' />
<meta property='og:url' content='https://konulu-konum.vercel.app' />

View File

@ -52,7 +52,7 @@ const handleSubmit = async (e: SubmitEvent) => {
if (res.status === 200) {
const data = await res.json()
if (data.url) location.assign(`/x?id="${data.url}"`)
if (data.url) location.assign(`/x?id=${data.url}`)
} else {
toast("Konulu konum oluşturulamadı, lütfen tekrar deneyin.")
}