-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up home animations, make all pages mobile-friendly, add basic e…
…rror boundary page (#43) * Fix typing animation, make homepage mobile-ready * Clean up dashboard page for mobile * Clean up model view page for mobile * Add basic error boundary page * Fmt and lint
- Loading branch information
1 parent
f078702
commit 36ee4b1
Showing
7 changed files
with
115 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script> | ||
import { page } from '$app/stores' | ||
import { browser } from '$app/environment' | ||
function goBack() { | ||
if (browser) { | ||
window.history.back() | ||
} | ||
} | ||
</script> | ||
|
||
<h1 class="text-4xl mt-24"> | ||
Error: {$page.status} | ||
</h1> | ||
<p>{$page.error ? $page.error.message : 'Something went wrong'}</p> | ||
<div class="my-8 flex flex-col md:flex-row gap-4"> | ||
<button on:click={goBack}>🔙 Go back</button> | ||
<a href="/">🏠 Go to home</a> | ||
</div> | ||
|
||
<style lang="postcss"> | ||
a, | ||
button { | ||
@apply border border-solid font-mono; | ||
@apply px-6 py-2 text-center; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters