Add header

This commit is contained in:
Caleb
2025-05-15 23:32:35 -04:00
committed by Cooper Quintin
parent 96a02763e4
commit 643fa9f979
3 changed files with 7 additions and 5 deletions

View File

@@ -7,6 +7,6 @@
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
<div style="display: contents" class="m-4 xl:m-8">%sveltekit.body%</div>
</body>
</html>

View File

@@ -7,7 +7,7 @@
} = $props();
function confirmDelete() {
if (window.confirm(`Permanently delete ALL entries?`)) {
if (window.confirm(`Permanently delete ALL recordings?`)) {
req('POST', '/api/delete-all-recordings')
}
}
@@ -16,8 +16,8 @@
<div class="flex flex-row gap-2">
<RecordingControls {server_is_recording} />
<DeleteButton
text="Delete ALL Entries"
prompt={`Are you sure you want to delete ALL entries?`}
text="Delete ALL Recordings"
prompt={`Are you sure you want to delete ALL recordings?`}
url={`/api/delete-all-recordings`}
/>
</div>

View File

@@ -30,7 +30,9 @@
})
</script>
<h1 class="m-4 xl:m-8 text-4xl font-extrabold">Rayhunter Dashboard</h1>
<div class="p-4 xl:p-8 bg-rayhunter-blue">
<span class="text-4xl font-extrabold text-rayhunter-green">Rayhunter</span>
</div>
<div class="m-4 xl:m-8 flex flex-col gap-4">
{#if loaded}
<SystemStatsTable stats={system_stats!} />