refactor(web): use dark colours instead of slate

This commit is contained in:
Luke committed 2023-03-19 10:58:43 +01:00
1 parent 2a11ded518
commit 7b2b440825
6 files changed
+34 -8

No files matched your search

+2 -1
View File
@@ -4,10 +4,11 @@
import Root from './pages/root/Root.svelte'; import Root from './pages/root/Root.svelte';
router.mode.hash(); router.mode.hash();
router.goto('/');
</script> </script>
<main class="w-full h-full flex justify-center items-center font-main"> <main class="w-full h-full flex justify-center items-center font-main">
<div class="bg-slate-900 text-white w-[1000px] h-[600px] flex rounded-md"> <div class="bg-dark-800 text-white w-[1000px] h-[600px] flex rounded-md">
<!-- <Navbar /> --> <!-- <Navbar /> -->
<Route path="/"> <Route path="/">
<Root /> <Root />
+2 -2
View File
@@ -3,10 +3,10 @@
</script> </script>
<div <div
class="p-2 flex items-center outline-none focus-within:outline-1 focus-within:outline-cyan-600 rounded-md bg-slate-600" class="p-2 flex items-center outline-none focus-within:outline-1 focus-within:outline-cyan-600 rounded-md bg-dark-600"
> >
<div class="pr-2"> <div class="pr-2">
<svelte:component this={icon} /> <svelte:component this={icon} />
</div> </div>
<input type="text" class="bg-transparent outline-none w-full" /> <input type="text" class="bg-transparent outline-none w-full" placeholder="Search resources..." />
</div> </div>
+11
View File
@@ -1,8 +1,19 @@
import './index.css'; import './index.css';
import App from './App.svelte'; import App from './App.svelte';
import { isEnvBrowser } from './utils/misc';
const app = new App({ const app = new App({
target: document.getElementById('app'), target: document.getElementById('app'),
}); });
if (isEnvBrowser()) {
const root = document.getElementById('app');
// https://i.imgur.com/iPTAdYV.png - Night time img
root!.style.backgroundImage = 'url("https://i.imgur.com/3pzRj9n.png")';
root!.style.backgroundSize = 'cover';
root!.style.backgroundRepeat = 'no-repeat';
root!.style.backgroundPosition = 'center';
}
export default app; export default app;
-1
View File
@@ -1,5 +1,4 @@
<script lang="ts"> <script lang="ts">
import { onMount } from 'svelte';
import { meta } from 'tinro'; import { meta } from 'tinro';
const route = meta(); const route = meta();
+4 -4
View File
@@ -7,23 +7,23 @@
</script> </script>
<div class="p-4 w-full h-full flex justify-between gap-4"> <div class="p-4 w-full h-full flex justify-between gap-4">
<div class="bg-slate-800 p-4 flex flex-col w-2/3 rounded-md"> <div class="bg-dark-700 p-4 flex flex-col w-2/3 rounded-md">
<p class="text-2xl mb-4">Resources</p> <p class="text-2xl mb-4">Resources</p>
<Input icon={IconSearch} /> <Input icon={IconSearch} />
<div class="flex flex-col gap-3 mt-6"> <div class="flex flex-col gap-3 mt-6">
{#each resources as resource} {#each resources as resource}
<button <button
on:click={() => router.goto(`/${resource}`)} on:click={() => router.goto(`/${resource}`)}
class="bg-slate-700 p-3 text-left hover:bg-slate-600 rounded-md" class="bg-dark-600 p-3 text-left hover:bg-dark-400 rounded-md"
> >
{resource} {resource}
</button> </button>
{/each} {/each}
</div> </div>
</div> </div>
<div class="bg-slate-800 p-4 flex flex-col w-1/3 rounded-md"> <div class="bg-dark-700 p-4 flex flex-col w-1/3 rounded-md">
<p class="text-2xl mb-4">General data</p> <p class="text-2xl mb-4">General data</p>
<div class="flex flex-col"> <div class="flex flex-col text-dark-50">
<p>Queries: 360</p> <p>Queries: 360</p>
<p>Time querying: 332 ms</p> <p>Time querying: 332 ms</p>
<p>Slow queries: 6</p> <p>Slow queries: 6</p>
+15
View File
@@ -6,6 +6,21 @@ module.exports = {
fontFamily: { fontFamily: {
main: 'Roboto', main: 'Roboto',
}, },
colors: {
// Mantine dark colours
dark: {
50: '#C1C2C5',
100: '#A6A7AB',
200: '#909296',
300: '#5C5F66',
400: '#373A40',
500: '#2C2E33',
600: '#25262B',
700: '#1A1B1E',
800: '#141517',
900: '#101113',
},
},
}, },
}, },
plugins: [], plugins: [],