mirror of
https://github.com/multipleof4/4ev.link.git
synced 2026-01-13 15:57:53 +00:00
Refactor: Use production domain for API and links
This commit is contained in:
@@ -67,7 +67,7 @@ a{color:inherit}
|
||||
|
||||
<section class="hero">
|
||||
<h1 class="h1">Short links, built to last</h1>
|
||||
<p class="sub">Clean, fast, privacy-first URL shortener. Free plan with randomized slugs only (e.g., ev.awww.workers.dev/aB3d). No custom slugs, no ads.</p>
|
||||
<p class="sub">Clean, fast, privacy-first URL shortener. Free plan with randomized slugs only (e.g., 4ev.link/xY7z). No custom slugs, no ads.</p>
|
||||
<div class="form" @submit.prevent>
|
||||
<div class="row">
|
||||
<input class="input" x-model="url" type="url" inputmode="url" placeholder="Paste a long URL, e.g. https://example.com/very/long/link" aria-label="Long URL" @keydown.enter.prevent="shorten()">
|
||||
@@ -159,7 +159,7 @@ a{color:inherit}
|
||||
<script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
|
||||
<script src="https://unpkg.com/lucide@latest"></script>
|
||||
<script>
|
||||
const app=()=>({t:localStorage.getItem('theme')||(matchMedia('(prefers-color-scheme:dark)').matches?'dark':'light'),url:'',busy:0,short:'',links:JSON.parse(localStorage.getItem('4ev.links')||'[]'),base:'https://ev.awww.workers.dev',msg:'',
|
||||
const app=()=>({t:localStorage.getItem('theme')||(matchMedia('(prefers-color-scheme:dark)').matches?'dark':'light'),url:'',busy:0,short:'',links:JSON.parse(localStorage.getItem('4ev.links')||'[]'),base:'https://4ev.link',msg:'',
|
||||
init(){document.documentElement.setAttribute('data-theme',this.t);this.freshIcons()},
|
||||
setTheme(v){this.t=v;localStorage.setItem('theme',v);document.documentElement.setAttribute('data-theme',v);this.freshIcons()},
|
||||
toggleTheme(){this.setTheme(this.t==='light'?'dark':'light')},
|
||||
|
||||
Reference in New Issue
Block a user