87 lines
1.7 KiB
Svelte
87 lines
1.7 KiB
Svelte
<script context="module">
|
|
import { goto } from '$app/navigation'
|
|
let ign;
|
|
|
|
function redir() {
|
|
goto(`/players/${ign}`)
|
|
}
|
|
</script>
|
|
|
|
<div class="flex flex-col justify-center items-center min-h-screen bg-blue-200">
|
|
|
|
<h1 class="text-3xl pb-5">Statpixel</h1>
|
|
|
|
<form on:submit|preventDefault={redir} class="p-3">
|
|
<input bind:value={ign} placeholder="Enter your IGN" required>
|
|
<button type="submit" class="border border-black">Go</button>
|
|
</form>
|
|
|
|
|
|
<footer>
|
|
<p>
|
|
Created with <a
|
|
class="link"
|
|
target="_blank"
|
|
rel="noopener"
|
|
href="https://svelte.dev">SvelteKit</a
|
|
>
|
|
and deployed with
|
|
<a class="link" target="_blank" rel="noopener" href="https://vercel.com"
|
|
>▲ Vercel</a
|
|
>.
|
|
</p>
|
|
</footer>
|
|
|
|
</div>
|
|
<!-- <style>
|
|
:global(body) {
|
|
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console,
|
|
monospace;
|
|
background-color: #fafafa;
|
|
max-width: 650px;
|
|
margin: 32px auto;
|
|
padding: 0 16px;
|
|
}
|
|
h1 {
|
|
letter-spacing: -0.025em;
|
|
}
|
|
h2 {
|
|
font-size: 18px;
|
|
}
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin-top: 32px;
|
|
}
|
|
li {
|
|
border: 1px solid #eaeaea;
|
|
border-radius: 8px;
|
|
margin-bottom: 16px;
|
|
background-color: white;
|
|
transition: 0.15s box-shadow ease-in-out;
|
|
}
|
|
li:hover {
|
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
|
|
}
|
|
p {
|
|
color: #666;
|
|
font-size: 14px;
|
|
line-height: 1.75;
|
|
}
|
|
a {
|
|
color: #0070f3;
|
|
text-decoration: none;
|
|
}
|
|
.card-link {
|
|
padding: 8px 24px;
|
|
display: block;
|
|
}
|
|
.link {
|
|
transition: 0.15s text-decoration ease-in-out;
|
|
color: #0761d1;
|
|
}
|
|
.link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
</style> -->
|