Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore: padding adjustments (#760)

Ameer Al Ashhab5f4f136b50dd
diff --git a/apps/web/app/(site)/blog/[slug]/page.tsx b/apps/web/app/(site)/blog/[slug]/page.tsx
index 2500d896d..e6ce2ae53 100644
--- a/apps/web/app/(site)/blog/[slug]/page.tsx
+++ b/apps/web/app/(site)/blog/[slug]/page.tsx
@@ -71,7 +71,7 @@ export default async function PostPage({ params }: PostProps) {
return (
<>
- <article className="px-5 py-20 mx-auto sm:py-32 prose">
+ <article className="px-5 py-32 mx-auto md:py-40 prose">
{post.metadata.image && (
<div className="relative mb-12 h-[345px] w-full">
<Image
@@ -93,7 +93,7 @@ export default async function PostPage({ params }: PostProps) {
{format(
parseISO(
(post.metadata as any).publishedAt ||
- new Date().toISOString()
+ new Date().toISOString()
),
"MMMM dd, yyyy"
)}
diff --git a/apps/web/app/(site)/docs/[...slug]/page.tsx b/apps/web/app/(site)/docs/[...slug]/page.tsx
index b4ed5a5e3..34ff5f04b 100644
--- a/apps/web/app/(site)/docs/[...slug]/page.tsx
+++ b/apps/web/app/(site)/docs/[...slug]/page.tsx
@@ -116,7 +116,7 @@ export default async function DocPage(props: DocProps) {
const rootDoc = categoryDocs.find((doc) => doc.slug === category);
return (
- <div className="px-5 py-32 mx-auto sm:py-32 prose">
+ <div className="px-5 py-32 mx-auto md:py-40 prose">
<h1>{displayCategory} Documentation</h1>
{/* Show root category content if it exists */}
{rootDoc && (
@@ -175,7 +175,7 @@ export default async function DocPage(props: DocProps) {
}
return (
- <article className="px-5 py-20 mx-auto sm:py-32 prose">
+ <article className="py-32 mx-auto md:py-40 sm:py-32 prose">
{doc.metadata.image && (
<div className="relative mb-12 h-[345px] w-full">
<Image
diff --git a/apps/web/app/(site)/docs/[slug]/page.tsx b/apps/web/app/(site)/docs/[slug]/page.tsx
index eb29c1cad..b18aea83d 100644
--- a/apps/web/app/(site)/docs/[slug]/page.tsx
+++ b/apps/web/app/(site)/docs/[slug]/page.tsx
@@ -55,7 +55,7 @@ export default async function DocPage({ params }: DocProps) {
}
return (
- <article className="py-32 mx-auto prose">
+ <article className="py-32 mx-auto md:py-40 prose">
{doc.metadata.image && (
<div className="relative mb-12 h-[345px] w-full">
<Image
diff --git a/apps/web/app/(site)/docs/_components/DocPage.tsx b/apps/web/app/(site)/docs/_components/DocPage.tsx
index cf91856b9..da8216ab3 100644
--- a/apps/web/app/(site)/docs/_components/DocPage.tsx
+++ b/apps/web/app/(site)/docs/_components/DocPage.tsx
@@ -12,7 +12,7 @@ export const DocPage = ({ docSlug }: { docSlug: string }) => {
}
return (
- <article className="py-32 mx-auto prose">
+ <article className="py-32 mx-auto md:py-40 prose">
{doc.metadata.image && (
<div className="relative mb-12 h-[345px] w-full">
<Image
diff --git a/apps/web/app/(site)/features/FeaturesPage.tsx b/apps/web/app/(site)/features/FeaturesPage.tsx
index e3eeb04e1..380fd6c78 100644
--- a/apps/web/app/(site)/features/FeaturesPage.tsx
+++ b/apps/web/app/(site)/features/FeaturesPage.tsx
@@ -17,9 +17,7 @@ import {
faWandMagicSparkles,
faCamera,
faKeyboard,
- faChartLine,
- faEye,
- faVolumeUp,
+ faChartLine, faVolumeUp,
faEdit,
faDownload,
faExpand,
@@ -32,7 +30,7 @@ import {
faInfinity,
faCheckCircle,
faBolt,
- faDesktop,
+ faDesktop
} from "@fortawesome/free-solid-svg-icons";
interface Feature {
@@ -381,7 +379,7 @@ export const FeaturesPage = () => {
</div>
</div>
- <div className="wrapper pb-32">
+ <div className="pb-32 wrapper">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 auto-rows-[minmax(200px,_auto)] grid-flow-dense">
{features.map((feature, index) => {
const sizeClasses = {
@@ -411,32 +409,31 @@ export const FeaturesPage = () => {
<FontAwesomeIcon icon={feature.icon} className="w-6 h-6" />
</div>
- <h3 className="text-lg font-semibold mb-2 text-gray-12">
+ <h3 className="mb-2 text-lg font-semibold text-gray-12">
{feature.title}
{feature.isPro && (
<Link
href="/pricing"
- className="ml-2 inline-flex items-center text-xs font-medium px-2 py-1 rounded-full bg-gradient-to-br from-blue-400 to-blue-600 text-white hover:from-blue-500 hover:to-blue-700 transition-all duration-200"
+ className="inline-flex items-center px-2 py-1 ml-2 text-xs font-medium text-white bg-gradient-to-br from-blue-400 to-blue-600 rounded-full transition-all duration-200 hover:from-blue-500 hover:to-blue-700"
>
Cap Pro
</Link>
)}
{feature.isComingSoon && (
- <span className="ml-2 text-xs font-medium px-2 py-1 rounded-full bg-gray-3 text-gray-10">
+ <span className="px-2 py-1 ml-2 text-xs font-medium rounded-full bg-gray-3 text-gray-10">
SOON
</span>
)}
</h3>
- <p className="text-sm text-gray-11 leading-relaxed">
+ <p className="text-sm leading-relaxed text-gray-11">
{feature.description}
</p>
- <div className="absolute top-3 right-3 opacity-0 group-hover:opacity-100 transition-opacity">
+ <div className="absolute top-3 right-3 opacity-0 transition-opacity group-hover:opacity-100">
<FontAwesomeIcon
icon={categoryIcons[feature.category].icon}
- className={`w-4 h-4 ${
- categoryIcons[feature.category].color
- } opacity-50`}
+ className={`w-4 h-4 ${categoryIcons[feature.category].color
+ } opacity-50`}
/>
</div>
</div>
@@ -445,14 +442,14 @@ export const FeaturesPage = () => {
</div>
</div>
- <div className="bg-gray-2 py-20">
- <div className="wrapper text-center">
- <h2 className="text-3xl font-medium mb-4">Ready to get started?</h2>
- <p className="text-lg text-gray-10 mb-8 max-w-2xl mx-auto">
+ <div className="py-32 bg-gray-2 md:py-40">
+ <div className="text-center wrapper">
+ <h2 className="mb-4 text-3xl font-medium">Ready to get started?</h2>
+ <p className="mx-auto mb-8 max-w-2xl text-lg text-gray-10">
Join thousands of users who are already creating better recordings
with Cap.
</p>
- <div className="flex flex-col sm:flex-row gap-4 justify-center">
+ <div className="flex flex-col gap-4 justify-center sm:flex-row">
<Button
href="/download"
variant="primary"
diff --git a/apps/web/app/(site)/privacy/page.tsx b/apps/web/app/(site)/privacy/page.tsx
index 5dc423edc..fa7626101 100644
--- a/apps/web/app/(site)/privacy/page.tsx
+++ b/apps/web/app/(site)/privacy/page.tsx
@@ -6,17 +6,17 @@ export const metadata: Metadata = {
export default function App() {
return (
- <div className="wrapper wrapper-sm py-20">
- <div className="text-center space-y-6">
- <h1 className=" text-3xl md:text-4xl fade-in-down animate-delay-1">
+ <div className="py-32 wrapper wrapper-sm md:py-40">
+ <div className="space-y-6 text-center">
+ <h1 className="text-3xl md:text-4xl fade-in-down animate-delay-1">
Privacy Policy
</h1>
- <p className="text-lg text-gray-8 max-w-lg mx-auto fade-in-down animate-delay-2">
+ <p className="pb-10 mx-auto max-w-lg text-lg text-gray-10 fade-in-down animate-delay-2">
We've tried to make this privacy policy as simple and digestible as
possible. If you have any questions, please don't hesitate to reach
out to us.
</p>
- <div className="legal-body text-left fade-in-up animate-delay-2">
+ <div className="text-left legal-body fade-in-up animate-delay-2">
<>
<p>
At Cap Software, Inc. ("Cap," "we," "us," or "our"), we are
diff --git a/apps/web/app/(site)/tools/convert/page.tsx b/apps/web/app/(site)/tools/convert/page.tsx
index b273a6266..b07f24135 100644
--- a/apps/web/app/(site)/tools/convert/page.tsx
+++ b/apps/web/app/(site)/tools/convert/page.tsx
@@ -62,7 +62,7 @@ const conversionTools: ConversionTool[] = [
export default function ConvertToolsPage() {
return (
- <div className="py-20 md:py-28">
+ <div className="py-32 md:py-40">
<div className="wrapper">
<div className="mb-8">
<Link
@@ -70,7 +70,7 @@ export default function ConvertToolsPage() {
className="inline-flex items-center text-sm text-blue-600 hover:text-blue-800"
>
<svg
- className="w-5 h-5 mr-1"
+ className="mr-1 w-5 h-5"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
@@ -87,7 +87,7 @@ export default function ConvertToolsPage() {
</Link>
</div>
- <h1 className="text-3xl font-medium tracking-tight text-gray-900 mb-8">
+ <h1 className="mb-8 text-3xl font-medium tracking-tight text-gray-900">
File Conversion Tools
</h1>
<p className="mb-12 text-lg text-gray-600">
@@ -102,7 +102,7 @@ export default function ConvertToolsPage() {
<Link
key={tool.href}
href={tool.href}
- className="group block p-6 border border-gray-200 rounded-lg hover:border-blue-500 transition-colors"
+ className="block p-6 rounded-lg border border-gray-200 transition-colors group hover:border-blue-500"
>
<div className="flex items-center mb-4">
<div className="flex-shrink-0 p-2 bg-blue-100 rounded-lg">
@@ -120,7 +120,7 @@ export default function ConvertToolsPage() {
/>
</svg>
</div>
- <h2 className="ml-3 text-xl font-semibold text-gray-900 group-hover:text-blue-600 transition-colors">
+ <h2 className="ml-3 text-xl font-semibold text-gray-900 transition-colors group-hover:text-blue-600">
{tool.title}
</h2>
</div>
diff --git a/apps/web/components/blog/BlogTemplate.tsx b/apps/web/components/blog/BlogTemplate.tsx
index fc425d738..83ef064a0 100644
--- a/apps/web/components/blog/BlogTemplate.tsx
+++ b/apps/web/components/blog/BlogTemplate.tsx
@@ -72,7 +72,7 @@ interface BlogPost {
const renderHTML = (content: string) => {
const styledContent = content.replace(
/<a\s/g,
- '<a class="font-semibold text-blue-500 hover:text-blue-600 transition-colors" '
+ '<a class="font-semibold text-blue-500 transition-colors hover:text-blue-600" '
);
return <div dangerouslySetInnerHTML={{ __html: styledContent }} />;
@@ -119,19 +119,19 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
}, []);
return (
- <article className="px-3 max-w-3xl mx-auto py-24 relative z-10">
+ <article className="relative z-10 px-3 py-32 mx-auto max-w-3xl md:py-40">
{/* Header */}
<header className="mb-16 text-center">
<div className="mb-4 text-sm font-medium text-blue-600 fade-in-down">
{content.category}
</div>
- <h1 className="text-4xl md:text-5xl font-medium text-gray-900 mb-6 fade-in-down">
+ <h1 className="mb-6 text-4xl font-medium text-gray-900 md:text-5xl fade-in-down">
{content.title}
</h1>
- <p className="text-xl md:text-2xl mb-8 max-w-3xl mx-auto text-gray-700 fade-in-down animate-delay-1">
+ <p className="mx-auto mb-8 max-w-3xl text-xl text-gray-700 md:text-2xl fade-in-down animate-delay-1">
{content.description}
</p>
- <div className="flex items-center justify-center space-x-2 text-sm text-gray-1 fade-in-down animate-delay-2">
+ <div className="flex justify-center items-center space-x-2 text-sm text-gray-1 fade-in-down animate-delay-2">
<time dateTime={content.publishedAt}>
{formatDate(content.publishedAt)}
</time>
@@ -142,28 +142,28 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{/* Featured Image */}
{content.image && (
- <div className="mb-12 rounded-xl overflow-hidden shadow-xl transform hover:-translate-y-1 transition-all duration-300">
+ <div className="overflow-hidden mb-12 rounded-xl shadow-xl transition-all duration-300 transform hover:-translate-y-1">
<img
src={content.image}
alt={content.title}
- className="w-full h-auto object-cover"
+ className="object-cover w-full h-auto"
/>
</div>
)}
{/* Hero TL;DR */}
- <div className="mb-12 bg-blue-50 p-8 rounded-xl border border-blue-100 shadow-md hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1">
- <h2 className="text-2xl font-medium text-gray-900 mb-4 relative inline-block">
+ <div className="p-8 mb-12 bg-blue-50 rounded-xl border border-blue-100 shadow-md transition-all duration-300 transform hover:shadow-xl hover:-translate-y-1">
+ <h2 className="inline-block relative mb-4 text-2xl font-medium text-gray-900">
TL;DR
- <span className="absolute -bottom-1 left-0 w-16 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute left-0 -bottom-1 w-16 h-1 bg-blue-500 rounded-full"></span>
</h2>
- <p className="text-xl text-gray-700 mt-6">{content.heroTLDR}</p>
- <div className="mt-6 inline-flex">
+ <p className="mt-6 text-xl text-gray-700">{content.heroTLDR}</p>
+ <div className="inline-flex mt-6">
<Button
href={content.cta.buttonLink}
size="lg"
variant="blue"
- className="px-6 py-3 shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300"
+ className="px-6 py-3 shadow-lg transition-all duration-300 transform hover:shadow-xl hover:-translate-y-1"
>
{content.cta.buttonText}
</Button>
@@ -173,19 +173,19 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{/* Comparison Table */}
{content.comparisonTable && (
<section className="mb-16">
- <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">
+ <h2 className="inline-block relative mb-8 text-3xl font-medium text-gray-900">
{content.comparisonTable.title}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
<div className="overflow-x-auto">
- <table className="w-full border-collapse rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-all duration-300">
+ <table className="overflow-hidden w-full rounded-lg shadow-md border-collapse transition-all duration-300 hover:shadow-lg">
<thead className="bg-blue-50">
<tr>
{content.comparisonTable.headers.map((header, index) => (
<th
key={index}
- className="py-4 px-6 text-left text-gray-700 font-semibold border-b border-gray-200"
+ className="px-6 py-4 font-semibold text-left text-gray-700 border-b border-gray-200"
>
{header}
</th>
@@ -201,7 +201,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{row.map((cell, cellIndex) => (
<td
key={cellIndex}
- className="py-4 px-6 border-b border-gray-200"
+ className="px-6 py-4 border-b border-gray-200"
dangerouslySetInnerHTML={{ __html: cell }}
/>
))}
@@ -217,23 +217,23 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{content.methods &&
content.methods.map((method, index) => (
<section key={index} className="mb-16">
- <h2 className="text-3xl font-medium text-gray-900 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-3xl font-medium text-gray-900">
{method.title}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
<p className="mb-8 text-xl text-gray-700">{method.description}</p>
{method.steps.map((step, stepIndex) => (
<div
key={stepIndex}
- className="mb-8 p-6 bg-gray-1 rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100 transform hover:-translate-y-1"
+ className="p-6 mb-8 rounded-xl border border-gray-100 shadow-md transition-all duration-300 transform bg-gray-1 hover:shadow-xl hover:border-blue-100 hover:-translate-y-1"
>
{step.title && (
- <h3 className="text-2xl font-semibold text-gray-800 mb-4">
+ <h3 className="mb-4 text-2xl font-semibold text-gray-800">
{step.title}
</h3>
)}
- <div className="prose prose-lg max-w-none">
+ <div className="max-w-none prose prose-lg">
{renderHTML(step.content)}
</div>
</div>
@@ -244,16 +244,16 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{/* Troubleshooting */}
{content.troubleshooting && (
<section className="mb-16">
- <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">
+ <h2 className="inline-block relative mb-8 text-3xl font-medium text-gray-900">
{content.troubleshooting.title}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
<div className="space-y-4">
{content.troubleshooting.items.map((item, index) => (
<details
key={index}
- className="bg-gray-1 p-6 rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100"
+ className="p-6 rounded-xl border border-gray-100 shadow-md transition-all duration-300 bg-gray-1 hover:shadow-xl hover:border-blue-100"
>
<summary className="text-xl font-semibold text-gray-800 cursor-pointer">
{item.question}
@@ -268,18 +268,18 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{/* Pro Tips */}
{content.proTips && (
<section className="mb-16">
- <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">
+ <h2 className="inline-block relative mb-8 text-3xl font-medium text-gray-900">
{content.proTips.title}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
- <div className="grid grid-cols-1 md:grid-cols-3 gap-6">
+ <div className="grid grid-cols-1 gap-6 md:grid-cols-3">
{content.proTips.tips.map((tip, index) => (
<div
key={index}
- className="bg-blue-50 p-6 rounded-xl border border-blue-100 shadow-md hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1"
+ className="p-6 bg-blue-50 rounded-xl border border-blue-100 shadow-md transition-all duration-300 transform hover:shadow-xl hover:-translate-y-1"
>
- <h3 className="text-xl font-semibold text-blue-800 mb-3">
+ <h3 className="mb-3 text-xl font-semibold text-blue-800">
🔹 {tip.title}
</h3>
<p className="text-gray-700">{tip.description}</p>
@@ -292,12 +292,12 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{/* Video Demo */}
{content.videoDemo && (
<section className="mb-16">
- <h2 className="text-3xl font-medium text-gray-900 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-3xl font-medium text-gray-900">
{content.videoDemo.title}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
- <figure className="rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1">
+ <figure className="overflow-hidden rounded-xl shadow-lg transition-all duration-300 transform hover:shadow-xl hover:-translate-y-1">
<MuxPlayer
playbackId="A6oZoUWVZjOIVZB6XnBMLagYnXE6xhDhp8Hcyky018hk"
metadataVideoTitle="Cap Demo"
@@ -311,16 +311,16 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{/* FAQs */}
{content.faqs && (
<section className="mb-16">
- <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">
+ <h2 className="inline-block relative mb-8 text-3xl font-medium text-gray-900">
Frequently Asked Questions
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
<div className="space-y-4">
{content.faqs.map((faq, index) => (
<details
key={index}
- className="bg-gray-1 p-6 rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100"
+ className="p-6 rounded-xl border border-gray-100 shadow-md transition-all duration-300 bg-gray-1 hover:shadow-xl hover:border-blue-100"
>
<summary className="text-xl font-semibold text-gray-800 cursor-pointer">
{faq.question}
@@ -335,22 +335,22 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{/* Testimonial */}
{content.testimonial && (
<section className="mb-16">
- <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">
+ <h2 className="inline-block relative mb-8 text-3xl font-medium text-gray-900">
What Users Are Saying
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
- <blockquote className="bg-gray-1 p-8 rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border-l-4 border-blue-500 transform hover:-translate-y-1">
- <p className="text-xl italic text-gray-700 mb-6">
+ <blockquote className="p-8 rounded-xl border-l-4 border-blue-500 shadow-md transition-all duration-300 transform bg-gray-1 hover:shadow-xl hover:-translate-y-1">
+ <p className="mb-6 text-xl italic text-gray-700">
"{content.testimonial.quote}"
</p>
<footer className="flex items-center">
<img
src={content.testimonial.avatar}
alt={content.testimonial.author}
- className="w-12 h-12 rounded-full mr-4"
+ className="mr-4 w-12 h-12 rounded-full"
/>
- <cite className="text-gray-900 font-medium not-italic">
+ <cite className="not-italic font-medium text-gray-900">
{content.testimonial.author}
</cite>
</footer>
@@ -361,7 +361,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{/* CTA Section */}
<section className="mb-16">
<div
- className="relative overflow-hidden p-10 rounded-2xl shadow-lg"
+ className="overflow-hidden relative p-10 rounded-2xl shadow-lg"
style={{
background:
"linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #0ea5e9 100%)",
@@ -369,7 +369,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
>
<div
id="blog-cloud-1"
- className="absolute top-0 -right-20 opacity-30 z-0 pointer-events-none transition-transform duration-700 ease-in-out"
+ className="absolute top-0 -right-20 z-0 opacity-30 transition-transform duration-700 ease-in-out pointer-events-none"
>
<img
className="max-w-[40vw] h-auto"
@@ -379,7 +379,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
</div>
<div
id="blog-cloud-2"
- className="absolute bottom-0 left-0 opacity-30 z-0 pointer-events-none transition-transform duration-700 ease-in-out"
+ className="absolute bottom-0 left-0 z-0 opacity-30 transition-transform duration-700 ease-in-out pointer-events-none"
>
<img
className="max-w-[40vw] h-auto"
@@ -388,10 +388,10 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
/>
</div>
<div className="relative z-10">
- <h2 className="text-3xl font-medium mb-4 text-white">
+ <h2 className="mb-4 text-3xl font-medium text-white">
{content.cta.title}
</h2>
- <p className="text-xl mb-8 text-white/90">
+ <p className="mb-8 text-xl text-white/90">
{content.cta.description}
</p>
<div className="inline-flex">
@@ -399,7 +399,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
href={content.cta.buttonLink}
variant="white"
size="lg"
- className="px-8 py-3 text-blue-600 shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300"
+ className="px-8 py-3 text-blue-600 shadow-lg transition-all duration-300 transform hover:shadow-xl hover:-translate-y-1"
>
{content.cta.buttonText}
</Button>
@@ -410,7 +410,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
{/* Related Links */}
{content.relatedLinks && content.relatedLinks.length > 0 && (
- <div className="text-center text-gray-600 italic">
+ <div className="italic text-center text-gray-600">
Check out{" "}
{(() => {
const links = content.relatedLinks;
@@ -418,7 +418,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {
<span key={index}>
<Link
href={link.url}
- className="text-blue-600 hover:underline transition-colors"
+ className="text-blue-600 transition-colors hover:underline"
>
{link.text}
</Link>
diff --git a/apps/web/components/pages/DocsPage.tsx b/apps/web/components/pages/DocsPage.tsx
index b6546e6b5..848821db3 100644
--- a/apps/web/components/pages/DocsPage.tsx
+++ b/apps/web/components/pages/DocsPage.tsx
@@ -6,7 +6,7 @@ export const DocsPage = () => {
const allDocs = getDocs();
return (
- <div className="px-5 py-32 sm:py-32 w-full max-w-[1200px] mx-auto">
+ <div className="px-5 py-32 md:py-40 w-full max-w-[1200px] mx-auto">
<div className="mb-14 text-center page-intro">
<h1>Documentation</h1>
</div>
@@ -14,7 +14,7 @@ export const DocsPage = () => {
{allDocs.map((doc) => (
<article
key={doc.slug}
- className="overflow-hidden w-full rounded-xl border transition-shadow cursor-pointer hover:shadow-md"
+ className="overflow-hidden w-full bg-white rounded-xl border transition-shadow cursor-pointer hover:shadow-md"
>
<Link href={"/docs/" + doc.slug}>
{doc.metadata.image && (
diff --git a/apps/web/components/pages/DownloadPage.tsx b/apps/web/components/pages/DownloadPage.tsx
index dccbf0c1f..6cec98526 100644
--- a/apps/web/components/pages/DownloadPage.tsx
+++ b/apps/web/components/pages/DownloadPage.tsx
@@ -17,12 +17,12 @@ export const DownloadPage = () => {
const loading = platform === null;
return (
- <div className="pt-32 pb-16 wrapper wrapper-sm md:py-32">
+ <div className="py-32 md:py-40 wrapper wrapper-sm">
<div className="space-y-4 text-center">
{/* Debug toggle button in top-right corner */}
<button
onClick={() => setShowDebug(!showDebug)}
- className="absolute top-4 right-4 px-2 py-1 text-xs text-gray-8 bg-gray-800 rounded hover:text-gray-300"
+ className="absolute top-4 right-4 px-2 py-1 text-xs bg-gray-800 rounded text-gray-8 hover:text-gray-300"
>
{showDebug ? "Hide Debug" : "Debug"}
</button>
@@ -34,24 +34,24 @@ export const DownloadPage = () => {
<div className="space-y-2">
<button
className={`text-xs px-2 py-1 rounded w-full text-left ${platform === "windows"
- ? "bg-blue-600"
- : "bg-gray-700 hover:bg-gray-600"
+ ? "bg-blue-600"
+ : "bg-gray-700 hover:bg-gray-600"
}`}
>
Windows (Beta)
</button>
<button
className={`text-xs px-2 py-1 rounded w-full text-left ${platform === "macos" && isIntel
- ? "bg-blue-600"
- : "bg-gray-700 hover:bg-gray-600"
+ ? "bg-blue-600"
+ : "bg-gray-700 hover:bg-gray-600"
}`}
>
macOS (Intel)
</button>
<button
className={`text-xs px-2 py-1 rounded w-full text-left ${platform === "macos" && !isIntel
- ? "bg-blue-600"
- : "bg-gray-700 hover:bg-gray-600"
+ ? "bg-blue-600"
+ : "bg-gray-700 hover:bg-gray-600"
}`}
>
macOS (Apple Silicon)
@@ -84,7 +84,7 @@ export const DownloadPage = () => {
{getDownloadButtonText(platform, loading, isIntel)}
</Button>
- <div className="text-sm text-gray-8">
+ <div className="text-sm text-gray-10">
{getVersionText(platform)}
</div>
@@ -115,14 +115,14 @@ export const DownloadPage = () => {
</div>
<div className="pb-4 mt-6 fade-in-up animate-delay-2">
- <h3 className="mb-2 text-sm font-medium text-gray-8">
+ <h3 className="mb-2 text-base font-medium text-gray-10">
Other download options:
</h3>
<div className="flex flex-col gap-3 justify-center items-center md:flex-row">
{platform !== "windows" && (
<a
href="/download/windows"
- className="text-sm text-gray-8 transition-all hover:underline"
+ className="text-sm transition-all text-gray-10 hover:underline"
>
Windows (Beta)
</a>
@@ -130,7 +130,7 @@ export const DownloadPage = () => {
{platform === "macos" && isIntel && (
<a
href="/download/apple-silicon"
- className="text-sm text-gray-8 transition-all hover:underline"
+ className="text-sm transition-all text-gray-10 hover:underline"
>
Apple Silicon
</a>
@@ -138,7 +138,7 @@ export const DownloadPage = () => {
{platform === "macos" && !isIntel && (
<a
href="/download/apple-intel"
- className="text-sm text-gray-8 transition-all hover:underline"
+ className="text-sm transition-all text-gray-10 hover:underline"
>
Apple Intel
</a>
@@ -147,13 +147,13 @@ export const DownloadPage = () => {
<>
<a
href="/download/apple-silicon"
- className="text-sm text-gray-8 transition-all hover:underline"
+ className="text-sm transition-all text-gray-8 hover:underline"
>
Apple Silicon
</a>
<a
href="/download/apple-intel"
- className="text-sm text-gray-8 transition-all hover:underline"
+ className="text-sm transition-all text-gray-8 hover:underline"
>
Apple Intel
</a>
@@ -163,7 +163,7 @@ export const DownloadPage = () => {
</div>
{/* Discreet SEO Links */}
- <div className="pt-8 mt-32 text-xs text-gray-1 border-t border-gray-200 opacity-70">
+ <div className="pt-8 mt-32 text-xs border-t border-gray-200 opacity-70 text-gray-1">
<div className="flex flex-wrap gap-y-2 gap-x-4 justify-center mx-auto max-w-lg">
<a
href="/screen-recorder"
diff --git a/apps/web/components/pages/FaqPage.tsx b/apps/web/components/pages/FaqPage.tsx
index 319f539c1..8da9bf797 100644
--- a/apps/web/components/pages/FaqPage.tsx
+++ b/apps/web/components/pages/FaqPage.tsx
@@ -40,7 +40,7 @@ const faqContent = [
export const FaqPage = () => {
return (
- <div className="py-32 wrapper wrapper-sm">
+ <div className="py-32 md:py-40 wrapper wrapper-sm">
<div className="mb-14 text-center page-intro">
<h1>FAQ</h1>
</div>
diff --git a/apps/web/components/pages/HomePage/Header.tsx b/apps/web/components/pages/HomePage/Header.tsx
index af81f2652..a22ebd47d 100644
--- a/apps/web/components/pages/HomePage/Header.tsx
+++ b/apps/web/components/pages/HomePage/Header.tsx
@@ -67,7 +67,7 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {
const headerContent = getHeaderContent();
return (
- <div className="mt-[100px] mb-10 sm:mb-[150px] min-h-screen w-full max-w-[1920px] overflow-x-hidden md:overflow-visible mx-auto md:mt-[16vh]">
+ <div className="mt-[100px] mb-10 sm:mb-[150px] min-h-screen w-full max-w-[1920px] overflow-x-hidden md:overflow-visible mx-auto md:mt-[20vh]">
<div className="flex flex-col justify-center lg:justify-start xl:flex-row relative z-10 px-5 w-full mb-[200px]">
<div className="w-full max-w-[500px] 2xl:mt-12 mx-auto xl:ml-[100px] 2xl:ml-[150px]">
<motion.div
diff --git a/apps/web/components/pages/PricingPage.tsx b/apps/web/components/pages/PricingPage.tsx
index b29eda476..b43fd6e31 100644
--- a/apps/web/components/pages/PricingPage.tsx
+++ b/apps/web/components/pages/PricingPage.tsx
@@ -61,7 +61,7 @@ export const PricingPage = () => {
return (
<motion.div initial="hidden" animate="visible" variants={staggerContainer}>
- <div className="py-12 mt-16 space-y-24 wrapper">
+ <div className="py-32 space-y-24 md:py-40 wrapper">
<div>
<motion.div className="mb-8 text-center" variants={fadeIn} custom={0}>
<motion.h1
diff --git a/apps/web/components/pages/TermsPage.tsx b/apps/web/components/pages/TermsPage.tsx
index 230f13958..23f0c165b 100644
--- a/apps/web/components/pages/TermsPage.tsx
+++ b/apps/web/components/pages/TermsPage.tsx
@@ -2,17 +2,17 @@
export const TermsPage = () => {
return (
- <div className="wrapper wrapper-sm py-20">
- <div className="text-center space-y-6">
- <h1 className=" text-3xl md:text-4xl fade-in-down animate-delay-1">
+ <div className="py-32 md:py-40 wrapper wrapper-sm">
+ <div className="space-y-6 text-center">
+ <h1 className="text-3xl md:text-4xl fade-in-down animate-delay-1">
Terms of Service
</h1>
- <p className="text-lg text-gray-8 max-w-lg mx-auto fade-in-down animate-delay-2">
+ <p className="pb-10 mx-auto max-w-lg text-lg text-gray-10 fade-in-down animate-delay-2">
We've tried to make this terms of service policy as simple and
digestible as possible. If you have any questions, please don't
hesitate to reach out to us.
</p>
- <div className="legal-body text-left fade-in-up animate-delay-2">
+ <div className="text-left legal-body fade-in-up animate-delay-2">
<>
<ol>
<li>
diff --git a/apps/web/components/pages/TestimonialsPage.tsx b/apps/web/components/pages/TestimonialsPage.tsx
index aa27983d0..aa159c979 100644
--- a/apps/web/components/pages/TestimonialsPage.tsx
+++ b/apps/web/components/pages/TestimonialsPage.tsx
@@ -10,14 +10,14 @@ interface TestimonialsPageProps {
export const TestimonialsPage = ({ amount }: TestimonialsPageProps) => {
return (
<>
- <div className="py-28 wrapper">
+ <div className="py-32 md:py-40 wrapper">
<Testimonials
amount={amount}
title="What our users say about Cap after hitting record"
subtitle="Don't just take our word for it. Here's what our users are saying about their experience with Cap."
/>
</div>
- <div className="wrapper pb-28">
+ <div className="pb-28 wrapper">
<ReadyToGetStarted />
</div>
</>
diff --git a/apps/web/components/pages/UpdatesPage.tsx b/apps/web/components/pages/UpdatesPage.tsx
index 938a6aa2e..c29e25b71 100644
--- a/apps/web/components/pages/UpdatesPage.tsx
+++ b/apps/web/components/pages/UpdatesPage.tsx
@@ -35,7 +35,7 @@ export const UpdatesPage = () => {
});
return (
- <div className="py-24 wrapper wrapper-sm">
+ <div className="py-32 md:py-40 wrapper wrapper-sm">
{featuredPosts.length > 0 && (
<div className="mb-6">
diff --git a/apps/web/components/seo/SeoPageTemplate.tsx b/apps/web/components/seo/SeoPageTemplate.tsx
index 3e38b1d7e..e130d95df 100644
--- a/apps/web/components/seo/SeoPageTemplate.tsx
+++ b/apps/web/components/seo/SeoPageTemplate.tsx
@@ -8,13 +8,12 @@ import MuxPlayer from "@mux/mux-player-react";
const renderHTML = (content: string) => {
const styledContent = content.replace(
/<a\s/g,
- '<a class="font-semibold text-blue-500 hover:text-blue-600 transition-colors" '
+ '<a class="font-semibold text-blue-500 transition-colors hover:text-blue-600" '
);
return <span dangerouslySetInnerHTML={{ __html: styledContent }} />;
};
-
export const SeoPageTemplate = ({
content,
showVideo = true,
@@ -30,7 +29,7 @@ export const SeoPageTemplate = ({
className="relative overflow-hidden mt-[60px]"
style={{ height: "calc(100vh - 60px)" }}
>
- <div className="relative z-10 px-5 w-full h-full flex flex-col justify-center">
+ <div className="flex relative z-10 flex-col justify-center px-5 w-full h-full">
<div className="mx-auto text-center wrapper wrapper-sm">
<h1 className="fade-in-down text-[2.25rem] leading-[2.75rem] md:text-[3.5rem] md:leading-[4rem] relative z-10 text-black mb-6">
{content.title}
@@ -53,33 +52,33 @@ export const SeoPageTemplate = ({
</div>
{/* Main Content */}
- <div className="wrapper py-24 relative z-10">
+ <div className="relative z-10 py-24 wrapper">
{/* Features Section */}
<div className="mb-28">
<div className="text-center max-w-[800px] mx-auto mb-16">
- <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-4xl font-medium text-gray-800">
{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>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
- <p className="text-xl text-gray-600 leading-relaxed">
+ <p className="text-xl leading-relaxed text-gray-600">
{renderHTML(content.featuresDescription)}
</p>
</div>
- <div className="grid grid-cols-1 md:grid-cols-3 gap-8 px-4">
+ <div className="grid grid-cols-1 gap-8 px-4 md:grid-cols-3">
{content.features.map((feature, index) => (
<div
key={index}
- className="p-8 bg-gray-1 rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100 transform hover:-translate-y-1"
+ className="p-8 rounded-2xl border border-gray-100 shadow-md transition-all duration-300 transform bg-gray-1 hover:shadow-xl hover:border-blue-100 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-medium">
+ <div className="flex justify-center items-center mb-4 w-12 h-12 bg-blue-50 rounded-full">
+ <span className="text-xl font-medium text-blue-500">
{index + 1}
</span>
</div>
- <h3 className="text-xl mb-4 text-gray-800 font-semibold">
+ <h3 className="mb-4 text-xl font-semibold text-gray-800">
{feature.title}
</h3>
- <p className="text-gray-600 leading-relaxed">
+ <p className="leading-relaxed text-gray-600">
{renderHTML(feature.description)}
</p>
</div>
@@ -91,17 +90,17 @@ export const SeoPageTemplate = ({
{showVideo && (
<div className="mb-28">
<div className="text-center max-w-[800px] mx-auto mb-10">
- <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-4xl font-medium text-gray-800">
See Cap In Action
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
- <p className="text-xl text-gray-600 leading-relaxed">
+ <p className="text-xl leading-relaxed text-gray-600">
Watch how Cap makes screen recording simple, powerful, and
accessible.
</p>
</div>
- <div className="max-w-2xl mx-auto">
- <div className="rounded-xl overflow-hidden shadow-lg">
+ <div className="mx-auto max-w-2xl">
+ <div className="overflow-hidden rounded-xl shadow-lg">
<MuxPlayer
playbackId="A6oZoUWVZjOIVZB6XnBMLagYnXE6xhDhp8Hcyky018hk"
metadataVideoTitle="Cap Demo"
@@ -117,31 +116,31 @@ export const SeoPageTemplate = ({
{content.comparison && content.comparisonTitle && (
<div className="mb-28">
<div className="text-center max-w-[800px] mx-auto mb-16">
- <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-4xl font-medium text-gray-800">
{content.comparisonTitle}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
{content.comparisonDescription && (
- <p className="text-xl text-gray-600 leading-relaxed">
+ <p className="text-xl leading-relaxed text-gray-600">
{renderHTML(content.comparisonDescription)}
</p>
)}
</div>
- <div className="grid grid-cols-1 md:grid-cols-2 gap-8">
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
{content.comparison.map((item, index) => (
<div
key={index}
- className="p-8 bg-gray-1 rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100 transform hover:-translate-y-1"
+ className="p-8 rounded-2xl border border-gray-100 shadow-md transition-all duration-300 transform bg-gray-1 hover:shadow-xl hover:border-blue-100 hover:-translate-y-1"
>
- <div className="bg-indigo-50 w-12 h-12 flex items-center justify-center rounded-full mb-4">
- <span className="text-indigo-500 text-xl font-medium">
+ <div className="flex justify-center items-center mb-4 w-12 h-12 bg-indigo-50 rounded-full">
+ <span className="text-xl font-medium text-indigo-500">
{index + 1}
</span>
</div>
- <h3 className="text-xl mb-4 text-gray-800 font-semibold">
+ <h3 className="mb-4 text-xl font-semibold text-gray-800">
{item.title}
</h3>
- <p className="text-gray-600 leading-relaxed">
+ <p className="leading-relaxed text-gray-600">
{renderHTML(item.description)}
</p>
</div>
@@ -154,29 +153,29 @@ export const SeoPageTemplate = ({
{content.recordingModes && (
<div className="mb-28">
<div className="text-center max-w-[800px] mx-auto mb-16">
- <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-4xl font-medium text-gray-800">
{content.recordingModes.title}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
- <p className="text-xl text-gray-600 leading-relaxed">
+ <p className="text-xl leading-relaxed text-gray-600">
{renderHTML(content.recordingModes.description)}
</p>
</div>
- <div className="grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto">
+ <div className="grid grid-cols-1 gap-8 mx-auto max-w-4xl md:grid-cols-2">
{content.recordingModes.modes.map((mode, index) => (
<div
key={index}
- className="p-8 bg-blue-50/50 rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-blue-100/20 transform hover:-translate-y-1"
+ className="p-8 rounded-2xl border shadow-md transition-all duration-300 transform bg-blue-50/50 hover:shadow-xl border-blue-100/20 hover:-translate-y-1"
>
- <div className="bg-blue-500 w-12 h-12 flex items-center justify-center rounded-full mb-4">
- <span className="text-white text-xl font-medium">
+ <div className="flex justify-center items-center mb-4 w-12 h-12 bg-blue-500 rounded-full">
+ <span className="text-xl font-medium text-white">
{index + 1}
</span>
</div>
- <h3 className="text-xl mb-4 text-blue-700 font-semibold">
+ <h3 className="mb-4 text-xl font-semibold text-blue-700">
{mode.title}
</h3>
- <p className="text-gray-600 leading-relaxed">
+ <p className="leading-relaxed text-gray-600">
{renderHTML(mode.description)}
</p>
</div>
@@ -189,19 +188,19 @@ export const SeoPageTemplate = ({
{content.comparisonTable && (
<div className="mb-28">
<div className="text-center max-w-[800px] mx-auto mb-16">
- <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-4xl font-medium text-gray-800">
{content.comparisonTable.title}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
</div>
<div className="overflow-x-auto">
- <table className="w-full max-w-4xl mx-auto bg-gray-1 shadow-md rounded-2xl overflow-hidden">
+ <table className="overflow-hidden mx-auto w-full max-w-4xl rounded-2xl shadow-md bg-gray-1">
<thead className="bg-blue-50">
<tr>
{content.comparisonTable.headers.map((header, index) => (
<th
key={index}
- className="py-4 px-6 text-left text-gray-700 font-semibold border-b border-gray-200"
+ className="px-6 py-4 font-semibold text-left text-gray-700 border-b border-gray-200"
>
{header}
</th>
@@ -217,7 +216,7 @@ export const SeoPageTemplate = ({
{row.map((cell, cellIndex) => (
<td
key={cellIndex}
- className="py-4 px-6 border-b border-gray-200"
+ className="px-6 py-4 border-b border-gray-200"
>
{cell}
</td>
@@ -233,29 +232,29 @@ export const SeoPageTemplate = ({
{/* Use Cases Section */}
<div className="mb-28">
<div className="text-center max-w-[800px] mx-auto mb-16">
- <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-4xl font-medium text-gray-800">
{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>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
- <p className="text-xl text-gray-600 leading-relaxed">
+ <p className="text-xl leading-relaxed text-gray-600">
{renderHTML(content.useCasesDescription)}
</p>
</div>
- <div className="grid grid-cols-1 md:grid-cols-2 gap-8 px-4">
+ <div className="grid grid-cols-1 gap-8 px-4 md:grid-cols-2">
{content.useCases.map((useCase, index) => (
<div
key={index}
- className="p-8 bg-gray-1 rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100 transform hover:-translate-y-1"
+ className="p-8 rounded-2xl border border-gray-100 shadow-md transition-all duration-300 transform bg-gray-1 hover:shadow-xl hover:border-blue-100 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-medium">
+ <div className="flex justify-center items-center mb-4 w-12 h-12 bg-blue-50 rounded-full">
+ <span className="text-xl font-medium text-blue-500">
{String.fromCharCode(65 + index)}
</span>
</div>
- <h3 className="text-xl mb-4 text-gray-800 font-semibold">
+ <h3 className="mb-4 text-xl font-semibold text-gray-800">
{useCase.title}
</h3>
- <p className="text-gray-600 leading-relaxed">
+ <p className="leading-relaxed text-gray-600">
{renderHTML(useCase.description)}
</p>
</div>
@@ -267,16 +266,16 @@ export const SeoPageTemplate = ({
{content.testimonials && (
<div className="mb-28">
<div className="text-center max-w-[800px] mx-auto mb-16">
- <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-4xl font-medium text-gray-800">
{content.testimonials.title}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
</div>
- <div className="grid grid-cols-1 md:grid-cols-3 gap-8">
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-3">
{content.testimonials.items.map((testimonial, index) => (
<div
key={index}
- className="p-8 bg-gray-1 rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100"
+ className="p-8 rounded-2xl border border-gray-100 shadow-md transition-all duration-300 bg-gray-1 hover:shadow-xl"
>
<div className="mb-4 text-blue-500">
<svg
@@ -287,10 +286,10 @@ export const SeoPageTemplate = ({
<path d="M3.691 6.292C5.094 4.771 7.217 4 10.066 4h.141c.297 0 .54.24.54.531v5.297c0 .297-.243.531-.54.531h-3.908c-.297 0-.54.244-.54.543v3.2c0 1.793 1.464 3.2 3.277 3.2h.544c.296 0 .54.234.54.531v5.297c0 .297-.244.531-.54.531h-.544c-5.847 0-10-4.153-10-10v-6.4c0-.936.174-1.791.594-2.569zm16 0C21.094 4.771 23.217 4 26.066 4h.141c.297 0 .54.24.54.531v5.297c0 .297-.243.531-.54.531h-3.908c-.297 0-.54.244-.54.543v3.2c0 1.793 1.464 3.2 3.277 3.2h.544c.296 0 .54.234.54.531v5.297c0 .297-.244.531-.54.531h-.544c-5.847 0-10-4.153-10-10v-6.4c0-.936.174-1.791.594-2.569z"></path>
</svg>
</div>
- <p className="text-gray-700 italic mb-4 leading-relaxed">
+ <p className="mb-4 italic leading-relaxed text-gray-700">
"{testimonial.quote}"
</p>
- <p className="text-gray-600 font-semibold">
+ <p className="font-semibold text-gray-600">
{testimonial.author}
</p>
</div>
@@ -303,19 +302,19 @@ export const SeoPageTemplate = ({
{content.migrationGuide && (
<div className="mb-28">
<div className="text-center max-w-[800px] mx-auto mb-16">
- <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-4xl font-medium text-gray-800">
{content.migrationGuide.title}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
</div>
- <div className="max-w-3xl mx-auto bg-gray-1 p-8 rounded-2xl shadow-md">
+ <div className="p-8 mx-auto max-w-3xl rounded-2xl shadow-md bg-gray-1">
<ol className="list-none">
{content.migrationGuide.steps.map((step, index) => (
- <li key={index} className="mb-6 flex items-start">
- <div className="bg-blue-500 text-white rounded-full w-8 h-8 flex items-center justify-center mr-4 flex-shrink-0 mt-1">
+ <li key={index} className="flex items-start mb-6">
+ <div className="flex flex-shrink-0 justify-center items-center mt-1 mr-4 w-8 h-8 text-white bg-blue-500 rounded-full">
{index + 1}
</div>
- <p className="text-gray-700 mt-1">{step}</p>
+ <p className="mt-1 text-gray-700">{step}</p>
</li>
))}
</ol>
@@ -326,21 +325,21 @@ export const SeoPageTemplate = ({
{/* FAQ Section */}
<div className="mb-28">
<div className="text-center max-w-[800px] mx-auto mb-16">
- <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">
+ <h2 className="inline-block relative mb-6 text-4xl font-medium text-gray-800">
{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>
+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
</div>
- <div className="mb-10 max-w-3xl mx-auto">
+ <div className="mx-auto mb-10 max-w-3xl">
{content.faqs.map((faq, index) => (
<div
key={index}
- className="my-6 p-6 bg-gray-1 rounded-xl shadow-sm hover:shadow-md transition-all duration-300 border border-gray-100"
+ className="p-6 my-6 rounded-xl border border-gray-100 shadow-sm transition-all duration-300 bg-gray-1 hover:shadow-md"
>
- <h2 className="text-xl text-gray-800 font-semibold mb-3">
+ <h2 className="mb-3 text-xl font-semibold text-gray-800">
{faq.question}
</h2>
- <div className="text-gray-600 leading-relaxed">
+ <div className="leading-relaxed text-gray-600">
{renderHTML(faq.answer)}
</div>
</div>
@@ -358,21 +357,21 @@ export const SeoPageTemplate = ({
backgroundRepeat: "no-repeat",
}}
>
- <div className="wrapper mx-auto h-full flex flex-col justify-center items-center relative z-10">
+ <div className="flex relative z-10 flex-col justify-center items-center mx-auto h-full wrapper">
<div className="text-center max-w-[800px] mx-auto mb-8">
- <h2 className="text-3xl md:text-4xl font-medium text-gray-12 mb-4 drop-shadow-md">
+ <h2 className="mb-4 text-3xl font-medium md:text-4xl text-gray-12">
{content.cta.title}
</h2>
- <p className="text-xl text-gray-10 mb-6">
+ <p className="mb-6 text-xl text-gray-10">
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-3 sm:space-y-0 sm:space-x-4">
+ <div className="flex flex-col justify-center items-center space-y-3 sm:flex-row sm:space-y-0 sm:space-x-4">
<Button
variant="blue"
href="/pricing"
size="lg"
- className="w-full sm:w-auto transition-all duration-300 font-medium px-8 py-3"
+ className="px-8 py-3 w-full font-medium transition-all duration-300 sm:w-auto"
>
{content.cta.buttonText}
</Button>
diff --git a/apps/web/components/tools/ToolsPageTemplate.tsx b/apps/web/components/tools/ToolsPageTemplate.tsx
index 4e069de51..1079e23b4 100644
--- a/apps/web/components/tools/ToolsPageTemplate.tsx
+++ b/apps/web/components/tools/ToolsPageTemplate.tsx
@@ -2,14 +2,13 @@
import { ToolPageContent } from "@/components/tools/types";
import { Button } from "@cap/ui";
-import { motion } from "framer-motion";
import Link from "next/link";
import { ReactNode, useEffect } from "react";
const renderHTML = (content: string) => {
const styledContent = content.replace(
/<a\s/g,
- '<a class="font-semibold text-blue-500 hover:text-blue-600 transition-colors" '
+ '<a class="font-semibold text-blue-500 transition-colors hover:text-blue-600" '
);
return <span dangerouslySetInnerHTML={{ __html: styledContent }} />;
@@ -119,23 +118,23 @@ export const ToolsPageTemplate = ({
return (
<>
{/* Compact Hero Section */}
- <div className="relative pt-[60px] md:pt-[120px] overflow-hidden ">
+ <div className="overflow-hidden relative py-32 md:py-40">
{/* Breadcrumbs */}
- <div className="wrapper relative z-20 pt-4 px-5 text-center">
- <div className="flex items-center justify-center text-sm">
+ <div className="relative z-20 px-5 pt-4 text-center wrapper">
+ <div className="flex justify-center items-center text-sm">
<Link
- className="text-gray-500 hover:underline text-sm font-semibold"
+ className="text-sm font-semibold text-gray-500 hover:underline"
href="/tools"
>
Tools
</Link>
- <span className="mx-2 text-gray-400 text-sm">/</span>
- <span className="text-gray-500 text-sm">{content.title}</span>
+ <span className="mx-2 text-sm text-gray-400">/</span>
+ <span className="text-sm text-gray-500">{content.title}</span>
</div>
</div>
- <div className="relative z-10 px-5 pt-8 pb-6 md:pt-12 md:pb-8 w-full">
- <div className="mx-auto text-center wrapper wrapper-sm max-w-3xl">
+ <div className="relative z-10 px-5 pt-8 pb-6 w-full md:pt-12 md:pb-8">
+ <div className="mx-auto max-w-3xl text-center wrapper wrapper-sm">
<h1 className="fade-in-down text-[2rem] leading-[2.5rem] md:text-[2.75rem] md:leading-[3.25rem] relative z-10 text-black mb-4">
{content.title}
</h1>
@@ -144,117 +143,117 @@ export const ToolsPageTemplate = ({
</p>
</div>
</div>
- <div className="wrapper py-10 relative z-10">
- <div className="mx-auto max-w-4xl bg-white rounded-2xl shadow-lg p-6 md:p-8 border border-gray-100">
- {toolComponent}
- </div>
- </div>
-
- {/* Main Content - Features & FAQ */}
- <div className="wrapper py-16 relative z-10">
- {/* 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-800 mb-5 relative inline-block">
- {content.featuresTitle}
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-16 h-1 bg-blue-500 rounded-full"></span>
- </h2>
- <p className="text-lg text-gray-600 leading-relaxed">
- {renderHTML(content.featuresDescription)}
- </p>
- </div>
- <div className="grid grid-cols-1 md:grid-cols-3 gap-6">
- {content.features.map(
- (
- feature: { title: string; description: string },
- index: number
- ) => (
- <div
- key={index}
- className="p-6 bg-white rounded-xl shadow-sm hover:shadow-md transition-all duration-300 border border-gray-100 hover:border-blue-100"
- >
- <div className="bg-blue-50 w-10 h-10 flex items-center justify-center rounded-full mb-4">
- <span className="text-blue-500 text-lg font-medium">
- {index + 1}
- </span>
- </div>
- <h3 className="text-lg mb-3 text-gray-800 font-semibold">
- {feature.title}
- </h3>
- <p className="text-gray-600 leading-relaxed text-sm md:text-base">
- {renderHTML(feature.description)}
- </p>
- </div>
- )
- )}
+ <div className="relative z-10 py-10 wrapper">
+ <div className="p-6 mx-auto max-w-4xl bg-white rounded-2xl border border-gray-100 shadow-lg md:p-8">
+ {toolComponent}
</div>
</div>
- {/* FAQ Section */}
- {content.faqs && (
+ {/* Main Content - Features & FAQ */}
+ <div className="relative z-10 py-16 wrapper">
+ {/* 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-800 mb-5 relative inline-block">
- Frequently Asked Questions
- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-16 h-1 bg-blue-500 rounded-full"></span>
+ <h2 className="inline-block relative mb-5 text-3xl font-medium text-gray-800">
+ {content.featuresTitle}
+ <span className="absolute -bottom-2 left-1/2 w-16 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
</h2>
+ <p className="text-lg leading-relaxed text-gray-600">
+ {renderHTML(content.featuresDescription)}
+ </p>
</div>
- <div className="mb-10 max-w-3xl mx-auto">
- {content.faqs.map(
- (faq: { question: string; answer: string }, index: number) => (
+ <div className="grid grid-cols-1 gap-6 md:grid-cols-3">
+ {content.features.map(
+ (
+ feature: { title: string; description: string },
+ index: number
+ ) => (
<div
key={index}
- className="my-4 p-5 bg-white rounded-xl shadow-sm hover:shadow-md transition-all duration-300 border border-gray-100"
+ className="p-6 bg-white rounded-xl border border-gray-100 shadow-sm transition-all duration-300 hover:shadow-md hover:border-blue-100"
>
- <h2 className="text-lg text-gray-800 font-semibold mb-2">
- {faq.question}
- </h2>
- <div className="text-gray-600 leading-relaxed text-sm md:text-base">
- {renderHTML(faq.answer)}
+ <div className="flex justify-center items-center mb-4 w-10 h-10 bg-blue-50 rounded-full">
+ <span className="text-lg font-medium text-blue-500">
+ {index + 1}
+ </span>
</div>
+ <h3 className="mb-3 text-lg font-semibold text-gray-800">
+ {feature.title}
+ </h3>
+ <p className="text-sm leading-relaxed text-gray-600 md:text-base">
+ {renderHTML(feature.description)}
+ </p>
</div>
)
)}
</div>
</div>
- )}
- {/* Clean CTA Section */}
- <div
- className="wrapper max-w-[900px] mx-auto rounded-2xl bg-white overflow-hidden relative flex flex-col justify-center p-8 md:p-10"
- style={{
- backgroundImage: "url('/illustrations/ctabg.svg')",
- backgroundSize: "cover",
- backgroundRepeat: "no-repeat",
- }}
- >
-
- <div className="wrapper mx-auto h-full flex flex-col justify-center items-center relative z-10">
- <div className="text-center max-w-[700px] mx-auto mb-6">
- <h2 className="text-2xl md:text-3xl font-medium text-gray-12 mb-3 drop-shadow-md">
- {content.cta.title}
- </h2>
- <p className="text-lg text-gray-10 mb-5">
- {content.cta.description}
- </p>
+ {/* FAQ Section */}
+ {content.faqs && (
+ <div className="mb-20">
+ <div className="text-center max-w-[800px] mx-auto mb-12">
+ <h2 className="inline-block relative mb-5 text-3xl font-medium text-gray-800">
+ Frequently Asked Questions
+ <span className="absolute -bottom-2 left-1/2 w-16 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span>
+ </h2>
+ </div>
+ <div className="mx-auto mb-10 max-w-3xl">
+ {content.faqs.map(
+ (faq: { question: string; answer: string }, index: number) => (
+ <div
+ key={index}
+ className="p-5 my-4 bg-white rounded-xl border border-gray-100 shadow-sm transition-all duration-300 hover:shadow-md"
+ >
+ <h2 className="mb-2 text-lg font-semibold text-gray-800">
+ {faq.question}
+ </h2>
+ <div className="text-sm leading-relaxed text-gray-600 md:text-base">
+ {renderHTML(faq.answer)}
+ </div>
+ </div>
+ )
+ )}
+ </div>
</div>
- <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="gray"
- href="/download"
- size="lg"
- className="w-full sm:w-auto transition-all duration-200 font-medium px-8"
- >
- {content.cta.buttonText}
- </Button>
+ )}
+
+ {/* Clean CTA Section */}
+ <div
+ className="max-w-[900px] mx-auto rounded-2xl bg-white overflow-hidden relative flex flex-col justify-center p-8 md:p-10"
+ style={{
+ backgroundImage: "url('/illustrations/ctabg.svg')",
+ backgroundSize: "cover",
+ backgroundRepeat: "no-repeat",
+ }}
+ >
+
+ <div className="flex relative z-10 flex-col justify-center items-center mx-auto h-full wrapper">
+ <div className="text-center max-w-[700px] mx-auto mb-6">
+ <h2 className="mb-3 text-2xl font-medium md:text-3xl text-gray-12">
+ {content.cta.title}
+ </h2>
+ <p className="mb-5 text-lg text-gray-10">
+ {content.cta.description}
+ </p>
+ </div>
+ <div className="flex flex-col justify-center items-center space-y-3 sm:flex-row sm:space-y-0 sm:space-x-4">
+ <Button
+ variant="gray"
+ href="/download"
+ size="lg"
+ className="px-8 w-full font-medium transition-all duration-200 sm:w-auto"
+ >
+ {content.cta.buttonText}
+ </Button>
+ </div>
</div>
</div>
</div>
</div>
- </div>
{/* Tool Container - Now positioned for visibility above the fold */}
-
+
<style jsx global>{`
@keyframes fade-in-down {