From a238583563bdcc32d45c73f17a9c7d0e90a59ce7 Mon Sep 17 00:00:00 2001 From: Sigve Hansen Date: Sat, 25 Mar 2023 21:16:58 +0100 Subject: [PATCH 1/9] chore: remove custom css & define font in tailwind config --- src/App.vue | 49 ++++++++++++------------ src/style.css | 93 --------------------------------------------- tailwind.config.cjs | 3 ++ 3 files changed, 28 insertions(+), 117 deletions(-) diff --git a/src/App.vue b/src/App.vue index 291ff04b..4a09b759 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ - - diff --git a/src/style.css b/src/style.css index ed0766f5..76fcadcc 100644 --- a/src/style.css +++ b/src/style.css @@ -1,96 +1,3 @@ @import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; - -:root { - font-family: Inter, Avenir, Helvetica, Arial, sans-serif; - font-size: 16px; - line-height: 24px; - font-weight: 400; - - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; - - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-text-size-adjust: 100%; -} - -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - -body, -html { - margin: 0; - height: 100%; -} - -h1 { - font-size: 3.2em; - line-height: 1.1; -} -h2 { - padding-left: 20px; -} - -button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - font-weight: 500; - font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; -} -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; -} - -.card { - padding: 2em; -} - -#app { - width: 100%; - height: 100%; - margin: 0; - display: flex; - flex-direction: row; - flex-wrap: nowrap; -} -nav { - flex-basis: 200px; - flex-shrink: 0; - background: #f5f6f7; - border-right: 1px solid rgba(129, 136, 143, 0.1); - padding: 12px; - padding-top: 30px; -} - -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -} diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 6c232c99..f072a865 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -2,6 +2,9 @@ module.exports = { content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"], theme: { + fontFamily: { + sans: ['Inter', 'Avenir', 'Helvetica', 'Arial', 'sans-serif'] + }, extend: {}, }, plugins: [], From 9e8da2ba31e03fa3e8def05171d236ef7fb78290 Mon Sep 17 00:00:00 2001 From: Sigve Hansen Date: Sat, 25 Mar 2023 21:17:10 +0100 Subject: [PATCH 2/9] feat: create toolbar component --- src/components/AppToolbar.vue | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/components/AppToolbar.vue diff --git a/src/components/AppToolbar.vue b/src/components/AppToolbar.vue new file mode 100644 index 00000000..38cc3bd5 --- /dev/null +++ b/src/components/AppToolbar.vue @@ -0,0 +1,29 @@ + + + From 17e83f723bc34566a81e17c95f6da06a61e56de3 Mon Sep 17 00:00:00 2001 From: Sigve Hansen Date: Sat, 25 Mar 2023 21:58:03 +0100 Subject: [PATCH 3/9] fix(toolbar): add toolbarTitle meta field --- src/App.vue | 2 +- src/components/AppToolbar.vue | 4 ++-- src/router.ts | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4a09b759..fdfd5465 100644 --- a/src/App.vue +++ b/src/App.vue @@ -34,7 +34,7 @@ const navLinks = [ {{ link.name }} -
+
diff --git a/src/components/AppToolbar.vue b/src/components/AppToolbar.vue index 38cc3bd5..8b0e0aaa 100644 --- a/src/components/AppToolbar.vue +++ b/src/components/AppToolbar.vue @@ -13,9 +13,9 @@ function toggleMenu() {