From 71c0503e24c96d46cade0fd714784a409a8b9a55 Mon Sep 17 00:00:00 2001 From: Alfarish Fizikri Date: Thu, 24 Jul 2025 04:29:23 +0700 Subject: [PATCH] refactor(style): utilize tailwind instead of CSS --- src/content/Components/Counter/Counter.vue | 96 +++++----------------- 1 file changed, 19 insertions(+), 77 deletions(-) diff --git a/src/content/Components/Counter/Counter.vue b/src/content/Components/Counter/Counter.vue index 451e9cb..4ffca9e 100644 --- a/src/content/Components/Counter/Counter.vue +++ b/src/content/Components/Counter/Counter.vue @@ -1,29 +1,21 @@ @@ -90,15 +82,19 @@ const digitStyles = computed(() => ({ ...props.digitStyle })); -const topGradientStyles = computed((): CSSProperties => ({ - height: `${props.gradientHeight}px`, - background: `linear-gradient(to bottom, ${props.gradientFrom}, ${props.gradientTo})` -})); +const topGradientStyles = computed( + (): CSSProperties => ({ + height: `${props.gradientHeight}px`, + background: `linear-gradient(to bottom, ${props.gradientFrom}, ${props.gradientTo})` + }) +); -const bottomGradientStyles = computed((): CSSProperties => ({ - height: `${props.gradientHeight}px`, - background: `linear-gradient(to top, ${props.gradientFrom}, ${props.gradientTo})` -})); +const bottomGradientStyles = computed( + (): CSSProperties => ({ + height: `${props.gradientHeight}px`, + background: `linear-gradient(to top, ${props.gradientFrom}, ${props.gradientTo})` + }) +); const springValues = ref>({}); @@ -163,57 +159,3 @@ const getDigitPosition = (place: number, digit: number): number => { return position; }; - -