web: reusable meowbalt component & page placeholders

This commit is contained in:
wukko 2024-06-16 20:32:09 +06:00
parent 597320cb17
commit 382c6e1cd8
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
12 changed files with 76 additions and 32 deletions

View file

@ -0,0 +1,14 @@
<img
id="meowbalt-loaf"
src="/meowbalt/loaf.png"
height="152"
width="141"
alt="black and white cat smiling and loafing"
/>
<style>
#meowbalt-loaf {
display: block;
margin: 0;
object-fit: cover;
}
</style>

View file

@ -0,0 +1,16 @@
<script>
import MeowbaltLoaf from "../meowbalt/MeowbaltLoaf.svelte";
export let pageName;
</script>
<div id="placeholder-container" class="center-column-container">
<MeowbaltLoaf />
<div>{pageName} page is not ready yet!</div>
</div>
<style>
#placeholder-container {
gap: var(--padding);
text-align: center;
}
</style>

View file

@ -80,6 +80,14 @@
background-color: var(--button-hover); background-color: var(--button-hover);
} }
:global(.center-column-container) {
display: flex;
width: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
}
#cobalt { #cobalt {
height: 100vh; height: 100vh;
display: grid; display: grid;

View file

@ -1,15 +1,11 @@
<script> <script>
import Omnibox from "../components/save/Omnibox.svelte"; import Omnibox from "../components/save/Omnibox.svelte";
import MeowbaltLoaf from "../components/meowbalt/MeowbaltLoaf.svelte";
</script> </script>
<div id="cobalt-save-container"> <div id="cobalt-save-container" class="center-column-container">
<main id="cobalt-save"> <main id="cobalt-save">
<img <MeowbaltLoaf />
id="meowbalt-smile"
src="/meowbalt/smile.png"
height="152"
alt="black and white cat smiling and loafing"
/>
<Omnibox /> <Omnibox />
</main> </main>
<div id="terms-note"> <div id="terms-note">
@ -18,12 +14,6 @@
</div> </div>
<style> <style>
#cobalt-save-container {
display: flex;
width: 100%;
flex-direction: column;
}
#cobalt-save { #cobalt-save {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -34,11 +24,6 @@
gap: 24px; gap: 24px;
} }
#meowbalt-smile {
display: block;
margin: 0;
}
#terms-note { #terms-note {
bottom: 0; bottom: 0;
color: var(--gray); color: var(--gray);

View file

@ -1,2 +1,5 @@
<!-- about page --> <script>
<div>about</div> import Placeholder from "../../components/misc/Placeholder.svelte";
</script>
<Placeholder pageName="about" />

View file

@ -1,2 +1,5 @@
<!-- convert page --> <script>
<div>convert</div> import Placeholder from "../../components/misc/Placeholder.svelte";
</script>
<Placeholder pageName="convert" />

View file

@ -1,2 +1,5 @@
<!-- crop page --> <script>
<div>crop</div> import Placeholder from "../../components/misc/Placeholder.svelte";
</script>
<Placeholder pageName="crop" />

View file

@ -1,2 +1,5 @@
<!-- donate page --> <script>
<div>donate</div> import Placeholder from "../../components/misc/Placeholder.svelte";
</script>
<Placeholder pageName="donate" />

View file

@ -1,2 +1,5 @@
<!-- settings page --> <script>
<div>settings</div> import Placeholder from "../../components/misc/Placeholder.svelte";
</script>
<Placeholder pageName="settings" />

View file

@ -1,2 +1,5 @@
<!-- trim page --> <script>
<div>trim</div> import Placeholder from "../../components/misc/Placeholder.svelte";
</script>
<Placeholder pageName="trim" />

View file

@ -1,2 +1,5 @@
<!-- updates (changelog) page --> <script>
<div>updates</div> import Placeholder from "../../components/misc/Placeholder.svelte";
</script>
<Placeholder pageName="updates" />

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB