Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglescode committed Aug 19, 2024
1 parent b1fd202 commit 9609ddf
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 28 deletions.
25 changes: 0 additions & 25 deletions apps/playground/src/pages/about/about-us/common.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion apps/playground/src/pages/about/about-us/incorporation.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AboutSection } from "./common";
import { AboutSection } from "../";

export default function AboutIncorporation() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/playground/src/pages/about/about-us/status.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from "~/components/link";
import { AboutSection } from "./common";
import { AboutSection } from "../";

export default function AboutStatus() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/playground/src/pages/about/about-us/team.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Link from "~/components/link";
import { team } from "~/data/team";
import { AboutSection } from "./common";
import { AboutSection } from "../";

export default function AboutTeam() {
return (
Expand Down
26 changes: 26 additions & 0 deletions apps/playground/src/pages/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,29 @@ export default function AboutPage() {
</>
);
}

export function AboutSection({
children,
title,
description,
}: {
children: React.ReactNode;
title: string;
description: string;
}) {
return (
<section className="bg-white dark:bg-gray-900">
<div className="mx-auto max-w-screen-xl px-4 py-8 text-center lg:px-6 lg:py-16">
<div className="mx-auto mb-8 flex max-w-screen-sm flex-col gap-4 lg:mb-16">
<h2 className="text-4xl font-extrabold tracking-tight text-gray-900 dark:text-white">
{title}
</h2>
<p className="font-light text-gray-500 sm:text-xl dark:text-gray-400">
{description}
</p>
</div>
{children}
</div>
</section>
);
}

0 comments on commit 9609ddf

Please sign in to comment.