diff --git a/public/igni.png b/public/igni.png new file mode 100644 index 0000000..a844eeb Binary files /dev/null and b/public/igni.png differ diff --git a/src/App.svelte b/src/App.svelte index 1eb387d..c6add40 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -30,7 +30,7 @@

igni is a universal discord bot with advanced moderation, advanced configuration and unique command handling. It can replace majority of other bots and is being actively worked on.

- igni avatar + igni avatar
@@ -55,6 +55,12 @@ main { min-height: calc(100vh - 50px); } + main section { + max-width: 720px; + margin: auto; + padding: 0 20px; + width: calc(100vw - 55px); + } .darkmode { background: #242423; color: #E8EDDF; @@ -63,15 +69,12 @@ text-align: center; } img.preview { - width: 100%; + height: 18rem; + max-height: 100%; } img.preview.thetutorials { border-radius: 50%; height: 200px; width: auto; } - img.logo { - padding: 5px; - height: calc(100% - 10px); - } \ No newline at end of file diff --git a/src/components/button.svelte b/src/components/button.svelte index f508bb6..a385ca6 100644 --- a/src/components/button.svelte +++ b/src/components/button.svelte @@ -10,11 +10,11 @@ {#if href} - + {:else} - {/if} @@ -24,6 +24,8 @@ color: #f4f4f4; } button, a { + margin: 2.5px 0; + display: inline-block; color: #333; background-color: #f4f4f4; border: 1px solid #ccc; diff --git a/src/components/project.svelte b/src/components/project.svelte index 07f42ef..60d1899 100644 --- a/src/components/project.svelte +++ b/src/components/project.svelte @@ -1,20 +1,31 @@ + +

{title}

+ {#if screenWidth < 765} +
+ +
+ {/if}

-
- -
+ {#if screenWidth > 764} +
+ +
+ {/if}
@@ -42,4 +53,7 @@ flex-shrink: 1; flex-grow: 0; } + .preview.small { + height: 50%; + } \ No newline at end of file diff --git a/src/stores/darkmode.js b/src/stores/darkmode.js index 646e915..48c5858 100644 --- a/src/stores/darkmode.js +++ b/src/stores/darkmode.js @@ -1,5 +1,9 @@ import { writable } from "svelte/store"; -const darkmode = writable(localStorage.getItem("darkmode") || window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches); +const darkmode = writable(JSON.parse(localStorage.getItem("darkmode")) || window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches); + +darkmode.subscribe(v => { + localStorage.setItem("darkmode", JSON.stringify(v)); +}); export default darkmode; \ No newline at end of file