Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Visual adjustments: self hosting docs (#636)
Ameer Al Ashhabcf661abc10be
diff --git a/apps/web/app/blog/[slug]/page.tsx b/apps/web/app/blog/[slug]/page.tsxindex e4f16d765..2500d896d 100644--- a/apps/web/app/blog/[slug]/page.tsx+++ b/apps/web/app/blog/[slug]/page.tsx@@ -79,6 +79,7 @@ export default async function PostPage({ params }: PostProps) {src={post.metadata.image}alt={post.metadata.title}fill+ quality={100}priority/></div>diff --git a/apps/web/app/docs/[...slug]/page.tsx b/apps/web/app/docs/[...slug]/page.tsxindex f26dfa386..5f49d3077 100644--- a/apps/web/app/docs/[...slug]/page.tsx+++ b/apps/web/app/docs/[...slug]/page.tsx@@ -152,7 +152,7 @@ export default async function DocPage(props: DocProps) {{doc.metadata.tags.split(", ").map((tag) => (<spankey={tag}- className="px-2 py-1 text-xs text-gray-600 bg-gray-1 rounded-full dark:bg-gray-800 dark:text-gray-8"+ className="px-2 py-1 text-xs text-gray-600 rounded-full bg-gray-1 dark:bg-gray-800 dark:text-gray-8">{tag}</span>@@ -185,6 +185,7 @@ export default async function DocPage(props: DocProps) {src={doc.metadata.image}alt={doc.metadata.title}fill+ quality={100}prioritysizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"/>diff --git a/apps/web/app/docs/[slug]/page.tsx b/apps/web/app/docs/[slug]/page.tsxindex 5c03b9b29..eb29c1cad 100644--- a/apps/web/app/docs/[slug]/page.tsx+++ b/apps/web/app/docs/[slug]/page.tsx@@ -63,6 +63,7 @@ export default async function DocPage({ params }: DocProps) {src={doc.metadata.image}alt={doc.metadata.title}fill+ quality={100}prioritysizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"/>diff --git a/apps/web/app/docs/_components/DocPage.tsx b/apps/web/app/docs/_components/DocPage.tsxindex 82ea88480..cf91856b9 100644--- a/apps/web/app/docs/_components/DocPage.tsx+++ b/apps/web/app/docs/_components/DocPage.tsx@@ -20,6 +20,7 @@ export const DocPage = ({ docSlug }: { docSlug: string }) => {src={doc.metadata.image}alt={doc.metadata.title}fill+ quality={100}prioritysizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"/>diff --git a/apps/web/components/pages/DocsPage.tsx b/apps/web/components/pages/DocsPage.tsxindex e36bcefcc..b6546e6b5 100644--- a/apps/web/components/pages/DocsPage.tsx+++ b/apps/web/components/pages/DocsPage.tsx@@ -6,15 +6,15 @@ export const DocsPage = () => {const allDocs = getDocs();return (- <div className="px-5 py-32 mx-auto sm:py-32 wrapper wrapper-sm">+ <div className="px-5 py-32 sm:py-32 w-full max-w-[1200px] mx-auto"><div className="mb-14 text-center page-intro"><h1>Documentation</h1></div>- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">+ <div className="grid grid-cols-1 gap-6 md:grid-cols-3">{allDocs.map((doc) => (<articlekey={doc.slug}- className="overflow-hidden w-full rounded-xl border"+ className="overflow-hidden w-full rounded-xl border transition-shadow cursor-pointer hover:shadow-md"><Link href={"/docs/" + doc.slug}>{doc.metadata.image && (@@ -23,23 +23,23 @@ export const DocsPage = () => {src={doc.metadata.image}width={900}height={400}+ quality={100}objectFit="cover"alt={doc.metadata.title}- className="w-full h-auto"/></div>)}- <div className="p-10 space-y-4">- <h2 className="text-xl text-gray-12 md:text-4xl">+ <div className="p-5 space-y-2">+ <h2 className="text-xl font-medium text-gray-12 md:text-xl">{doc.metadata.title}</h2><p className="text-gray-600">{doc.metadata.summary}</p>- <div className="flex space-x-2">+ <div className="flex flex-wrap gap-2">{doc.metadata.tags &&doc.metadata.tags.split(", ").map((tag) => (<pkey={tag}- className="rounded-md bg-gray-4 font-medium px-2 py-0.5 text-sm text-gray-11"+ className="rounded-md min-w-fit flex-initial bg-gray-4 font-medium px-2 py-0.5 text-sm text-gray-11">{tag}</p>diff --git a/apps/web/content/docs/commercial-license.mdx b/apps/web/content/docs/commercial-license.mdxindex 8c6093cb1..ed87a9752 100644--- a/apps/web/content/docs/commercial-license.mdx+++ b/apps/web/content/docs/commercial-license.mdx@@ -2,6 +2,7 @@title: "Commercial Licensing"summary: "Cap Desktop is free to use, but requires a commercial license to be used for commercial purposes."tags: "Licensing"+image: "/docs/commercial-licensing.webp"---The Cap Desktop application you can download from our [download page](/download) is free to use,diff --git a/apps/web/content/docs/s3-config/cloudflare-r2.mdx b/apps/web/content/docs/s3-config/cloudflare-r2.mdxindex 575b98f3f..e7deff495 100644--- a/apps/web/content/docs/s3-config/cloudflare-r2.mdx+++ b/apps/web/content/docs/s3-config/cloudflare-r2.mdx@@ -1,13 +1,7 @@---title: "Cap Apps: S3 Config (Cloudflare R2)"summary: "Connect your own Cloudflare R2 bucket to Cap Desktop and maintain 100% ownership over your data."-tags:- [- "Cap Apps",- "Cloudflare R2",- "S3-compatible storage",- "Cloud storage configuration",- ]+tags: Cap Apps, Cloudflare R2, S3-compatible storage, Cloud storage configurationimage: "/docs/s3-config/cloudflare-r2.jpg"---diff --git a/apps/web/content/docs/self-hosting.mdx b/apps/web/content/docs/self-hosting.mdxindex 3d63e4a22..764292985 100644--- a/apps/web/content/docs/self-hosting.mdx+++ b/apps/web/content/docs/self-hosting.mdx@@ -2,6 +2,7 @@title: "Self-hosting Cap Web"summary: "How to deploy Cap Web on your own infrastructure"tags: "Deployment, Self-hosting"+image: "/docs/self-hosting.webp"---Cap Web is our web application for uploading and sharing Caps - it's what runs right here on [cap.so](https://cap.so).diff --git a/apps/web/public/docs/commercial-licensing.webp b/apps/web/public/docs/commercial-licensing.webpnew file mode 100644index 000000000..fb20beb4eBinary files /dev/null and b/apps/web/public/docs/commercial-licensing.webp differdiff --git a/apps/web/public/docs/self-hosting.webp b/apps/web/public/docs/self-hosting.webpnew file mode 100644index 000000000..5b6bc7687Binary files /dev/null and b/apps/web/public/docs/self-hosting.webp differ