mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
refactor(web): use dark colours instead of slate
This commit is contained in:
1 parent
2a11ded518
commit
7b2b440825
6 files changed
+34
-8
No files matched your search
+2
-1
@@ -4,10 +4,11 @@
|
||||
import Root from './pages/root/Root.svelte';
|
||||
|
||||
router.mode.hash();
|
||||
router.goto('/');
|
||||
</script>
|
||||
|
||||
<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 /> -->
|
||||
<Route path="/">
|
||||
<Root />
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
</script>
|
||||
|
||||
<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">
|
||||
<svelte:component this={icon} />
|
||||
</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>
|
||||
@@ -1,8 +1,19 @@
|
||||
import './index.css';
|
||||
import App from './App.svelte';
|
||||
import { isEnvBrowser } from './utils/misc';
|
||||
|
||||
const app = new 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;
|
||||
@@ -1,5 +1,4 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { meta } from 'tinro';
|
||||
|
||||
const route = meta();
|
||||
|
||||
@@ -7,23 +7,23 @@
|
||||
</script>
|
||||
|
||||
<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>
|
||||
<Input icon={IconSearch} />
|
||||
<div class="flex flex-col gap-3 mt-6">
|
||||
{#each resources as resource}
|
||||
<button
|
||||
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}
|
||||
</button>
|
||||
{/each}
|
||||
</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>
|
||||
<div class="flex flex-col">
|
||||
<div class="flex flex-col text-dark-50">
|
||||
<p>Queries: 360</p>
|
||||
<p>Time querying: 332 ms</p>
|
||||
<p>Slow queries: 6</p>
|
||||
|
||||
@@ -6,6 +6,21 @@ module.exports = {
|
||||
fontFamily: {
|
||||
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: [],
|
||||
|
||||
Reference in new issue
Block a user