feat: proper light mode for hero section

This commit is contained in:
Maze Winther
2025-08-04 11:12:44 +02:00
parent b0cfedbc5a
commit efa5be2ab8
7 changed files with 9 additions and 9 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 KiB

+2 -2
View File
@@ -9,7 +9,7 @@ import Image from "next/image";
export function Header() { export function Header() {
const leftContent = ( const leftContent = (
<Link href="/" className="flex items-center gap-3"> <Link href="/" className="flex items-center gap-3">
<Image src="/logo.svg" alt="OpenCut Logo" width={32} height={32} /> <Image src="/logo.svg" alt="OpenCut Logo" className="invert dark:invert-0" width={32} height={32} />
<span className="text-xl font-medium hidden md:block">OpenCut</span> <span className="text-xl font-medium hidden md:block">OpenCut</span>
</Link> </Link>
); );
@@ -40,7 +40,7 @@ export function Header() {
return ( return (
<div className="mx-4 md:mx-0"> <div className="mx-4 md:mx-0">
<HeaderBase <HeaderBase
className="bg-accent border rounded-2xl max-w-3xl mx-auto mt-4 pl-4 pr-[14px]" className="bg-background border rounded-2xl max-w-3xl mx-auto mt-4 pl-4 pr-[14px]"
leftContent={leftContent} leftContent={leftContent}
rightContent={rightContent} rightContent={rightContent}
/> />
@@ -50,7 +50,7 @@ export function Handlebars({ children }: HandlebarsProps) {
<div ref={containerRef} className="relative -rotate-[2.76deg] mt-0.5"> <div ref={containerRef} className="relative -rotate-[2.76deg] mt-0.5">
<div className="absolute inset-0 w-full h-full rounded-2xl border border-yellow-500 flex justify-between z-1"> <div className="absolute inset-0 w-full h-full rounded-2xl border border-yellow-500 flex justify-between z-1">
<motion.div <motion.div
className="absolute z-10 left-0 h-full border border-yellow-500 w-7 rounded-full bg-accent flex items-center justify-center select-none" className="absolute z-10 left-0 h-full border border-yellow-500 w-7 rounded-full bg-background flex items-center justify-center select-none"
style={{ style={{
x: leftHandleX, x: leftHandleX,
}} }}
@@ -66,7 +66,7 @@ export function Handlebars({ children }: HandlebarsProps) {
</motion.div> </motion.div>
<motion.div <motion.div
className="absolute z-10 -left-[30px] h-full border border-yellow-500 w-7 rounded-full bg-accent flex items-center justify-center select-none" className="absolute z-10 -left-[30px] h-full border border-yellow-500 w-7 rounded-full bg-background flex items-center justify-center select-none"
style={{ style={{
x: rightHandleX, x: rightHandleX,
}} }}
+1 -1
View File
@@ -14,7 +14,7 @@ export function Hero() {
return ( return (
<div className="min-h-[calc(100vh-4.5rem)] supports-[height:100dvh]:min-h-[calc(100dvh-4.5rem)] flex flex-col justify-between items-center text-center px-4"> <div className="min-h-[calc(100vh-4.5rem)] supports-[height:100dvh]:min-h-[calc(100dvh-4.5rem)] flex flex-col justify-between items-center text-center px-4">
<Image <Image
className="absolute top-0 left-0 -z-50 size-full object-cover" className="absolute top-0 left-0 -z-50 size-full object-cover invert dark:invert-0 opacity-85"
src="/landing-page-bg.png" src="/landing-page-bg.png"
height={1903.5} height={1903.5}
width={1269} width={1269}
@@ -19,18 +19,18 @@ export function SponsorButton({
href={href} href={href}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className={`inline-flex items-center gap-2 px-3 py-2 rounded-full border border-white/10 bg-white/5 backdrop-blur-xs hover:bg-white/10 hover:border-white/20 transition-all duration-200 group shadow-lg ${className}`} className={`inline-flex items-center gap-2 px-3 py-2 rounded-md border border-border bg-background/5 backdrop-blur-xs hover:bg-background/10 transition-all duration-200 group shadow-lg ${className}`}
> >
<span className="text-xs font-medium text-zinc-400 group-hover:text-zinc-300 transition-colors"> <span className="text-xs font-medium text-muted-foreground group-hover:text-foreground transition-colors">
Sponsored by Sponsored by
</span> </span>
<div className="flex items-center gap-1.5"> <div className="flex items-center gap-1.5">
<div className="text-zinc-100 group-hover:text-white transition-colors"> <div className="text-foreground/90 group-hover:text-foreground transition-colors">
<Logo className="w-4 h-4" /> <Logo className="w-4 h-4" />
</div> </div>
<span className="text-xs font-medium text-zinc-100 group-hover:text-white transition-colors"> <span className="text-xs font-medium text-foreground/90 group-hover:text-foreground transition-colors">
{companyName} {companyName}
</span> </span>
</div> </div>