Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Better SEO page styling + Mac page updates

Richie McIlroy39a069d730ce
diff --git a/apps/web/components/pages/seo/ScreenRecordMacPage.tsx b/apps/web/components/pages/seo/ScreenRecordMacPage.tsx
index d4caa6207..1f997e5cd 100644
--- a/apps/web/components/pages/seo/ScreenRecordMacPage.tsx
+++ b/apps/web/components/pages/seo/ScreenRecordMacPage.tsx
@@ -1,13 +1,14 @@
"use client";
import { SeoPageTemplate } from "../../seo/SeoPageTemplate";
+import Script from "next/script";
export const screenRecordMacContent = {
- title: "Screen Record on Mac: High-Quality, Easy-to-Use Recorder for macOS",
+ title: "Best Screen Recorder for Mac | High-Quality, Free & Easy (2025)",
description:
- "Cap is a powerful, user-friendly screen recorder for Mac, offering high-quality video capture with seamless functionality. Perfect for creating tutorials, presentations, and educational content on macOS.",
+ "Cap is the best free screen recorder for Mac, offering HD quality, unlimited recording, and easy export. Ideal for tutorials, presentations, and educational videos.",
- featuresTitle: "Why Choose Cap for Screen Recording on Mac?",
+ featuresTitle: "Why Cap is the Best Screen Recorder for Mac",
featuresDescription:
"Cap provides all the features Mac users need for stunning, high-quality screen recordings",
@@ -15,12 +16,12 @@ export const screenRecordMacContent = {
{
title: "Optimized for macOS",
description:
- "Cap is fully optimized for Mac, delivering smooth performance and seamless integration with macOS. Looking for a <a href='/free-screen-recorder'>free screen recorder</a>? Cap works great on Mac!",
+ "Cap is fully optimized for Mac, delivering smooth performance and seamless integration with macOS. Looking for a <a href='/free-screen-recorder'>free screen recorder for Mac</a>? Cap is your best choice!",
},
{
title: "High-Quality Video Capture",
description:
- "Record clear, high-definition video with synced audio, perfect for professional use.",
+ "Record clear, high-definition video with synced audio, perfect for professional use. Experience why users rate Cap as the best screen recorder for Mac.",
},
{
title: "User-Friendly Interface",
@@ -35,24 +36,24 @@ export const screenRecordMacContent = {
{
title: "Easy Export and Sharing",
description:
- "Save and share your recordings effortlessly with Cap’s built-in export options for Mac.",
+ "Save and share your recordings effortlessly with Cap's built-in export options for Mac.",
},
{
title: "Professional Tools",
description:
- "Access professional <a href='/screen-recording-software'>screen recording software</a> features optimized for Mac.",
+ "Access professional <a href='/screen-recording-software'>screen recording software</a> features optimized for Mac. A perfect <a href='/loom-alternative'>Loom alternative for Mac</a> users.",
},
],
- useCasesTitle: "Popular Uses for Cap’s Screen Recorder on Mac",
+ useCasesTitle: "Popular Uses for the Best Screen Recorder for Mac",
useCasesDescription:
- "Explore how Cap’s screen recorder enhances productivity on macOS",
+ "Explore how Cap's screen recorder enhances productivity on macOS",
useCases: [
{
title: "Creating Tutorials",
description:
- "Easily create detailed tutorials or training videos on your Mac using our professional <a href='/screen-recorder'>screen recording software</a>.",
+ "Easily create detailed tutorials or training videos on your Mac using our <a href='/screen-recorder'>professional Mac recording software</a>.",
},
{
title: "Professional Presentations",
@@ -112,6 +113,33 @@ export const screenRecordMacContent = {
},
};
+// Create FAQ structured data for SEO
+const createFaqStructuredData = () => {
+ const faqStructuredData = {
+ "@context": "https://schema.org",
+ "@type": "FAQPage",
+ mainEntity: screenRecordMacContent.faqs.map((faq) => ({
+ "@type": "Question",
+ name: faq.question,
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: faq.answer.replace(/<\/?[^>]+(>|$)/g, ""),
+ },
+ })),
+ };
+
+ return JSON.stringify(faqStructuredData);
+};
+
export const ScreenRecordMacPage = () => {
- return <SeoPageTemplate content={screenRecordMacContent} />;
+ return (
+ <>
+ <Script
+ id="faq-structured-data"
+ type="application/ld+json"
+ dangerouslySetInnerHTML={{ __html: createFaqStructuredData() }}
+ />
+ <SeoPageTemplate content={screenRecordMacContent} />
+ </>
+ );
};
diff --git a/apps/web/components/seo/SeoPageTemplate.tsx b/apps/web/components/seo/SeoPageTemplate.tsx
index cfe134ad9..8d60863b4 100644
--- a/apps/web/components/seo/SeoPageTemplate.tsx
+++ b/apps/web/components/seo/SeoPageTemplate.tsx
@@ -7,7 +7,7 @@ import { useEffect } from "react";
const renderHTML = (content: string) => {
const styledContent = content.replace(
/<a\s/g,
- '<a class="font-semibold text-gray-500" '
+ '<a class="font-semibold text-blue-500 hover:text-blue-600 transition-colors" '
);
return <span dangerouslySetInnerHTML={{ __html: styledContent }} />;
@@ -25,65 +25,132 @@ export const SeoPageTemplate = ({
const cloud1 = document.getElementById("cloud-1");
const cloud2 = document.getElementById("cloud-2");
const cloud3 = document.getElementById("cloud-3");
+ const cloud4 = document.getElementById("cloud-4");
+ const cloud5 = document.getElementById("cloud-5");
if (cloud1 && cloud2 && cloud3) {
cloud1.animate(
[
- { transform: "translateX(200px)" },
- { transform: "translateX(-50px)" },
- { transform: "translateX(0)" },
+ { transform: "translateX(0) translateY(0)" },
+ { transform: "translateX(-30px) translateY(10px)" },
+ { transform: "translateX(30px) translateY(-10px)" },
+ { transform: "translateX(0) translateY(0)" },
],
{
- duration: 100000,
+ duration: 20000,
iterations: Infinity,
+ easing: "ease-in-out",
}
);
cloud2.animate(
[
- { transform: "translateX(-200px)" },
- { transform: "translateX(50px)" },
- { transform: "translateX(0)" },
+ { transform: "translateX(0) translateY(0)" },
+ { transform: "translateX(20px) translateY(-15px)" },
+ { transform: "translateX(-20px) translateY(15px)" },
+ { transform: "translateX(0) translateY(0)" },
],
{
- duration: 120000,
+ duration: 25000,
iterations: Infinity,
+ easing: "ease-in-out",
}
);
cloud3.animate(
[
- { transform: "translateY(100px)" },
- { transform: "translateY(-30px)" },
- { transform: "translateY(0)" },
+ { transform: "translateX(0) translateY(0)" },
+ { transform: "translateX(15px) translateY(20px)" },
+ { transform: "translateX(-15px) translateY(-20px)" },
+ { transform: "translateX(0) translateY(0)" },
],
{
- duration: 150000,
+ duration: 30000,
iterations: Infinity,
+ easing: "ease-in-out",
+ }
+ );
+ }
+
+ if (cloud4 && cloud5) {
+ cloud4.animate(
+ [
+ { transform: "translateX(0) translateY(0)" },
+ { transform: "translateX(-10px) translateY(5px)" },
+ { transform: "translateX(10px) translateY(-5px)" },
+ { transform: "translateX(0) translateY(0)" },
+ ],
+ {
+ duration: 15000,
+ iterations: Infinity,
+ easing: "ease-in-out",
+ }
+ );
+
+ cloud5.animate(
+ [
+ { transform: "translateX(0) translateY(0)" },
+ { transform: "translateX(10px) translateY(-5px)" },
+ { transform: "translateX(-10px) translateY(5px)" },
+ { transform: "translateX(0) translateY(0)" },
+ ],
+ {
+ duration: 18000,
+ iterations: Infinity,
+ easing: "ease-in-out",
}
);
}
};
+ // Add scroll reveal animations
+ const observerOptions = {
+ root: null,
+ rootMargin: "0px",
+ threshold: 0.1,
+ };
+
+ const observer = new IntersectionObserver((entries) => {
+ entries.forEach((entry) => {
+ if (entry.isIntersecting) {
+ entry.target.classList.add("animate-fade-in");
+ observer.unobserve(entry.target);
+ }
+ });
+ }, observerOptions);
+
+ document.querySelectorAll(".reveal-on-scroll").forEach((el) => {
+ observer.observe(el);
+ });
+
animateClouds();
+
+ return () => {
+ observer.disconnect();
+ };
}, []);
return (
<>
{/* Hero Section with Clouds */}
- <div className="-mt-[80px] bg-blue-500/40 min-h-screen md:min-h-[calc(100vh+20px)] relative flex items-center overflow-hidden">
+ <div className="-mt-[80px] bg-gradient-to-b from-blue-400/30 via-blue-500/40 to-blue-600/30 min-h-screen md:min-h-[calc(100vh+20px)] relative flex items-center overflow-hidden">
<div className="w-full relative z-10 flex">
<div className="wrapper wrapper-sm mx-auto flex items-center">
<div className="mb-auto text-center">
- <h1 className="fade-in-down text-[2rem] leading-[2.5rem] md:text-[3rem] md:leading-[3.5rem] relative z-10 mb-4">
+ <h1 className="fade-in-down text-[2.25rem] leading-[2.75rem] md:text-[3.5rem] md:leading-[4rem] font-bold relative z-10 mb-6 text-gray-800 drop-shadow-sm">
{content.title}
</h1>
- <p className="fade-in-down animate-delay-1 text-black/60 sm:text-lg max-w-2xl mx-auto mb-8">
+ <p className="fade-in-down animate-delay-1 text-black/70 sm:text-xl max-w-2xl mx-auto mb-10 leading-relaxed">
{content.description}
</p>
<div className="fade-in-up animate-delay-2">
- <div className="flex flex-col sm:flex-row items-center justify-center space-y-2 sm:space-y-0 sm:space-x-2">
- <Button variant="primary" href="/download" size="lg">
+ <div className="flex flex-col sm:flex-row items-center justify-center space-y-2 sm:space-y-0 sm:space-x-4">
+ <Button
+ variant="primary"
+ href="/download"
+ size="lg"
+ className="shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300 px-8 py-3"
+ >
{content.cta.buttonText}
</Button>
</div>
@@ -95,7 +162,7 @@ export const SeoPageTemplate = ({
{/* Clouds */}
<div
id="cloud-1"
- className="absolute top-0 -right-20 opacity-70 md:opacity-70 opacity-90"
+ className="absolute top-0 -right-20 opacity-80 transition-transform duration-700 ease-in-out"
>
<img
className="max-w-[60vw] md:max-w-[40vw] h-auto"
@@ -105,7 +172,7 @@ export const SeoPageTemplate = ({
</div>
<div
id="cloud-2"
- className="absolute top-0 left-0 opacity-70 md:opacity-70 opacity-90"
+ className="absolute top-0 left-0 opacity-80 transition-transform duration-700 ease-in-out"
>
<img
className="max-w-[60vw] md:max-w-[40vw] h-auto"
@@ -115,7 +182,7 @@ export const SeoPageTemplate = ({
</div>
<div
id="cloud-3"
- className="absolute -bottom-20 left-0 transform opacity-70 md:opacity-70 opacity-90"
+ className="absolute -bottom-20 left-0 opacity-80 transition-transform duration-700 ease-in-out"
>
<img
className="max-w-[60vw] md:max-w-[100vw] h-auto"
@@ -126,24 +193,33 @@ export const SeoPageTemplate = ({
</div>
{/* Main Content */}
- <div className="wrapper py-20">
+ <div className="wrapper py-24 bg-gradient-to-b from-white to-gray-50">
{/* Features Section */}
- <div className="mb-20">
- <div className="text-center max-w-[800px] mx-auto mb-12">
- <h2 className="text-3xl font-medium text-gray-500 mb-4">
+ <div className="mb-28 reveal-on-scroll opacity-0">
+ <div className="text-center max-w-[800px] mx-auto mb-16">
+ <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">
{content.featuresTitle}
+ <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
</h2>
- <p className="text-lg text-gray-600">
+ <p className="text-xl text-gray-600 leading-relaxed">
{renderHTML(content.featuresDescription)}
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
{content.features.map((feature, index) => (
- <div key={index} className="p-6 bg-gray-100 rounded-xl">
- <h3 className="text-xl mb-3 text-gray-500 font-medium">
+ <div
+ key={index}
+ className="p-8 bg-white rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100 transform hover:-translate-y-1"
+ >
+ <div className="bg-blue-50 w-12 h-12 flex items-center justify-center rounded-full mb-4">
+ <span className="text-blue-500 text-xl font-bold">
+ {index + 1}
+ </span>
+ </div>
+ <h3 className="text-xl mb-4 text-gray-800 font-semibold">
{feature.title}
</h3>
- <p className="text-gray-600">
+ <p className="text-gray-600 leading-relaxed">
{renderHTML(feature.description)}
</p>
</div>
@@ -152,22 +228,31 @@ export const SeoPageTemplate = ({
</div>
{/* Use Cases Section */}
- <div className="mb-20">
- <div className="text-center max-w-[800px] mx-auto mb-12">
- <h2 className="text-3xl font-medium text-gray-500 mb-4">
+ <div className="mb-28 reveal-on-scroll opacity-0">
+ <div className="text-center max-w-[800px] mx-auto mb-16">
+ <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">
{content.useCasesTitle}
+ <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
</h2>
- <p className="text-lg text-gray-600">
+ <p className="text-xl text-gray-600 leading-relaxed">
{renderHTML(content.useCasesDescription)}
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
{content.useCases.map((useCase, index) => (
- <div key={index} className="p-6 bg-gray-100 rounded-xl">
- <h3 className="text-xl mb-3 text-gray-500 font-medium">
+ <div
+ key={index}
+ className="p-8 bg-white rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100 transform hover:-translate-y-1"
+ >
+ <div className="bg-blue-50 w-12 h-12 flex items-center justify-center rounded-full mb-4">
+ <span className="text-blue-500 text-xl font-bold">
+ {String.fromCharCode(65 + index)}
+ </span>
+ </div>
+ <h3 className="text-xl mb-4 text-gray-800 font-semibold">
{useCase.title}
</h3>
- <p className="text-gray-600">
+ <p className="text-gray-600 leading-relaxed">
{renderHTML(useCase.description)}
</p>
</div>
@@ -176,17 +261,25 @@ export const SeoPageTemplate = ({
</div>
{/* FAQ Section */}
- <div className="mb-20">
- <div className="text-center max-w-[800px] mx-auto mb-12">
- <h2 className="text-3xl font-medium text-gray-500 mb-4">
+ <div className="mb-28 reveal-on-scroll opacity-0">
+ <div className="text-center max-w-[800px] mx-auto mb-16">
+ <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">
{content.faqsTitle}
+ <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
</h2>
</div>
- <div className="mb-10">
+ <div className="mb-10 max-w-3xl mx-auto">
{content.faqs.map((faq, index) => (
- <div key={index} className="max-w-2xl mx-auto my-8">
- <h2 className="text-xl text-gray-500 mb-2">{faq.question}</h2>
- <p className="text-lg">{renderHTML(faq.answer)}</p>
+ <div
+ key={index}
+ className="my-6 p-6 bg-white rounded-xl shadow-sm hover:shadow-md transition-all duration-300 border border-gray-100"
+ >
+ <h2 className="text-xl text-gray-800 font-semibold mb-3">
+ {faq.question}
+ </h2>
+ <div className="text-gray-600 leading-relaxed">
+ {renderHTML(faq.answer)}
+ </div>
</div>
))}
</div>
@@ -194,12 +287,16 @@ export const SeoPageTemplate = ({
{/* Final CTA Section */}
<div
- className="wrapper custom-bg max-w-[1000px] mx-auto rounded-[20px] overflow-hidden relative flex flex-col justify-center p-8"
- style={{ minHeight: "264px" }}
+ className="wrapper max-w-[1000px] mx-auto rounded-3xl overflow-hidden relative flex flex-col justify-center p-12 reveal-on-scroll opacity-0"
+ style={{
+ minHeight: "300px",
+ background:
+ "linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #0ea5e9 100%)",
+ }}
>
<div
id="cloud-4"
- className="absolute top-0 -right-20 opacity-50 z-0 pointer-events-none"
+ className="absolute top-0 -right-20 opacity-30 z-0 pointer-events-none transition-transform duration-700 ease-in-out"
>
<img
className="max-w-[40vw] h-auto"
@@ -209,7 +306,7 @@ export const SeoPageTemplate = ({
</div>
<div
id="cloud-5"
- className="absolute bottom-0 left-0 opacity-50 z-0 pointer-events-none"
+ className="absolute bottom-0 left-0 opacity-30 z-0 pointer-events-none transition-transform duration-700 ease-in-out"
>
<img
className="max-w-[40vw] h-auto"
@@ -218,15 +315,20 @@ export const SeoPageTemplate = ({
/>
</div>
<div className="wrapper mx-auto h-full flex flex-col justify-center items-center relative z-10">
- <div className="text-center max-w-[800px] mx-auto mb-5">
- <h2 className="text-white mb-3">{content.cta.title}</h2>
+ <div className="text-center max-w-[800px] mx-auto mb-8">
+ <h2 className="text-3xl md:text-4xl font-bold text-white mb-4 drop-shadow-md">
+ {content.cta.title}
+ </h2>
+ <p className="text-xl text-white/90 mb-6">
+ Ready to get started? Download now and see the difference.
+ </p>
</div>
- <div className="flex flex-col sm:flex-row items-center justify-center space-y-2 sm:space-y-0 sm:space-x-2">
+ <div className="flex flex-col sm:flex-row items-center justify-center space-y-3 sm:space-y-0 sm:space-x-4">
<Button
variant="white"
href="/pricing"
size="lg"
- className="w-full sm:w-auto"
+ className="w-full sm:w-auto shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300 font-medium px-8 py-3"
>
{content.cta.buttonText}
</Button>
@@ -234,6 +336,22 @@ export const SeoPageTemplate = ({
</div>
</div>
</div>
+
+ <style jsx global>{`
+ @keyframes fade-in {
+ 0% {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ 100% {
+ opacity: 1;
+ transform: translateY(0);
+ }
+ }
+ .animate-fade-in {
+ animation: fade-in 0.8s ease-out forwards;
+ }
+ `}</style>
</>
);
};