parent
d7c7db0ef9
commit
6646d3b075
15 changed files with 966 additions and 963 deletions
src/routes
|
@ -5,12 +5,13 @@
|
|||
import Header from './Header.svelte';
|
||||
import Footer from './Footer.svelte';
|
||||
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<Header />
|
||||
|
||||
<div class="h-full pb-8 pt-16">
|
||||
<slot />
|
||||
{@render children()}
|
||||
</div>
|
||||
|
||||
<Footer />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { page } from '$app/state';
|
||||
import { Button } from '$lib/components/ui/button';
|
||||
|
||||
const button = 'border-t-2 bg-black/55 hover:bg-black/70 hover:border-secondary w-28';
|
||||
|
@ -12,7 +12,7 @@
|
|||
<Button
|
||||
variant="ghost"
|
||||
href="/"
|
||||
class="{button} + {!($page.url.pathname === '/') || 'border-secondary text-secondary'}"
|
||||
class="{button} + {!(page.url.pathname === '/') || 'border-secondary text-secondary'}"
|
||||
>
|
||||
Home
|
||||
</Button>
|
||||
|
@ -21,7 +21,7 @@
|
|||
<Button
|
||||
variant="ghost"
|
||||
href="/servers"
|
||||
class="{button} + {!$page.url.pathname.startsWith('/servers') ||
|
||||
class="{button} + {!page.url.pathname.startsWith('/servers') ||
|
||||
'border-secondary text-secondary'}"
|
||||
>
|
||||
Servers
|
||||
|
@ -31,7 +31,7 @@
|
|||
<Button
|
||||
variant="ghost"
|
||||
href="/services"
|
||||
class="{button} + {!$page.url.pathname.startsWith('/services') ||
|
||||
class="{button} + {!page.url.pathname.startsWith('/services') ||
|
||||
'border-secondary text-secondary'}"
|
||||
>
|
||||
Services
|
||||
|
@ -41,7 +41,7 @@
|
|||
<Button
|
||||
variant="ghost"
|
||||
href="/about"
|
||||
class="{button} + {!$page.url.pathname.startsWith('/about') ||
|
||||
class="{button} + {!page.url.pathname.startsWith('/about') ||
|
||||
'border-secondary text-secondary'}"
|
||||
>
|
||||
About
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
import type { Server } from '$lib/types/data-types';
|
||||
import ServerCard from '$lib/components/ServerCard.svelte';
|
||||
|
||||
let servers: readonly Server[] = $state.frozen([]);
|
||||
let servers: readonly Server[] = $state.raw([]);
|
||||
|
||||
let icons: readonly string[] = $state.frozen([]);
|
||||
let icons: readonly string[] = $state.raw([]);
|
||||
|
||||
async function get(url: string): Promise<any> {
|
||||
let res = await fetch(url);
|
||||
|
|
|
@ -3,12 +3,10 @@
|
|||
<script lang="ts">
|
||||
import ServiceCard from '$lib/components/ServiceCard.svelte';
|
||||
import type { Service } from '$lib/types/data-types';
|
||||
import { io } from 'socket.io-client';
|
||||
import { onDestroy } from 'svelte';
|
||||
|
||||
let services: readonly Service[] = $state.frozen([]);
|
||||
let services: readonly Service[] = $state.raw([]);
|
||||
|
||||
let icons: readonly string[] = $state.frozen([]);
|
||||
let icons: readonly string[] = $state.raw([]);
|
||||
|
||||
async function get(url: string): Promise<any> {
|
||||
let res = await fetch(url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue