diff options
| author | Maze <167211895+mazeincoding@users.noreply.github.com> | 2025-06-26 01:27:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-26 01:27:47 +0200 |
| commit | 029152dd5bd99d9a15c26729aaadc5c9b2c1c495 (patch) | |
| tree | 531ad6e584dab09f785e5acd9ebe6b5067ea9b73 /apps/web/src | |
| parent | 75eede20af1d5de73501f42874dc74a1b0e9b7aa (diff) | |
| parent | d6a2de21d0e4fdbb0d4c47a08a3f013986ca74e0 (diff) | |
| download | opencut-029152dd5bd99d9a15c26729aaadc5c9b2c1c495.tar.gz | |
Merge pull request #115 from letyassine/fixed-landing-page
fix: responsiveness of landing page
Diffstat (limited to 'apps/web/src')
| -rw-r--r-- | apps/web/src/components/header.tsx | 18 | ||||
| -rw-r--r-- | apps/web/src/components/landing/hero.tsx | 19 |
2 files changed, 18 insertions, 19 deletions
diff --git a/apps/web/src/components/header.tsx b/apps/web/src/components/header.tsx index cf74bd10..ff15774e 100644 --- a/apps/web/src/components/header.tsx +++ b/apps/web/src/components/header.tsx @@ -1,14 +1,13 @@ "use client";
import Link from "next/link";
-import Image from "next/image";
import { Button } from "./ui/button";
import { ArrowRight } from "lucide-react";
import { HeaderBase } from "./header-base";
import { useSession } from "@opencut/auth/client";
import { getStars } from "@/lib/fetchGhStars";
-import { Star } from "lucide-react";
import { useEffect, useState } from "react";
+import Image from "next/image";
export function Header() {
const { data: session } = useSession();
@@ -29,7 +28,8 @@ export function Header() { const leftContent = (
<Link href="/" className="flex items-center gap-3">
- <Image src="/logo.svg" alt="OpenCut Logo" width={142} height={32} />
+ <Image src="/logo.svg" alt="OpenCut Logo" width={32} height={32} />
+ <span className="text-xl font-medium hidden md:block">OpenCut</span>
</Link>
);
@@ -59,10 +59,12 @@ export function Header() { );
return (
- <HeaderBase
- className="bg-[#1D1D1D] border border-white/10 rounded-2xl max-w-3xl mx-auto mt-4 pl-4 pr-[14px]"
- leftContent={leftContent}
- rightContent={rightContent}
- />
+ <div className="mx-4 md:mx-0">
+ <HeaderBase
+ className="bg-[#1D1D1D] border border-white/10 rounded-2xl max-w-3xl mx-auto mt-4 pl-4 pr-[14px]"
+ leftContent={leftContent}
+ rightContent={rightContent}
+ />
+ </div>
);
}
diff --git a/apps/web/src/components/landing/hero.tsx b/apps/web/src/components/landing/hero.tsx index af33a3dd..d5c5ed92 100644 --- a/apps/web/src/components/landing/hero.tsx +++ b/apps/web/src/components/landing/hero.tsx @@ -83,7 +83,7 @@ export function Hero({ signupCount }: HeroProps) { };
return (
- <div className="min-h-[calc(100vh-6rem)] flex flex-col justify-between items-center text-center px-4">
+ <div className="min-h-[calc(100vh-6rem)] supports-[height:100dvh]:min-h-[calc(100dvh-6rem)] flex flex-col justify-between items-center text-center px-4">
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
@@ -96,16 +96,10 @@ export function Hero({ signupCount }: HeroProps) { transition={{ delay: 0.2, duration: 0.8 }}
className="inline-block font-bold tracking-tighter text-4xl md:text-[4rem]"
>
- <h1>The open source</h1>
+ <h1>The Open Source</h1>
<div className="flex justify-center gap-4 leading-[4rem] mt-0 md:mt-2">
<div className="relative -rotate-[2.76deg] max-w-[250px] md:max-w-[454px] mt-2">
- <Image
- className="mt-2.5 md:mt-0"
- src="/frame.svg"
- height={79}
- width={459}
- alt="frame"
- />
+ <Image src="/frame.svg" height={79} width={459} alt="frame" />
<span className="absolute inset-0 flex items-center justify-center">
Video Editor
</span>
@@ -114,7 +108,7 @@ export function Hero({ signupCount }: HeroProps) { </motion.div>
<motion.p
- className="mt-10 text-lg sm:text-xl text-muted-foreground font-light tracking-wide max-w-xl mx-auto"
+ className="mt-10 text-base sm:text-xl text-muted-foreground font-light tracking-wide max-w-xl mx-auto"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ delay: 0.4, duration: 0.8 }}
@@ -129,7 +123,10 @@ export function Hero({ signupCount }: HeroProps) { animate={{ opacity: 1 }}
transition={{ delay: 0.6, duration: 0.8 }}
>
- <form onSubmit={handleSubmit} className="flex gap-3 w-full max-w-lg flex-col sm:flex-row">
+ <form
+ onSubmit={handleSubmit}
+ className="flex gap-3 w-full max-w-lg flex-col sm:flex-row"
+ >
<Input
type="email"
placeholder="Enter your email"
|
