Init rebase to Svelte and TS
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<script lang="ts">
|
||||
import '../../app.css';
|
||||
import favicon from '$lib/assets/favicon.svg';
|
||||
import type { Snippet } from 'svelte';
|
||||
import { BookA, ChartLine, ChartNoAxesColumn, FolderArchive, Plus } from '@lucide/svelte';
|
||||
import SidebarButton from '../../modules/panel/SidebarButton.svelte';
|
||||
|
||||
let { children }: { children: Snippet } = $props();
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<link rel="icon" href={favicon} />
|
||||
</svelte:head>
|
||||
|
||||
<div class="flex h-dvh w-full flex-row text-text-dark light:text-text-light">
|
||||
<div class="flex h-full w-fit flex-col items-center bg-bg-dark light:bg-bg-light">
|
||||
<img class="m-3 mb-8" alt="Logo" src={favicon} height="32" width="32" />
|
||||
<form class="flex h-full w-fit flex-col items-center gap-3">
|
||||
<label
|
||||
class="m-0 mb-4 flex size-12 items-center justify-center rounded-xl bg-bg-lighter-dark shadow-subtle hover:text-primary-hover-dark has-checked:text-primary-dark has-checked:hover:text-primary-hover-dark light:bg-bg-light-light light:hover:text-primary-hover-light light:has-checked:text-primary-light light:has-checked:hover:text-primary-hover-light"
|
||||
>
|
||||
<input name="langs" type="radio" class="hidden" id="pl" autocomplete="off" />
|
||||
<Plus strokeWidth={1} />
|
||||
</label>
|
||||
<SidebarButton checked path="/panel/projects">
|
||||
<FolderArchive strokeWidth={1} />
|
||||
</SidebarButton>
|
||||
<SidebarButton path="/panel/langs">
|
||||
<BookA strokeWidth={1} />
|
||||
</SidebarButton>
|
||||
<SidebarButton path="/panel/metrics">
|
||||
<ChartLine strokeWidth={1} />
|
||||
</SidebarButton>
|
||||
<SidebarButton path="/panel/stats">
|
||||
<ChartNoAxesColumn strokeWidth={1} />
|
||||
</SidebarButton>
|
||||
</form>
|
||||
</div>
|
||||
<div class="flex w-full grow">
|
||||
{@render children()}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
main {
|
||||
transition:
|
||||
--dots-bg-2 0.2s ease-in,
|
||||
--dots-bg-1 0.2s ease-in;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import LangModule from '../../../modules/panel/LangModule.svelte';
|
||||
import plFlag from '$lib/assets/plFlag.svg';
|
||||
import enFlag from '$lib/assets/enFlag.svg';
|
||||
import deFlag from '$lib/assets/deFlag.svg';
|
||||
import frFlag from '$lib/assets/frFlag.svg';
|
||||
import jaFlag from '$lib/assets/jaFlag.svg';
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<form name="langs" class="m-10 flex flex-col gap-4">
|
||||
<LangModule checked langName="Polish" icon={plFlag} />
|
||||
<LangModule checked langName="English" icon={enFlag} />
|
||||
<LangModule checked langName="German" icon={deFlag} />
|
||||
<LangModule langName="Japanese" icon={jaFlag} />
|
||||
<LangModule langName="French" icon={frFlag} />
|
||||
</form>
|
||||
<div></div>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
METRICS
|
||||
@@ -0,0 +1,7 @@
|
||||
<script lang="ts">
|
||||
import ProjectModule from '../../../modules/panel/ProjectModule.svelte';
|
||||
</script>
|
||||
|
||||
<div class=" m-10">
|
||||
<ProjectModule projectName="ProjectName" />
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
STATS
|
||||
Reference in New Issue
Block a user