From ad8fa067f4707ec6b7669d78e9557ccfe1411cb9 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Thu, 6 Mar 2025 16:57:25 +0100 Subject: [PATCH] create a draft navigation --- Just/Just.csproj | 1 + Just/src/App.vue | 40 ++++++++- Just/src/components/index.ts | 7 ++ Just/src/components/navigation-item.vue | 106 ++++++++++++++++++++++++ Just/src/components/ui-icon.vue | 26 ++++++ Just/src/main.ts | 2 + Just/src/styles/main.scss | 2 +- Just/src/styles/theme.scss | 8 ++ Just/vite.config.ts | 4 +- 9 files changed, 191 insertions(+), 5 deletions(-) create mode 100644 Just/src/components/index.ts create mode 100644 Just/src/components/navigation-item.vue create mode 100644 Just/src/components/ui-icon.vue diff --git a/Just/Just.csproj b/Just/Just.csproj index db7e65b..62615a9 100644 --- a/Just/Just.csproj +++ b/Just/Just.csproj @@ -4,6 +4,7 @@ + \ No newline at end of file diff --git a/Just/src/App.vue b/Just/src/App.vue index 6e8d1a3..e522b9a 100644 --- a/Just/src/App.vue +++ b/Just/src/App.vue @@ -1,11 +1,47 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/Just/src/components/index.ts b/Just/src/components/index.ts new file mode 100644 index 0000000..b500a02 --- /dev/null +++ b/Just/src/components/index.ts @@ -0,0 +1,7 @@ +import { type App } from 'vue'; +import uiIcon from './ui-icon.vue'; + +export function createComponents (app: App) +{ + app.component('ui-icon', uiIcon); +} \ No newline at end of file diff --git a/Just/src/components/navigation-item.vue b/Just/src/components/navigation-item.vue new file mode 100644 index 0000000..dfea7a0 --- /dev/null +++ b/Just/src/components/navigation-item.vue @@ -0,0 +1,106 @@ + + + + + \ No newline at end of file diff --git a/Just/src/components/ui-icon.vue b/Just/src/components/ui-icon.vue new file mode 100644 index 0000000..244eabc --- /dev/null +++ b/Just/src/components/ui-icon.vue @@ -0,0 +1,26 @@ + + + \ No newline at end of file diff --git a/Just/src/main.ts b/Just/src/main.ts index 1fa956a..e8f18ee 100644 --- a/Just/src/main.ts +++ b/Just/src/main.ts @@ -1,6 +1,7 @@ import { createApp } from 'vue' import { createPinia } from 'pinia' import { createI18n } from 'vue-i18n' +import { createComponents } from '@/components' import './styles/styles.scss' import App from './App.vue' @@ -8,6 +9,7 @@ import App from './App.vue' import en_translations from './locales/en.json' const app = createApp(App) +createComponents(app) app.use(createPinia()) app.use(createI18n<[typeof en_translations], 'en'>({ locale: 'en', diff --git a/Just/src/styles/main.scss b/Just/src/styles/main.scss index 25a61e4..e72a303 100644 --- a/Just/src/styles/main.scss +++ b/Just/src/styles/main.scss @@ -11,7 +11,7 @@ body { color: var(--color-text); font-family: 'inter', sans-serif; - font-size: 16px; + font-size: 14px; line-height: 1.5; background: var(--color-layout-bg); } diff --git a/Just/src/styles/theme.scss b/Just/src/styles/theme.scss index 9e14c90..523e8a9 100644 --- a/Just/src/styles/theme.scss +++ b/Just/src/styles/theme.scss @@ -18,6 +18,14 @@ --color-layout-icons-fg: var(--color-fg-shade-3); --color-layout-icons-hover-fg: var(--color-fg-shade-2); + // menu shades + --color-menu-bg: var(--color-bg-shade-3); + --color-menu-item-hover-bg: var(--color-bg-shade-4); + --color-menu-item-count-bg: var(--color-bg-shade-4); + --color-menu-item-hover-count-bg: var(--color-bg-shade-5); + // general text shades --color-text: var(--color-fg-shade-1); + --color-text-dim: var(--color-fg-shade-2); + --color-text-dim-one: var(--color-fg-shade-3); } \ No newline at end of file diff --git a/Just/vite.config.ts b/Just/vite.config.ts index d67f3c6..6276d76 100644 --- a/Just/vite.config.ts +++ b/Just/vite.config.ts @@ -7,8 +7,8 @@ import vueDevTools from 'vite-plugin-vue-devtools' // https://vite.dev/config/ export default defineConfig({ plugins: [ - vue() - //vueDevTools(), + vue(), + //vueDevTools() ], resolve: { alias: {