From aa716b210c08db0151b7e7c39f00dae39f891bf8 Mon Sep 17 00:00:00 2001 From: wanfahdiva Date: Mon, 9 Sep 2024 13:49:31 +0700 Subject: [PATCH] refactor(splash screen): menyamakan warna logo dengan penghitung --- package.json | 2 +- src/components/providers/animate-provider.tsx | 14 ++++---------- src/shared/styles/app.css | 2 +- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index ac42e2b..0da94d6 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "version": "0.0.1", "scripts": { - "dev": "next dev -p 3008", + "dev": "next dev --turbo -p 3008", "build": "next build", "start": "next start", "lint": "next lint", diff --git a/src/components/providers/animate-provider.tsx b/src/components/providers/animate-provider.tsx index 7613980..6cd0e44 100644 --- a/src/components/providers/animate-provider.tsx +++ b/src/components/providers/animate-provider.tsx @@ -12,14 +12,8 @@ import { cn } from '@/lib/utils' const DOMS = ['.primary-cursor', '.secondary-cursor', '.navbar', '.footer'] const IS_DEVELOPMENT = process.env.NODE_ENV === 'development' -const Logo: React.FC<{ fill: boolean }> = ({ fill }) => ( - +const Logo: React.FC = () => ( + = ({ fill }) => ( }} strokeWidth={1.5} strokeDasharray="0 1" - fill={fill ? '#A1A1AA' : 'none'} + fill="none" fillRule="evenodd" clipRule="evenodd" d="M78.9922 22.2825C70.8177 24.266 59.2887 29.5095 52.3922 34.3779L48.5469 37.0935V79.3091V121.523L59.7333 110.391L70.9198 99.2585L82.1063 110.391L93.2927 121.523V112.744C93.2927 112.744 91.8413 110.28 82.1133 100.6L70.9352 89.4756L63.2361 97.0861L55.5384 104.697V72.9191V66.8287V41.1416L60.8744 37.6072C85.7419 21.1333 121.086 25.2948 143.052 47.2824C181.673 85.9454 160.403 151.012 106.097 160.335C85.8412 163.812 64.5477 156.771 49.4012 141.589C28.3637 120.503 25.3038 87.2947 36.6892 64.2322C39.3656 58.8109 39.5 58 41.5 54C41.5 54 41.5 48.5 41.5 42C41.5 42 22 61 22 93.7533C21.8951 129.957 49.7592 162.357 85.4231 167.5C125.443 173.273 163.488 144.797 169.25 104.76C176.586 53.7885 128.863 10.1801 78.9922 22.2825ZM86.3473 67.2439C86.3473 67.2439 86.3068 69.7318 86.3473 81.4479C86.3865 92.6012 86.3473 95.7439 86.3473 95.7439L93.2927 101.642C93.2927 101.642 93.2927 94.9935 93.2927 87.2947V73.2971L106.227 73.3279C121.625 73.3643 129.454 76.2128 133.81 83.3642C137.518 89.4546 137.518 99.1326 133.81 105.223C130.619 110.461 121.532 115.213 114.617 115.259L110.072 115.29V98.4929V81.6957H106.539H103.004L103.393 101.642L103.78 121.589L113.63 121.414C124.651 121.22 133.003 117.881 137.827 111.742C148.119 98.644 143.833 77.8043 129.298 70.2736C124.36 67.7162 120.641 67.1339 107.276 66.8287C98.4315 66.6258 86.3473 67.2439 86.3473 67.2439Z" @@ -119,7 +113,7 @@ export const AnimateProvider = ({ content }: AnimateProviderProps) => { {/* Animated Logo */}
- +
diff --git a/src/shared/styles/app.css b/src/shared/styles/app.css index 9a84b93..8bbe639 100644 --- a/src/shared/styles/app.css +++ b/src/shared/styles/app.css @@ -122,7 +122,7 @@ margin: 0 auto; height: min-content; padding: 4%; - @apply stroke-cement; + @apply stroke-white; } /* end svg logo animated */ }