Add responsive dark sidebar UI with clone-starters, styles and navigation JS#1
Add responsive dark sidebar UI with clone-starters, styles and navigation JS#1Sami20178 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 29679e25d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| navButtons.forEach((item) => item.classList.remove('active')); | ||
| button.classList.add('active'); |
There was a problem hiding this comment.
Avoid activating nav items with no matching panel
The click handler marks every .nav-item as active before verifying that a corresponding content panel exists, so clicking entries like overview, chat, or calc (which currently have no data-panel) leaves the previous panel visible while highlighting a different nav item. This creates a broken navigation state where sidebar and content are out of sync for most menu options.
Useful? React with 👍 / 👎.
Motivation
Description
index.htmlcontaining a responsive sidebar layout, profile/stats cards, navigation, and content panels for the clone starters.styles.cssimplementing a dark/dimmed theme, sidebar styling, responsive behavior and panel styling.script.jswith simple DOM navigation logic (showPanel) that toggles.hiddenpanels and updates active navigation states.README.mdwith a short project description and start instructions referencingindex.html.Testing
Codex Task