Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions apps/docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
# Generated data files
content/examples-data.json

.source
/public/*.st
/public/*.toml
/public/schema.json
/public/schema.v1.json
/public/schema.v2.json
/public/feed.xml
.vercel

.env*.local
10 changes: 5 additions & 5 deletions apps/docs/app/[lang]/(home)/components/centered-section.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { ReactNode } from "react";

type CenteredSectionProps = {
title: string;
description: string;
interface CenteredSectionProps {
children: ReactNode;
};
description: string;
title: string;
}

export const CenteredSection = ({
title,
description,
children
children,
}: CenteredSectionProps) => (
<div className="grid items-center gap-10 overflow-hidden px-4 py-8 sm:px-12 sm:py-12">
<div className="mx-auto grid max-w-lg gap-4 text-center">
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/app/[lang]/(home)/components/cta.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import DynamicLink from "fumadocs-core/dynamic-link";
import { Button } from "@/components/ui/button";

type CTAProps = {
title: string;
href: string;
interface CTAProps {
cta: string;
};
href: string;
title: string;
}

export const CTA = ({ title, href, cta }: CTAProps) => (
<section className="flex flex-col gap-4 px-8 py-10 sm:px-12 md:flex-row md:items-center md:justify-between">
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/app/[lang]/(home)/components/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { ReactNode } from "react";
import { Badge } from "@/components/ui/badge";

type HeroProps = {
interface HeroProps {
badge: string;
title: string;
description: string;
children: ReactNode;
};
description: string;
title: string;
}

export const Hero = ({ badge, title, description, children }: HeroProps) => (
<section className="mt-(--fd-nav-height) space-y-6 px-4 pt-16 pb-16 text-center sm:pt-24">
Expand Down
10 changes: 5 additions & 5 deletions apps/docs/app/[lang]/(home)/components/one-two-section.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { ReactNode } from "react";

type OneTwoSectionProps = {
title: string;
description: string;
interface OneTwoSectionProps {
children?: ReactNode;
};
description: string;
title: string;
}

export const OneTwoSection = ({
title,
description,
children
children,
}: OneTwoSectionProps) => (
<div className="grid gap-12 p-8 sm:grid-cols-3 sm:gap-0 sm:divide-x sm:p-0">
<div className="flex flex-col gap-2 text-balance sm:p-12">
Expand Down
12 changes: 6 additions & 6 deletions apps/docs/app/[lang]/(home)/components/templates.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Image from "next/image";
import { cn } from "@/lib/utils";

type TemplatesProps = {
title: string;
description: string;
interface TemplatesProps {
data: {
title: string;
description: string;
link: string;
image: string;
}[];
};
description: string;
title: string;
}

export const Templates = ({ title, description, data }: TemplatesProps) => (
<div className="grid gap-12 p-8 px-4 py-8 sm:p-12 sm:px-12 sm:py-12">
Expand All @@ -36,8 +36,8 @@ export const Templates = ({ title, description, data }: TemplatesProps) => (
<Image
alt={item.title}
className={cn(
"-rotate-3 -mb-12 mt-8 ml-7 aspect-video overflow-hidden rounded-md border object-cover object-top",
"group-hover:-rotate-1 transition-transform duration-300 group-hover:scale-105"
"mt-8 -mb-12 ml-7 aspect-video -rotate-3 overflow-hidden rounded-md border object-cover object-top",
"transition-transform duration-300 group-hover:-rotate-1 group-hover:scale-105"
)}
height={336}
src={item.image}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
type TextGridSectionProps = {
interface TextGridSectionProps {
data: {
id: string;
title: string;
description: string;
}[];
};
}

export const TextGridSection = ({ data }: TextGridSectionProps) => (
<div className="grid gap-8 px-4 py-8 sm:px-12 sm:py-12 md:grid-cols-3">
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/[lang]/(home)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Layout = async ({ children, params }: LayoutProps<"/[lang]">) => {

return (
<HomeLayout tree={source.pageTree[lang]}>
<div className="bg-background pt-0 pb-32">{children}</div>
<div className="bg-sidebar pt-0 pb-32 dark:bg-background">{children}</div>
</HomeLayout>
);
};
Expand Down
Loading
Loading