im dying inside
This commit is contained in:
1 parent
061c7d6766
commit
c9fc488ef2
20 files changed
+716
-10
No files matched your search
@@ -0,0 +1,27 @@
|
||||
<script lang="ts">
|
||||
import Navbar from '$lib/components/Navbar.svelte'
|
||||
import '../style/app.css'
|
||||
import { navigating, page } from '$app/stores'
|
||||
import nProgress from 'nprogress'
|
||||
import 'nprogress/nprogress.css'
|
||||
|
||||
nProgress.configure({
|
||||
minimum: 0.4,
|
||||
trickleSpeed: 200,
|
||||
showSpinner: false,
|
||||
})
|
||||
|
||||
$: {
|
||||
if ($navigating) {
|
||||
nProgress.start()
|
||||
}
|
||||
if (!$navigating) {
|
||||
nProgress.done()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<Navbar routes={$page.url.pathname.split('/').slice(2)} />
|
||||
<div class="mx-auto max-w-7xl p-4">
|
||||
<slot />
|
||||
</div>
|
||||
Reference in new issue
Block a user