Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: landing page stylistic fixes

Dillion Verma657675b75d82
diff --git a/app/(marketing)/page.tsx b/app/(marketing)/page.tsx
index 4a46cba6..b5ebd945 100644
--- a/app/(marketing)/page.tsx
+++ b/app/(marketing)/page.tsx
@@ -1,5 +1,6 @@
import Hero from "@/components/landing/hero";
import Testimonials from "@/components/landing/testimonials";
+import Faq from "@/components/pricing/faq";
export default async function Home() {
return (
@@ -8,7 +9,7 @@ export default async function Home() {
<Testimonials />
{/* <FeatureGrid /> */}
{/* <FeatureSections /> */}
- {/* <Faq /> */}
+ <Faq />
</>
);
}
diff --git a/components/landing/hero.tsx b/components/landing/hero.tsx
index ddbd04b2..84c4498e 100644
--- a/components/landing/hero.tsx
+++ b/components/landing/hero.tsx
@@ -17,8 +17,8 @@ export default async function Hero() {
});
return (
- <section className="space-y-6 pb-8 pt-20 md:pb-12">
- <div className="container flex max-w-[64rem] flex-col items-center gap-4 text-center">
+ <section id="hero" className="container py-14">
+ <div className="container flex max-w-[64rem] flex-col items-center gap-6 pb-8 pt-20 text-center md:pb-12">
<FadeIn>
<Link
href="/components/retro-grid"
@@ -94,26 +94,30 @@ export default async function Hero() {
</Link>
</div>
</FadeIn>
- </div>
- <FadeIn delay={0.3}>
- <div className="container flex flex-col items-center justify-center sm:flex-row">
- <div className="flex flex-row">
- <StarFilledIcon className="h-4 w-4 text-yellow-300" />
- <StarFilledIcon className="h-4 w-4 text-yellow-300" />
- <StarFilledIcon className="h-4 w-4 text-yellow-300" />
- <StarFilledIcon className="h-4 w-4 text-yellow-300" />
- <StarFilledIcon className="h-4 w-4 text-yellow-300" />
- </div>
+ <FadeIn delay={0.3}>
+ <div className="container flex flex-col items-center justify-center sm:flex-row">
+ <div className="flex flex-row">
+ <StarFilledIcon className="h-4 w-4 text-yellow-300" />
+ <StarFilledIcon className="h-4 w-4 text-yellow-300" />
+ <StarFilledIcon className="h-4 w-4 text-yellow-300" />
+ <StarFilledIcon className="h-4 w-4 text-yellow-300" />
+ <StarFilledIcon className="h-4 w-4 text-yellow-300" />
+ </div>
- <span className="mx-1.5 hidden h-1 w-1 rounded-full bg-gray-500 dark:bg-gray-400 sm:block" />
+ <span className="mx-1.5 hidden h-1 w-1 rounded-full bg-gray-500 dark:bg-gray-400 sm:block" />
- <span className="inline-block text-center text-xs font-medium leading-snug tracking-tighter">
- Used by{" "}
- <NumberTicker value={payments} className="font-bold" delay={0.2} />{" "}
- developers to make beautiful landing pages
- </span>
- </div>
- </FadeIn>
+ <span className="inline-block text-center text-xs font-medium leading-snug tracking-tighter">
+ Trusted by{" "}
+ <NumberTicker
+ value={payments}
+ className="font-bold"
+ delay={0.2}
+ />{" "}
+ developers to make beautiful landing pages
+ </span>
+ </div>
+ </FadeIn>
+ </div>
</section>
);
}
diff --git a/components/landing/testimonials.tsx b/components/landing/testimonials.tsx
index 6d8ec69b..2bec1e96 100644
--- a/components/landing/testimonials.tsx
+++ b/components/landing/testimonials.tsx
@@ -32,26 +32,38 @@ export default async function Testimonials() {
const secondRow = tweets.slice(tweets.length / 2);
return (
- <section
- id="testimonials"
- className="relative flex flex-col gap-4 pb-8 pt-20"
- >
- <Marquee className="max-w-screen [--duration:120s]" pauseOnHover>
- {firstRow.map((id, idx) => (
- <FadeIn delay={0.06 + idx * 0.04} key={idx}>
- <TweetCard id={id} className="max-h-32 w-72 min-w-[18rem]" />
- </FadeIn>
- ))}
- </Marquee>
- <Marquee className="max-w-screen [--duration:120s]" reverse pauseOnHover>
- {secondRow.map((id, idx) => (
- <FadeIn delay={0.06 + 0.04 * (secondRow.length - idx)} key={idx}>
- <TweetCard id={id} className="max-h-32 w-72 min-w-[18rem]" />
- </FadeIn>
- ))}
- </Marquee>
- <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/3 bg-gradient-to-r from-white dark:from-background"></div>
- <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/3 bg-gradient-to-l from-white dark:from-background"></div>
+ <section id="testimonials" className="container py-14">
+ <FadeIn delay={0.3}>
+ <h2 className="mb-4 text-center text-5xl font-bold tracking-tight text-foreground">
+ What People Are Saying
+ </h2>
+ <h4 className="text-foreground/80text-lg mb-8 text-center font-medium tracking-tight">
+ Don't just take our word for it. Here's what{" "}
+ <strong>real people</strong> are saying about Magic UI on Twitter.
+ </h4>
+ </FadeIn>
+ <div className="relative flex flex-col gap-4">
+ <Marquee className="max-w-screen [--duration:120s]" pauseOnHover>
+ {firstRow.map((id, idx) => (
+ <FadeIn delay={0.06 + idx * 0.04} key={idx}>
+ <TweetCard id={id} className="max-h-32 w-72 min-w-[18rem]" />
+ </FadeIn>
+ ))}
+ </Marquee>
+ <Marquee
+ className="max-w-screen [--duration:120s]"
+ reverse
+ pauseOnHover
+ >
+ {secondRow.map((id, idx) => (
+ <FadeIn delay={0.06 + 0.04 * (secondRow.length - idx)} key={idx}>
+ <TweetCard id={id} className="max-h-32 w-72 min-w-[18rem]" />
+ </FadeIn>
+ ))}
+ </Marquee>
+ <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/3 bg-gradient-to-r from-white dark:from-background"></div>
+ <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/3 bg-gradient-to-l from-white dark:from-background"></div>
+ </div>
</section>
);
}
diff --git a/components/pricing/faq.tsx b/components/pricing/faq.tsx
index fdcaa0d1..8e991251 100644
--- a/components/pricing/faq.tsx
+++ b/components/pricing/faq.tsx
@@ -84,7 +84,7 @@ const faqs = [
const Faq = () => {
return (
- <section id="faq" className="py-14">
+ <section id="faqs" className="container py-14">
<h2 className="mb-4 text-center text-5xl font-bold tracking-tight text-foreground">
Frequently Asked Questions
</h2>
diff --git a/registry/components/magicui/fade-in.tsx b/registry/components/magicui/fade-in.tsx
index 71db8173..0bf16d8f 100644
--- a/registry/components/magicui/fade-in.tsx
+++ b/registry/components/magicui/fade-in.tsx
@@ -18,7 +18,7 @@ export default function FadeIn({
}) {
const ref = useRef(null);
const inView = useInView(ref, {
- once: true,
+ once: false,
margin: viewTriggerOffset ? "-128px" : "0px",
});