mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web: reusable meowbalt component & page placeholders
This commit is contained in:
parent
597320cb17
commit
382c6e1cd8
12 changed files with 76 additions and 32 deletions
14
web/src/components/meowbalt/MeowbaltLoaf.svelte
Normal file
14
web/src/components/meowbalt/MeowbaltLoaf.svelte
Normal 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>
|
16
web/src/components/misc/Placeholder.svelte
Normal file
16
web/src/components/misc/Placeholder.svelte
Normal 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>
|
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
<!-- about page -->
|
<script>
|
||||||
<div>about</div>
|
import Placeholder from "../../components/misc/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Placeholder pageName="about" />
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
<!-- convert page -->
|
<script>
|
||||||
<div>convert</div>
|
import Placeholder from "../../components/misc/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Placeholder pageName="convert" />
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
<!-- crop page -->
|
<script>
|
||||||
<div>crop</div>
|
import Placeholder from "../../components/misc/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Placeholder pageName="crop" />
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
<!-- donate page -->
|
<script>
|
||||||
<div>donate</div>
|
import Placeholder from "../../components/misc/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Placeholder pageName="donate" />
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
<!-- settings page -->
|
<script>
|
||||||
<div>settings</div>
|
import Placeholder from "../../components/misc/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Placeholder pageName="settings" />
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
<!-- trim page -->
|
<script>
|
||||||
<div>trim</div>
|
import Placeholder from "../../components/misc/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Placeholder pageName="trim" />
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
<!-- updates (changelog) page -->
|
<script>
|
||||||
<div>updates</div>
|
import Placeholder from "../../components/misc/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Placeholder pageName="updates" />
|
||||||
|
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Loading…
Reference in a new issue