Created Navigation for desktop and mobile. Added some styles.#16
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a new responsive navigation system and updates global styling and font settings.
- Adds EB Garamond and Oswald fonts to Tailwind and Next.js font config, and wires them into the root layout
- Introduces
PrimaryNavigationandMobileMenucomponents for desktop and mobile nav with dynamic data fetching - Overhauls global CSS with design tokens (colors, typography, utility classes) and updates header to use the new nav components
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| web/tailwind.config.ts | Added oswald font family entry |
| web/app/layout.tsx | Injected font CSS variables into <html> and adjusted section padding |
| web/app/globals.css | Defined root CSS variables for colors, typography, and utilities |
| web/app/fonts.ts | Configured Google fonts (EB Garamond, Oswald) via next/font/google |
| web/app/components/PrimaryNavigation.tsx | New desktop nav component with dynamic fetch and link styling |
| web/app/components/MobileMenu.tsx | New mobile menu with toggle button, focus trap, and animations |
| web/app/components/Logo.tsx | Logo component rendering SVG and brand text |
| web/app/components/Header.tsx | Header updated to compose Logo, PrimaryNavigation, MobileMenu |
| web/app/api/navigation/primary/route.ts | API route added to fetch primary navigation data from Sanity |
Comments suppressed due to low confidence (1)
web/app/components/MobileMenu.tsx:9
- The
NavMenuItemtype andgetHreffunction are duplicated from PrimaryNavigation. Extract them into a shared module or utility to prevent drift and reduce duplication.
type NavMenuItem = {
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.