From e96577e60e71ec23ef5ae2543187e1cbc03e6eee Mon Sep 17 00:00:00 2001 From: aftabrehan Date: Fri, 2 Feb 2024 16:24:59 +0500 Subject: [PATCH] Adjust Dark Mode Styles for Home Page --- app/layout.tsx | 2 +- components/button.tsx | 7 ++++--- components/card.tsx | 6 +++--- components/carousel.tsx | 4 ++-- components/nav-dropdown.tsx | 4 ++-- components/section-wrapper.tsx | 10 +++++++--- public/angle-right.svg | 2 +- 7 files changed, 20 insertions(+), 15 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 68659ab..2006e58 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -28,7 +28,7 @@ export default function RootLayout({
-
+
{children}
diff --git a/components/button.tsx b/components/button.tsx index 0ed998e..a0985f8 100644 --- a/components/button.tsx +++ b/components/button.tsx @@ -26,11 +26,12 @@ export const Button = ({ }: buttonProps) => { const variantCls = { primary: 'text-white bg-primary xs:hover:opacity-75', - secondary: 'text-black bg-zinc-100 dark:bg-white/10 xs:hover:opacity-75', + secondary: + 'text-black dark:text-white bg-zinc-100 dark:bg-white/10 xs:hover:opacity-75', ghost: 'text-black dark:text-gray-200 hover:bg-zinc-100 dark:hover:bg-white/10 xs:hover:opacity-75', outline: - 'text-black bg-white border-2 border-zinc-400 disabled:hover:border-zinc-400 sm:hover:border-primary', + 'text-black dark:text-white bg-white dark:bg-neutral-800 border-2 border-zinc-400 disabled:hover:border-zinc-400 sm:hover:border-primary dark:sm:hover:border-white', }[variant] return ( @@ -39,7 +40,7 @@ export const Button = ({ onClick={onClick} disabled={disabled} className={clsx( - 'h-12 px-5 flex items-center justify-center gap-2 text-base font-medium text-nowrap rounded-full transition-all duration-200 disabled:opacity-50', + 'h-12 px-5 flex items-center justify-center gap-2 text-base font-medium text-nowrap outline-none rounded-full transition-all duration-200 disabled:opacity-50', !disabled && 'group', variantCls, className diff --git a/components/card.tsx b/components/card.tsx index 111fe08..efe54b6 100644 --- a/components/card.tsx +++ b/components/card.tsx @@ -11,7 +11,7 @@ interface cardProps { export const Card = ({ link, imageUrl, title, description }: cardProps) => ( {title} ( />
-

+

{title}

-

+

{description}

diff --git a/components/carousel.tsx b/components/carousel.tsx index 262d655..13d7dbd 100644 --- a/components/carousel.tsx +++ b/components/carousel.tsx @@ -205,7 +205,7 @@ const CarouselPrevious = React.forwardRef< className, variant = 'outline', icon = ( - + ), ...props }, @@ -243,7 +243,7 @@ const CarouselNext = React.forwardRef< className, variant = 'outline', icon = ( - + ), ...props }, diff --git a/components/nav-dropdown.tsx b/components/nav-dropdown.tsx index 2adc348..d8fde14 100644 --- a/components/nav-dropdown.tsx +++ b/components/nav-dropdown.tsx @@ -31,7 +31,7 @@ export const NavDropdown = ({
@@ -39,7 +39,7 @@ export const NavDropdown = ({ {label} diff --git a/components/section-wrapper.tsx b/components/section-wrapper.tsx index 57ddb91..89d6fa6 100644 --- a/components/section-wrapper.tsx +++ b/components/section-wrapper.tsx @@ -15,14 +15,18 @@ export const SectionWrapper = ({ children, childrenClass, }: sectionWraperProps) => ( -
+
-

{title}

+

+ {title} +

{showAllButton && (