diff --git a/src/App.css b/src/App.css index 9ae5a98..886c23a 100644 --- a/src/App.css +++ b/src/App.css @@ -14,20 +14,26 @@ font-style: normal; } -h1, h2, h3, h4 { +h1, +h2, +h3, +h4 { font-family: "Graphik"; } body { margin: 0; - --background:white; + --background: white; --color: black; --accent: #232323; - --light: #f0eeeb; - --logo: invert(9%) sepia(10%) saturate(418%) hue-rotate(22deg) brightness(98%) contrast(89%); + --light: #ffffff; + --logo: invert(9%) sepia(10%) saturate(418%) hue-rotate(22deg) brightness(98%) + contrast(89%); --dark: #232323; --dark-accent: rgb(76, 75, 72); --embed: #232323; + --code-accent: #f4ede5; + --tool-tip: #faf8f7; } .dark { @@ -40,38 +46,24 @@ body { --dark: #1b1b1a; --dark-accent: #3a3937; --embed: rgba(242, 244, 250, 0.2); + --code-accent: rgb(76, 75, 72); + --tool-tip: #4c4b48; } div, -a, -button { +a { font-family: "Lato"; font-size: 14px; color: var(--color, black); } -h1, h2, h3, h4, h5, h6 { - color: var(--color, black); -} - -button, .button { - text-decoration: none; +h1, +h2, +h3, +h4, +h5, +h6 { color: var(--color, black); - text-align: center; - padding: 10px 20px; - background-color: rgba(196, 196, 196, 0.2); - border: none; - transition: background-color 0.3s; - border-radius: 32px; - cursor: pointer; -} - -button:hover, .button:hover { - background-color: rgba(196, 196, 196, 0.4); -} - -button:active, .button:active { - background-color: rgba(196, 196, 196, 0.1); } @keyframes fadein { diff --git a/src/assets/ApiKey.png b/src/assets/ApiKey.png index d5977b3..77c7989 100644 Binary files a/src/assets/ApiKey.png and b/src/assets/ApiKey.png differ diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 90e0c77..396bb08 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -1,14 +1,48 @@ @@ -21,7 +55,7 @@ export default { }, }, methods: { - toggleDarkMode: function () { + toggleDarkMode() { this.$store.commit("toggleDarkMode"); }, }, @@ -36,23 +70,25 @@ export default { top: 0; height: 56px; width: 100%; - background: var(--light, #f0eeeb); - padding: 0 24px; + padding: 0 200px; + background: var(--light, #ffffff); display: flex; align-items: center; + justify-content: space-between; + + > img { + filter: var(--logo); + height: 20px; + } - > * { - font-weight: bold; + > div > .nav-link { + font-weight: 400; font-family: "Graphik"; text-decoration: none; margin-right: 24px; + border-spacing: 15px; - > img { - filter: var(--logo); - height: 20px; - } - - &:nth-child(5) { + &:nth-child(7) { margin-left: auto; } @@ -63,6 +99,26 @@ export default { &:hover { opacity: 0.7; } + + &.active { + text-decoration: underline; + } + } + + .switch-container { + display: flex; + align-items: center; + .toggle { + margin: 0 12px; + } + .dark-text { + opacity: 0.5; + } + .dark-mode { + .dark-text { + opacity: 1; + } + } } } diff --git a/src/views/ApiKeyPage.vue b/src/views/ApiKeyPage.vue index d5a59c1..f5dcf13 100644 --- a/src/views/ApiKeyPage.vue +++ b/src/views/ApiKeyPage.vue @@ -1,33 +1,45 @@ @@ -57,6 +69,9 @@ export default { this.$router.push("/"); } }, + focusInput() { + this.$refs.input.focus(); + }, }, }; @@ -64,52 +79,86 @@ export default {