Skip to content

Commit

Permalink
content restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
cdleveille committed Jun 1, 2024
1 parent 703db97 commit 397c7f2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/app/@modal/(.)[name_slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DiscDetail, DiscModal } from "@components";

export default function DiscDetailPage({ params: { name_slug } }: { params: { name_slug: string } }) {
export default function DiscDetailModal({ params: { name_slug } }: { params: { name_slug: string } }) {
return (
<DiscModal>
<DiscDetail name_slug={name_slug} />
Expand Down
6 changes: 5 additions & 1 deletion src/app/[name_slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ export const generateStaticParams = async () => {
};

export default function DiscDetailPage({ params: { name_slug } }: { params: { name_slug: string } }) {
return <DiscDetail name_slug={name_slug} />;
return (
<main>
<DiscDetail name_slug={name_slug} />
</main>
);
}
10 changes: 5 additions & 5 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ a {
text-decoration: none;
}

main {
h1 {
font-size: 3rem;
}

.flex-column-center {
display: flex;
flex-direction: column;
align-items: center;
padding: 0.5rem;
}

h1 {
font-size: 3rem;
}

.title {
margin-top: -0.75rem;
margin-left: -1rem;
Expand Down
12 changes: 7 additions & 5 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ export default function HomePage() {
return (
<ClerkProvider publishableKey={config.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}>
<main>
<Header />
<Filters />
<DiscCount />
<DiscGrid />
<ScrollToTop />
<div className="flex-column-center">
<Header />
<Filters />
<DiscCount />
<DiscGrid />
<ScrollToTop />
</div>
</main>
</ClerkProvider>
);
Expand Down

0 comments on commit 397c7f2

Please sign in to comment.