chore: update imports in pages
This commit is contained in:
parent
392fc86ba8
commit
17ab887795
3 changed files with 81 additions and 30 deletions
|
|
@ -1,13 +1,15 @@
|
|||
import "./styles.css";
|
||||
// import "@repo/ui/globals.css";
|
||||
import "@repo/ui/globals.css";
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,31 +1,31 @@
|
|||
import { log } from "@repo/logger";
|
||||
import { Link } from "@repo/ui/link";
|
||||
import { CounterButton } from "@repo/ui/counter-button";
|
||||
import { Link } from "@repo/ui/link/index.js";
|
||||
import { CounterButton } from "@repo/ui/counter-button/index.js";
|
||||
|
||||
export const metadata = {
|
||||
title: "Store | Kitchen Sink",
|
||||
title: "Store | Kitchen Sink",
|
||||
};
|
||||
|
||||
export default function Store() {
|
||||
log("Hey! This is the Store page.");
|
||||
log("Hey! This is the Store page.");
|
||||
|
||||
return (
|
||||
<div className="container">
|
||||
<h1 className="title">
|
||||
Store <br />
|
||||
<span>Kitchen Sink</span>
|
||||
</h1>
|
||||
<CounterButton />
|
||||
<p className="description">
|
||||
Built With{" "}
|
||||
<Link href="https://turborepo.com" newTab>
|
||||
Turborepo
|
||||
</Link>
|
||||
{" & "}
|
||||
<Link href="https://nextjs.org/" newTab>
|
||||
Next.js
|
||||
</Link>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<div className="container">
|
||||
<h1 className="title">
|
||||
Store <br />
|
||||
<span>Kitchen Sink</span>
|
||||
</h1>
|
||||
<CounterButton />
|
||||
<p className="description">
|
||||
Built With{" "}
|
||||
<Link href="https://turborepo.com" newTab>
|
||||
Turborepo
|
||||
</Link>
|
||||
{" & "}
|
||||
<Link href="https://nextjs.org/" newTab>
|
||||
Next.js
|
||||
</Link>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
49
apps/next-template/src/app/shadcn/page.tsx
Normal file
49
apps/next-template/src/app/shadcn/page.tsx
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
import { Button } from "@repo/ui/components/button.js";
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@repo/ui/components/card.js";
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<main className="flex flex-col items-center justify-center min-h-screen bg-gray-50">
|
||||
<Card className="w-full max-w-md shadow-lg">
|
||||
<CardHeader>
|
||||
<CardTitle className="text-3xl font-bold text-center">
|
||||
Welcome to the Next.js Homepage
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="flex flex-col items-center gap-6">
|
||||
<p className="text-gray-600 text-center">
|
||||
This homepage uses{" "}
|
||||
<span className="font-semibold">shadcn/ui</span>{" "}
|
||||
components from{" "}
|
||||
<span className="font-mono">@repo/ui</span>.
|
||||
</p>
|
||||
<div className="flex gap-4">
|
||||
<Button asChild>
|
||||
<a
|
||||
href="https://nextjs.org/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn Next.js
|
||||
</a>
|
||||
</Button>
|
||||
<Button variant="outline" asChild>
|
||||
<a
|
||||
href="https://ui.shadcn.com/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Explore shadcn/ui
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue