-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add mobile navigation with hamburger menu #15
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
Changes from all commits
b5f2c13
608ae59
67b2cac
12426bd
2a16810
c8cf8b0
887170b
781c31c
a832656
4d77b38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function CommunityPage() { | ||
| return <h1>Community</h1>; | ||
| } | ||
|
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial LGTM! Consider extracting placeholder helper. The page correctly remains a server component and provides a simple heading placeholder. However, this pattern is duplicated across six placeholder pages (AskQuestionPage, CollectionsPage, CommunityPage, JobsPage, ProfilePage, TagsPage). 🔎 Optional: Extract a reusable placeholder helper to reduce duplicationIf you'd like to reduce duplication, consider creating a helper: // lib/create-placeholder-page.tsx
export function createPlaceholderPage(title: string) {
return function PlaceholderPage() {
return <h1>{title}</h1>;
};
}Then each page becomes: import { createPlaceholderPage } from "@/lib/create-placeholder-page";
export default createPlaceholderPage("Community");This is optional for temporary scaffolding; the current approach is acceptable. 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function JobsPage() { | ||
| return <h1>Find Jobs</h1>; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // Full-width layout without right sidebar | ||
| // Layout: [LeftSidebar (sticky)] [Main Content] | ||
| const NoRightSidebarLayout = ({ children }: { children: React.ReactNode }) => { | ||
| return <main className="flex-1 px-6 py-10 md:px-8 lg:px-12">{children}</main>; | ||
| }; | ||
|
|
||
| export default NoRightSidebarLayout; | ||
michellepace marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function ProfilePage() { | ||
| return <h1>Profile</h1>; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function TagsPage() { | ||
| return <h1>Tags</h1>; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function AskQuestionPage() { | ||
| return <h1>Ask a Question</h1>; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function CollectionsPage() { | ||
| return <h1>Collections</h1>; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // TODO: Add <RightSidebar> for tag widgets, hot questions, etc. | ||
| // Layout: [LeftSidebar (sticky)] [Main Content] [RightSidebar] | ||
| const WithRightSidebarLayout = ({ | ||
| children, | ||
| }: { | ||
| children: React.ReactNode; | ||
| }) => { | ||
| return <main className="flex-1 px-6 py-10 md:px-8 lg:px-12">{children}</main>; | ||
| }; | ||
|
|
||
| export default WithRightSidebarLayout; | ||
michellepace marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,31 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const Home = () => ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <h1>Hello Root page with heading H1</h1> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Header boundary marker */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="mt-8 bg-primary/30 p-4">HEADER: {"words ".repeat(50)}</div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Flexbox demo: grow vs flex-none */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="my-8 flex gap-4 border-2 border-dashed border-primary p-4"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Fixed width - won't grow */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="flex h-24 w-24 flex-none items-center justify-center rounded-lg border-2 border-dashed border-primary bg-sky-500/20 text-sm font-medium"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| flex-none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Grows to fill available space */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="flex h-24 grow items-center justify-center rounded-lg border-2 border-dashed border-primary bg-indigo-500/30 text-sm font-medium"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| grow | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Fixed width - won't grow */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="flex h-24 w-24 flex-none items-center justify-center rounded-lg border-2 border-dashed border-primary bg-sky-500/20 text-sm font-medium"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| flex-none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Footer boundary marker */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="bg-primary/30 p-4">FOOTER: {"words ".repeat(50)}</div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export default Home; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove debug scaffolding before merging. The page contains obvious debug/test code including repeated words, visual debug borders, explicit layout markers, and testing banners. Whilst the PR notes acknowledge this scaffolding exists, debug code should not be committed to the main branch. 🔎 Apply this diff to replace with a proper placeholder:-const Home = () => (
- <>
- <h1>Hello Root page with heading H1</h1>
-
- {/* Header boundary marker */}
- <div className="mt-8 bg-primary/30 p-4">HEADER: {"words ".repeat(50)}</div>
-
- {/* Flexbox demo: grow vs flex-none */}
- <div className="my-8 flex gap-4 border-2 border-dashed border-primary p-4">
- {/* Fixed width - won't grow */}
- <div className="flex h-24 w-24 flex-none items-center justify-center rounded-lg border-2 border-dashed border-primary bg-sky-500/20 text-sm font-medium">
- flex-none
- </div>
-
- {/* Grows to fill available space */}
- <div className="flex h-24 grow items-center justify-center rounded-lg border-2 border-dashed border-primary bg-indigo-500/30 text-sm font-medium">
- grow
- </div>
-
- {/* Fixed width - won't grow */}
- <div className="flex h-24 w-24 flex-none items-center justify-center rounded-lg border-2 border-dashed border-primary bg-sky-500/20 text-sm font-medium">
- flex-none
- </div>
- </div>
-
- {/* Footer boundary marker */}
- <div className="bg-primary/30 p-4">FOOTER: {"words ".repeat(50)}</div>
- </>
-);
+const Home = () => <h1>Home</h1>;📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.