Skip to content

refactor: update main pages to use Container component #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2025
Merged
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
6 changes: 4 additions & 2 deletions app/create/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Container } from "@/components/ui/container";

export default function CreateGistPage() {
return (
<div className="container mx-auto py-8">
<Container className="py-8">
<h1 className="mb-4 text-2xl font-bold">Create New Gist</h1>
<p className="text-muted-foreground">
This page will contain the form for creating encrypted gists.
</p>
</div>
</Container>
);
}
6 changes: 4 additions & 2 deletions app/g/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Container } from "@/components/ui/container";

export default async function ViewGistPage({
params,
}: {
Expand All @@ -6,12 +8,12 @@ export default async function ViewGistPage({
const { id } = await params;

return (
<div className="container mx-auto py-8">
<Container className="py-8">
<h1 className="mb-4 text-2xl font-bold">View Gist</h1>
<p className="text-muted-foreground">
This page will display the gist viewer for viewing encrypted gists.
</p>
<p className="text-muted-foreground mt-2 text-sm">Gist ID: {id}</p>
</div>
</Container>
);
}
9 changes: 5 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { R2Test } from "@/components/r2-test";
import { Container } from "@/components/ui/container";

export default function Home() {
return (
<div className="min-h-screen p-8">
<main className="mx-auto max-w-4xl">
<main className="min-h-screen py-8">
<Container>
<div className="bg-card text-card-foreground rounded-lg border p-6 shadow-sm">
<h2 className="mb-4 text-2xl font-semibold">
Zero-Knowledge Encrypted Code Sharing
Expand All @@ -30,7 +31,7 @@ export default function Home() {
<h3 className="mb-4 text-xl font-semibold">R2 Bucket Test</h3>
<R2Test />
</div>
</main>
</div>
</Container>
</main>
);
}