Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: new SEO setup for quick spin up

Richie McIlroyeb8c752e73a8
diff --git a/Cargo.lock b/Cargo.lock
index 10c4f59a1..0c6af357c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -139,55 +139,6 @@ dependencies = [
"winapi",
]
-[[package]]
-name = "anstream"
-version = "0.6.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
-dependencies = [
- "anstyle",
- "anstyle-parse",
- "anstyle-query",
- "anstyle-wincon",
- "colorchoice",
- "is_terminal_polyfill",
- "utf8parse",
-]
-
-[[package]]
-name = "anstyle"
-version = "1.0.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
-
-[[package]]
-name = "anstyle-parse"
-version = "0.2.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
-dependencies = [
- "utf8parse",
-]
-
-[[package]]
-name = "anstyle-query"
-version = "1.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
-dependencies = [
- "windows-sys 0.59.0",
-]
-
-[[package]]
-name = "anstyle-wincon"
-version = "3.0.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125"
-dependencies = [
- "anstyle",
- "windows-sys 0.59.0",
-]
-
[[package]]
name = "anyhow"
version = "1.0.86"
@@ -211,7 +162,7 @@ checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -356,7 +307,7 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -391,7 +342,7 @@ checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -557,7 +508,7 @@ dependencies = [
"bitflags 1.3.2",
"cexpr 0.4.0",
"clang-sys",
- "clap 2.34.0",
+ "clap",
"env_logger",
"lazy_static",
"lazycell",
@@ -589,7 +540,7 @@ dependencies = [
"regex",
"rustc-hash 1.1.0",
"shlex 1.3.0",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -607,7 +558,7 @@ dependencies = [
"regex",
"rustc-hash 1.1.0",
"shlex 1.3.0",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -739,7 +690,7 @@ checksum = "0cc8b54b395f2fcfbb3d90c47b01c7f444d94d05bdeb775811dec868ac3bbc26"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -1088,46 +1039,6 @@ dependencies = [
"vec_map",
]
-[[package]]
-name = "clap"
-version = "4.5.20"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8"
-dependencies = [
- "clap_builder",
- "clap_derive",
-]
-
-[[package]]
-name = "clap_builder"
-version = "4.5.20"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54"
-dependencies = [
- "anstream",
- "anstyle",
- "clap_lex",
- "strsim 0.11.1",
-]
-
-[[package]]
-name = "clap_derive"
-version = "4.5.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab"
-dependencies = [
- "heck 0.5.0",
- "proc-macro2",
- "quote",
- "syn 2.0.87",
-]
-
-[[package]]
-name = "clap_lex"
-version = "0.7.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"
-
[[package]]
name = "claxon"
version = "0.4.3"
@@ -1225,12 +1136,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
-[[package]]
-name = "colorchoice"
-version = "1.0.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
-
[[package]]
name = "com"
version = "0.6.0"
@@ -1630,7 +1535,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
dependencies = [
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -1640,17 +1545,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f"
dependencies = [
"quote",
- "syn 2.0.87",
-]
-
-[[package]]
-name = "ctrlc"
-version = "3.4.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90eeab0aa92f3f9b4e87f258c72b139c207d251f9cbc1080a0086b86a8870dd3"
-dependencies = [
- "nix 0.29.0",
- "windows-sys 0.59.0",
+ "syn 2.0.85",
]
[[package]]
@@ -1685,7 +1580,7 @@ dependencies = [
"proc-macro2",
"quote",
"strsim 0.11.1",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -1696,7 +1591,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"
dependencies = [
"darling_core",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -1757,7 +1652,7 @@ checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -1770,7 +1665,7 @@ dependencies = [
"proc-macro2",
"quote",
"rustc_version",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -1922,7 +1817,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -1954,7 +1849,7 @@ checksum = "f2b99bf03862d7f545ebc28ddd33a665b50865f4dfd84031a393823879bd4c54"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -2107,7 +2002,7 @@ checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -2370,7 +2265,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -2494,7 +2389,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -2772,7 +2667,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -2941,7 +2836,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -3369,7 +3264,7 @@ checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -3397,12 +3292,6 @@ dependencies = [
"once_cell",
]
-[[package]]
-name = "is_terminal_polyfill"
-version = "1.70.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
-
[[package]]
name = "itertools"
version = "0.12.1"
@@ -4320,7 +4209,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -4381,7 +4270,7 @@ dependencies = [
"proc-macro-crate 2.0.2",
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -4723,7 +4612,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -4973,7 +4862,7 @@ dependencies = [
"phf_shared 0.11.2",
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -5020,7 +4909,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -5229,7 +5118,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8021cf59c8ec9c432cfc2526ac6b8aa508ecaf29cd415f271b8406c1b851c3fd"
dependencies = [
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -5864,7 +5753,7 @@ dependencies = [
"proc-macro2",
"quote",
"serde_derive_internals",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -5982,7 +5871,7 @@ checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -5993,7 +5882,7 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -6026,7 +5915,7 @@ checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -6077,7 +5966,7 @@ dependencies = [
"darling",
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -6289,7 +6178,7 @@ dependencies = [
"Inflector",
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -6460,9 +6349,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.87"
+version = "2.0.85"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
+checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56"
dependencies = [
"proc-macro2",
"quote",
@@ -6601,7 +6490,7 @@ checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -6714,7 +6603,7 @@ dependencies = [
"serde",
"serde_json",
"sha2",
- "syn 2.0.87",
+ "syn 2.0.85",
"tauri-utils",
"thiserror",
"time",
@@ -6732,7 +6621,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
"tauri-codegen",
"tauri-utils",
]
@@ -7061,7 +6950,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -7171,22 +7060,22 @@ checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c"
[[package]]
name = "thiserror"
-version = "1.0.68"
+version = "1.0.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02dd99dc800bbb97186339685293e1cc5d9df1f8fae2d0aecd9ff1c77efea892"
+checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
-version = "1.0.68"
+version = "1.0.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a7c61ec9a6f64d2793d8a45faba21efbe3ced62a886d44c36a009b2b519b4c7e"
+checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -7272,7 +7161,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -7443,7 +7332,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -7661,12 +7550,6 @@ version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
-[[package]]
-name = "utf8parse"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
-
[[package]]
name = "uuid"
version = "1.10.0"
@@ -7805,7 +7688,7 @@ dependencies = [
"once_cell",
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
"wasm-bindgen-shared",
]
@@ -7839,7 +7722,7 @@ checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
@@ -8008,7 +7891,7 @@ checksum = "1d228f15bba3b9d56dde8bddbee66fa24545bd17b48d5128ccf4a8742b18e431"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -8269,12 +8152,10 @@ dependencies = [
[[package]]
name = "windows-capture"
-version = "1.4.1"
+version = "1.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "308113a004a94ea5fb83dc7d19e2c66050879b6767f1eb10231af2e77b66475d"
+checksum = "5cc0a71a6b97b2fb0643c0655e19b8fa4a78c768bf5b2acfdaf453873e53ad4e"
dependencies = [
- "clap 4.5.20",
- "ctrlc",
"parking_lot",
"rayon",
"thiserror",
@@ -8342,7 +8223,7 @@ checksum = "f6fc35f58ecd95a9b71c4f2329b911016e6bec66b3f2e6a4aad86bd2e99e2f9b"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -8353,7 +8234,7 @@ checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -8364,7 +8245,7 @@ checksum = "08990546bf4edef8f431fa6326e032865f27138718c587dc21bc0265bbcb57cc"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -8375,7 +8256,7 @@ checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
@@ -8840,7 +8721,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.87",
+ "syn 2.0.85",
]
[[package]]
diff --git a/apps/web/app/[slug]/page.tsx b/apps/web/app/[slug]/page.tsx
new file mode 100644
index 000000000..52973b188
--- /dev/null
+++ b/apps/web/app/[slug]/page.tsx
@@ -0,0 +1,57 @@
+import { Metadata } from "next";
+import { notFound } from "next/navigation";
+import { getPageBySlug, seoPages } from "../../lib/seo-pages";
+import { getMetadataBySlug } from "../../lib/seo-metadata";
+
+interface PageProps {
+ params: {
+ slug: string;
+ };
+}
+
+export async function generateMetadata({
+ params,
+}: PageProps): Promise<Metadata> {
+ const metadata = getMetadataBySlug(params.slug);
+
+ if (!metadata) {
+ return {};
+ }
+
+ return {
+ title: metadata.title,
+ description: metadata.description,
+ keywords: metadata.keywords,
+ openGraph: {
+ title: metadata.title,
+ description: metadata.description,
+ images: metadata.ogImage
+ ? [
+ {
+ url: metadata.ogImage,
+ width: 1200,
+ height: 630,
+ alt: metadata.title,
+ },
+ ]
+ : [],
+ },
+ };
+}
+
+export default function Page({ params }: PageProps) {
+ const page = getPageBySlug(params.slug);
+
+ if (!page) {
+ notFound();
+ }
+
+ const PageComponent = page.component;
+ return <PageComponent />;
+}
+
+export async function generateStaticParams() {
+ return Object.keys(seoPages).map((slug) => ({
+ slug,
+ }));
+}
diff --git a/apps/web/components/Footer.tsx b/apps/web/components/Footer.tsx
index 977861c8a..33d7a99ad 100644
--- a/apps/web/components/Footer.tsx
+++ b/apps/web/components/Footer.tsx
@@ -22,10 +22,10 @@ export const Footer = () => {
<footer>
<div
style={{ boxShadow: "0px 2px 8px rgba(18, 22, 31, 0.02)" }}
- className="wrapper bg-gray-100 border-[1px] border-gray-200 p-8 md:p-12 rounded-[20px] mb-10 relative overflow-hidden"
+ className="wrapper bg-gray-100 border-[1px] border-gray-200 p-8 lg:p-12 rounded-[20px] mb-10 relative overflow-hidden"
>
- <div className="grid grid-cols-1 md:grid-cols-12 gap-8 items-start justify-between z-10 relative">
- <div className="space-y-4 md:col-span-6">
+ <div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-start justify-between z-10 relative">
+ <div className="space-y-4 lg:col-span-6">
<Logo showBeta={true} className="w-[104px] h-auto" />
<p className="text-gray-500 max-w-md">
Cap is the open source alternative to Loom. Lightweight, powerful,
@@ -43,7 +43,7 @@ export const Footer = () => {
</a>
</div>
</div>
- <div className="space-y-4 md:col-span-2">
+ <div className="space-y-4 lg:col-span-2">
<h3 className="text-lg font-semibold">Product</h3>
<ul className="space-y-2">
<li>
@@ -67,7 +67,7 @@ export const Footer = () => {
</li>
</ul>
</div>
- <div className="space-y-4 md:col-span-2">
+ <div className="space-y-4 lg:col-span-2">
<h3 className="text-lg font-semibold">Help</h3>
<ul className="space-y-2">
<li>
@@ -88,7 +88,7 @@ export const Footer = () => {
</li>
</ul>
</div>
- <div className="space-y-4 md:col-span-2">
+ <div className="space-y-4 lg:col-span-2">
<h3 className="text-lg font-semibold">Socials</h3>
<ul className="space-y-2">
<li>
@@ -111,6 +111,14 @@ export const Footer = () => {
</li>
</ul>
</div>
+ <div className="space-y-4 lg:col-span-12">
+ <h3 className="text-lg font-semibold">More</h3>
+ <ul className="space-y-2">
+ <li>
+ <a href="/screen-recorder">Screen Recorder</a>
+ </li>
+ </ul>
+ </div>
</div>
</div>
</footer>
diff --git a/apps/web/components/Navbar.tsx b/apps/web/components/Navbar.tsx
index b4d3f6f25..567057b1d 100644
--- a/apps/web/components/Navbar.tsx
+++ b/apps/web/components/Navbar.tsx
@@ -20,6 +20,7 @@ import { classNames } from "@cap/utils";
export const Navbar = ({ auth }: { auth: boolean }) => {
const pathname = usePathname();
const isHomePage = pathname === "/";
+ const isSeoPage = pathname.startsWith("/screen-recorder");
const [showMobileMenu, setShowMobileMenu] = useState(false);
if (
@@ -38,12 +39,12 @@ export const Navbar = ({ auth }: { auth: boolean }) => {
<>
<div
className={`${
- isHomePage === true
+ isHomePage || isSeoPage
? "bg-transparent border-transparent"
: "bg-white border-gray-200"
} border-b-[1px] w-full p-4`}
>
- <div className="relative z-20 flex justify-between max-w-3xl mx-auto transition-all ">
+ <div className="relative z-20 flex justify-between max-w-3xl mx-auto transition-all">
<div>
<a href="/">
<Logo
diff --git a/apps/web/components/pages/ScreenRecorderPage.tsx b/apps/web/components/pages/ScreenRecorderPage.tsx
new file mode 100644
index 000000000..419a6dab1
--- /dev/null
+++ b/apps/web/components/pages/ScreenRecorderPage.tsx
@@ -0,0 +1,113 @@
+"use client";
+
+import { SeoPageTemplate } from "../seo/SeoPageTemplate";
+
+export const screenRecorderContent = {
+ title: "Screen Recorder: High-Quality, User-Friendly, and 100% Free Locally",
+ description:
+ "Cap is a powerful, user-friendly screen recorder and is 100% free locally with no usage limits. Perfect for team collaboration, creating tutorials, or recording professional presentations with ease and precision.",
+
+ featuresTitle: "Key Features",
+ featuresDescription:
+ "Create stunning screen recordings with powerful collaboration features.",
+
+ features: [
+ {
+ title: "Easy to Use",
+ description:
+ "Start recording with just a few clicks. No complex setup needed.",
+ },
+ {
+ title: "High-Quality Recording",
+ description:
+ "Capture crystal-clear footage with smooth frame rates and synchronized audio.",
+ },
+ {
+ title: "Completely Free",
+ description:
+ "Enjoy professional-grade screen recording without any cost or subscription fees. The local version of Cap is 100% free with no usage limits.",
+ },
+ {
+ title: "Unlimited Cloud Storage",
+ description:
+ "Store and share your recordings effortlessly with unlimited cloud storage.",
+ },
+ {
+ title: "Advanced Team Collaboration",
+ description:
+ "Boost team productivity with features designed for efficient collaboration and easy sharing.",
+ },
+ ],
+
+ useCasesTitle: "Popular Uses",
+ useCasesDescription:
+ "Explore how Cap can support your team's productivity and streamline your workflow",
+
+ useCases: [
+ {
+ title: "Team Collaboration",
+ description:
+ "Enhance teamwork with easy screen sharing for feedback and collaboration.",
+ },
+ {
+ title: "Tutorial Creation",
+ description:
+ "Quickly create engaging tutorials and instructional videos.",
+ },
+ {
+ title: "Professional Presentations",
+ description:
+ "Record polished presentations and demos for clients or internal team use.",
+ },
+ {
+ title: "Educational Content",
+ description:
+ "Develop high-quality educational videos or training materials with ease.",
+ },
+ ],
+
+ faqsTitle: "Frequently Asked Questions",
+ faqs: [
+ {
+ question: "Is Cap a free screen recorder?",
+ answer:
+ "Yes, Cap offers a powerful free version, making it one of the best free screen recorders available. The local version is 100% free with no usage limits, but Cap Pro is available for users who need additional features.",
+ },
+ {
+ question: "How does Cap compare to OBS?",
+ answer:
+ "Cap is designed to be highly user-friendly while delivering high recording quality. It’s a simpler, yet powerful, alternative to OBS for users seeking an intuitive experience.",
+ },
+ {
+ question: "Can I download Cap on multiple devices?",
+ answer:
+ "Yes, Cap is cross-platform and can be downloaded on macOS and Windows, allowing you to use it across multiple devices.",
+ },
+ {
+ question: "What platforms does Cap support?",
+ answer:
+ "Cap is compatible with macOS and Windows, making it versatile for any user or team.",
+ },
+ {
+ question: "How does Cap improve team productivity?",
+ answer:
+ "Cap’s advanced collaboration features make it easy to share, review, and provide feedback on screen recordings, helping teams work more effectively together.",
+ },
+ ],
+
+ video: {
+ url: "/videos/cap-demo.mp4",
+ thumbnail: "/videos/cap-demo-thumbnail.png",
+ alt: "Cap screen recorder demo showing high-quality and user-friendly features",
+ },
+
+ cta: {
+ title:
+ "Get Started with Cap – The Easy, High-Quality, and Free Screen Recorder",
+ buttonText: "Download Cap Free",
+ },
+};
+
+export const ScreenRecorderPage = () => {
+ return <SeoPageTemplate content={screenRecorderContent} />;
+};
diff --git a/apps/web/components/seo/SeoPageTemplate.tsx b/apps/web/components/seo/SeoPageTemplate.tsx
new file mode 100644
index 000000000..20bfe935b
--- /dev/null
+++ b/apps/web/components/seo/SeoPageTemplate.tsx
@@ -0,0 +1,226 @@
+"use client";
+
+import { Button } from "@cap/ui";
+import { SeoPageContent } from "@/components/seo/types";
+import { useEffect } from "react";
+
+export const SeoPageTemplate = ({
+ content,
+ showVideo = true,
+}: {
+ content: SeoPageContent;
+ showVideo?: boolean;
+}) => {
+ useEffect(() => {
+ const animateClouds = () => {
+ const cloud1 = document.getElementById("cloud-1");
+ const cloud2 = document.getElementById("cloud-2");
+ const cloud3 = document.getElementById("cloud-3");
+
+ if (cloud1 && cloud2 && cloud3) {
+ cloud1.animate(
+ [
+ { transform: "translateX(200px)" },
+ { transform: "translateX(-50px)" },
+ { transform: "translateX(0)" },
+ ],
+ {
+ duration: 100000,
+ iterations: Infinity,
+ }
+ );
+
+ cloud2.animate(
+ [
+ { transform: "translateX(-200px)" },
+ { transform: "translateX(50px)" },
+ { transform: "translateX(0)" },
+ ],
+ {
+ duration: 120000,
+ iterations: Infinity,
+ }
+ );
+
+ cloud3.animate(
+ [
+ { transform: "translateY(100px)" },
+ { transform: "translateY(-30px)" },
+ { transform: "translateY(0)" },
+ ],
+ {
+ duration: 150000,
+ iterations: Infinity,
+ }
+ );
+ }
+ };
+
+ animateClouds();
+ }, []);
+
+ 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="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">
+ {content.title}
+ </h1>
+ <p className="fade-in-down animate-delay-1 text-black/60 sm:text-lg max-w-2xl mx-auto mb-8">
+ {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">
+ {content.cta.buttonText}
+ </Button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* Clouds */}
+ <div
+ id="cloud-1"
+ className="absolute top-0 -right-20 opacity-70 md:opacity-70 opacity-90"
+ >
+ <img
+ className="max-w-[60vw] md:max-w-[40vw] h-auto"
+ src="/illustrations/cloud-1.png"
+ alt="Cloud Decoration One"
+ />
+ </div>
+ <div
+ id="cloud-2"
+ className="absolute top-0 left-0 opacity-70 md:opacity-70 opacity-90"
+ >
+ <img
+ className="max-w-[60vw] md:max-w-[40vw] h-auto"
+ src="/illustrations/cloud-2.png"
+ alt="Cloud Decoration Two"
+ />
+ </div>
+ <div
+ id="cloud-3"
+ className="absolute -bottom-20 left-0 transform opacity-70 md:opacity-70 opacity-90"
+ >
+ <img
+ className="max-w-[60vw] md:max-w-[100vw] h-auto"
+ src="/illustrations/cloud-3.png"
+ alt="Cloud Decoration Three"
+ />
+ </div>
+ </div>
+
+ {/* Main Content */}
+ <div className="wrapper py-20">
+ {/* 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">
+ {content.featuresTitle}
+ </h2>
+ <p className="text-lg text-gray-600">
+ {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">
+ {feature.title}
+ </h3>
+ <p className="text-gray-600">{feature.description}</p>
+ </div>
+ ))}
+ </div>
+ </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">
+ {content.useCasesTitle}
+ </h2>
+ <p className="text-lg text-gray-600">
+ {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">
+ {useCase.title}
+ </h3>
+ <p className="text-gray-600">{useCase.description}</p>
+ </div>
+ ))}
+ </div>
+ </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">
+ {content.faqsTitle}
+ </h2>
+ </div>
+ <div className="mb-10">
+ {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">{faq.answer}</p>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ {/* 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" }}
+ >
+ <div
+ id="cloud-4"
+ className="absolute top-0 -right-20 opacity-50 z-0 pointer-events-none"
+ >
+ <img
+ className="max-w-[40vw] h-auto"
+ src="/illustrations/cloud-1.png"
+ alt="Footer Cloud One"
+ />
+ </div>
+ <div
+ id="cloud-5"
+ className="absolute bottom-0 left-0 opacity-50 z-0 pointer-events-none"
+ >
+ <img
+ className="max-w-[40vw] h-auto"
+ src="/illustrations/cloud-2.png"
+ alt="Footer Cloud Two"
+ />
+ </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>
+ <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="white"
+ href="/pricing"
+ size="lg"
+ className="w-full sm:w-auto"
+ >
+ {content.cta.buttonText}
+ </Button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </>
+ );
+};
diff --git a/apps/web/components/seo/types.ts b/apps/web/components/seo/types.ts
new file mode 100644
index 000000000..ca930e451
--- /dev/null
+++ b/apps/web/components/seo/types.ts
@@ -0,0 +1,29 @@
+export interface SeoPageContent {
+ title: string;
+ description: string;
+ featuresTitle: string;
+ featuresDescription: string;
+ features: {
+ title: string;
+ description: string;
+ }[];
+ useCasesTitle: string;
+ useCasesDescription: string;
+ useCases: {
+ title: string;
+ description: string;
+ }[];
+ faqsTitle: string;
+ faqs: {
+ question: string;
+ answer: string;
+ }[];
+ video: {
+ url: string;
+ thumbnail: string;
+ };
+ cta: {
+ title: string;
+ buttonText: string;
+ };
+}
\ No newline at end of file
diff --git a/apps/web/lib/seo-metadata.ts b/apps/web/lib/seo-metadata.ts
new file mode 100644
index 000000000..90d912cbc
--- /dev/null
+++ b/apps/web/lib/seo-metadata.ts
@@ -0,0 +1,11 @@
+export const seoMetadata = {
+ 'screen-recorder': {
+ title: "Screen Recorder | Cap - Beautiful Screen Recording Software",
+ description: "Cap is a powerful, user-friendly screen recorder that offers high-quality recordings completely free. Perfect for creating tutorials, capturing gameplay, or recording professional presentations.",
+ keywords: ["screen recorder", "screen recording", "video capture", "free screen recorder"],
+ ogImage: "/og/screen-recorder.png",
+ },
+ // Add more page metadata here
+};
+
+export const getMetadataBySlug = (slug: string) => seoMetadata[slug as keyof typeof seoMetadata];
\ No newline at end of file
diff --git a/apps/web/lib/seo-pages.ts b/apps/web/lib/seo-pages.ts
new file mode 100644
index 000000000..8d59e71ac
--- /dev/null
+++ b/apps/web/lib/seo-pages.ts
@@ -0,0 +1,15 @@
+import { SeoPageContent } from '@/components/seo/types';
+import { ScreenRecorderPage } from '@/components/pages/ScreenRecorderPage';
+import { screenRecorderContent } from '@/components/pages/ScreenRecorderPage';
+
+export const seoPages: Record<string, {
+ component: React.ComponentType;
+ content: SeoPageContent;
+}> = {
+ 'screen-recorder': {
+ component: ScreenRecorderPage,
+ content: screenRecorderContent,
+ },
+};
+
+export const getPageBySlug = (slug: string) => seoPages[slug];
\ No newline at end of file
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index 14489c951..583d784dc 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -1,5 +1,3 @@
-import million from "million/compiler";
-
/** @type {import('next').NextConfig} */
import("dotenv").then(({ config }) => config({ path: "../../.env" }));
@@ -87,18 +85,4 @@ const nextConfig = {
},
};
-const millionConfig = {
- auto: {
- rsc: true,
- skip: [
- "Parallax",
- "Toolbar",
- "react-scroll-parallax",
- "Record",
- "ActionButton",
- "ImageViewer",
- ],
- },
-};
-
-export default million.next(nextConfig, millionConfig);
+export default nextConfig;
diff --git a/apps/web/package.json b/apps/web/package.json
index c3d6bd62f..82d70c164 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -43,7 +43,6 @@
"jszip": "^3.10.1",
"lodash": "^4.17.21",
"lucide-react": "^0.294.0",
- "million": "^2.6.4",
"moment": "^2.30.1",
"next": "14.2.3",
"next-auth": "^4.24.5",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9ba4fa7aa..120027b04 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -530,27 +530,24 @@ importers:
lucide-react:
specifier: ^0.294.0
version: 0.294.0([email protected])
- million:
- specifier: ^2.6.4
- version: 2.6.4
moment:
specifier: ^2.30.1
version: 2.30.1
next:
specifier: 14.2.3
next-auth:
specifier: ^4.24.5
next-contentlayer2:
specifier: ^0.5.3
next-mdx-remote:
specifier: ^4.4.1
nextjs-cors:
specifier: ^2.2.0
posthog-js:
specifier: ^1.129.0
version: 1.165.0
@@ -17602,7 +17599,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.1
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -20716,13 +20713,13 @@ snapshots:
dependencies:
'@babel/runtime': 7.25.6
'@panva/hkdf': 1.2.1
cookie: 0.5.0
jose: 4.15.9
oauth: 0.9.15
openid-client: 5.7.0
preact: 10.24.1
@@ -20750,12 +20747,12 @@ snapshots:
optionalDependencies:
nodemailer: 6.9.15
dependencies:
'@contentlayer2/core': 0.5.3([email protected])([email protected])
'@contentlayer2/utils': 0.5.3
contentlayer2: 0.5.3([email protected])([email protected])
react: 18.3.1
react-dom: 18.3.1([email protected])
transitivePeerDependencies:
@@ -20778,7 +20775,7 @@ snapshots:
dependencies:
'@next/env': 14.2.3
'@swc/helpers': 0.5.5
@@ -20830,10 +20827,10 @@ snapshots:
- '@babel/core'
- babel-plugin-macros
dependencies:
cors: 2.8.5
dependencies: