From 636822252d052ce80e736801df512e270e776509 Mon Sep 17 00:00:00 2001 From: David Haz Date: Wed, 9 Jul 2025 00:07:04 +0300 Subject: [PATCH] small cleanup --- src/components/code/CliInstallation.vue | 60 ++++++++++---- src/components/code/CodeExample.vue | 95 +++++++++++++++++++++-- src/components/common/BackToTopButton.vue | 66 ++++++++++++++++ src/components/layouts/CategoryLayout.vue | 6 +- src/css/landing.css | 24 ------ src/pages/CategoryPage.vue | 85 ++++++++++---------- 6 files changed, 243 insertions(+), 93 deletions(-) create mode 100644 src/components/common/BackToTopButton.vue diff --git a/src/components/code/CliInstallation.vue b/src/components/code/CliInstallation.vue index d578d98..ea36768 100644 --- a/src/components/code/CliInstallation.vue +++ b/src/components/code/CliInstallation.vue @@ -17,7 +17,8 @@ Setup Steps - +

1. Initialize a config file for your project

@@ -78,15 +79,32 @@ const { command } = defineProps<{ } .code-block { - border-radius: 8px; + border-radius: 15px; overflow: hidden; border: 1px solid #142216; } +:deep(.p-accordionpanel) { + border: none; +} + :deep(.p-accordion-header) { - background: #0b0b0b; - border: 1px solid #142216; - border-radius: 20px; + background: #0b0b0b !important; + border: 1px solid #142216 !important; + border-radius: 20px !important; +} + +:deep(.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader) { + background: #0b0b0b !important; + border: 1px solid #142216 !important; + border-radius: 15px 15px 0 0; + border-bottom: none !important; +} + +:deep(.p-accordionpanel:not(.p-disabled) > .p-accordionheader) { + border: 1px solid #142216 !important; + border-radius: 15px; + background: #0b0b0b !important; } :deep(.p-accordionpanel) { @@ -109,27 +127,26 @@ const { command } = defineProps<{ } :deep(.p-accordion-content) { - background: #0b0b0b; - border: 1px solid #142216; + background: #0b0b0b !important; + border: 1px solid #142216 !important; border-top: none; - border-radius: 0 0 20px 20px; + border-radius: 0 0 15px 15px; } +:deep(.p-accordioncontent-content) { + background: #0b0b0b !important; + border: 1px solid #142216 !important; + border-radius: 0 0 15px 15px; + border-top: none !important; +} + +/* Code Block Styles */ :deep(.v-code-block) { background: #0b0b0b; font-weight: 400; font-size: 14px; } -:deep(.v-code-block--tab-highlightjs-github-dark-icon) { - color: #999 !important; - fill: #999 !important; -} - -:deep(.v-code-block--me-1) { - margin-right: 0 !important; -} - :deep(.v-code-block pre) { background: #0b0b0b; margin: 0; @@ -141,4 +158,13 @@ const { command } = defineProps<{ color: #fff; font-size: 14px; } + +:deep(.v-code-block--tab-highlightjs-github-dark-icon) { + color: #999 !important; + fill: #999 !important; +} + +:deep(.v-code-block--me-1) { + margin-right: 0 !important; +} \ No newline at end of file diff --git a/src/components/code/CodeExample.vue b/src/components/code/CodeExample.vue index ad6c040..5bdcc98 100644 --- a/src/components/code/CodeExample.vue +++ b/src/components/code/CodeExample.vue @@ -1,10 +1,21 @@ \ No newline at end of file diff --git a/src/components/layouts/CategoryLayout.vue b/src/components/layouts/CategoryLayout.vue index a1d0138..546d4d3 100644 --- a/src/components/layouts/CategoryLayout.vue +++ b/src/components/layouts/CategoryLayout.vue @@ -8,11 +8,13 @@
-import { ref, computed, watch, onMounted, nextTick, defineAsyncComponent } from 'vue' -import { useRoute } from 'vue-router' -import { componentMap } from '../constants/Components' -import { decodeLabel } from '../utils/utils' -import '../css/category.css' + + onMounted(() => { + // Initial scroll to top + if (scrollRef.value) { + scrollRef.value.scrollTo(0, 0) + } + }) + \ No newline at end of file