Skip to content

Fix header/logo layout and load perfume sizes from Sanity#4

Merged
benazeem merged 1 commit into
mainfrom
fix/homepage-header-logo-sanity-sizes
Jul 6, 2026
Merged

Fix header/logo layout and load perfume sizes from Sanity#4
benazeem merged 1 commit into
mainfrom
fix/homepage-header-logo-sanity-sizes

Conversation

@benazeem

@benazeem benazeem commented Jul 6, 2026

Copy link
Copy Markdown
Owner

This PR tightens the header/logo presentation, removes the extra homepage spacing issue from other pages, and ensures perfume size variants are sourced from Sanity instead of relying on local fallbacks.

Summary by CodeRabbit

  • New Features

    • Added a new “Why Us” section on the home page and refreshed homepage, About, Shop, and Developer page messaging with updated marketing copy and layouts.
    • Added dedicated contact actions for email and WhatsApp on the Developer page.
  • Enhancements

    • Product and shop listings now carry size options through to product details and featured items.
    • Updated site branding with new logo presentation in the header and footer, plus improved button support for opening links in new tabs.

Copilot AI review requested due to automatic review settings July 6, 2026 13:41
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ms-signature Ready Ready Preview, Comment Jul 6, 2026 1:42pm

@benazeem
benazeem merged commit 0beeb8f into main Jul 6, 2026
3 of 4 checks passed
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3a649041-fb2f-45bf-b7db-1266c3d74f27

📥 Commits

Reviewing files that changed from the base of the PR and between 9f7e2ec and 335123e.

⛔ Files ignored due to path filters (2)
  • package-lock.json is excluded by !**/package-lock.json
  • public/MS_Signature_Logo.jpg is excluded by !**/*.jpg
📒 Files selected for processing (19)
  • app/about/page.tsx
  • app/developer/DeveloperCtas.tsx
  • app/developer/page.tsx
  • app/page.tsx
  • app/product/[slug]/page.tsx
  • app/shop/ShopClient.tsx
  • app/shop/page.tsx
  • components/home/BrandStory.tsx
  • components/home/FeaturedProducts.tsx
  • components/home/Hero.tsx
  • components/home/WhyChooseUs.tsx
  • components/layout/ClientLayout.tsx
  • components/layout/Footer.tsx
  • components/layout/Navbar.tsx
  • components/ui/Button.tsx
  • lib/constants.ts
  • public/Mohd_Azeem_Malik.webp
  • sanity/lib/client.ts
  • types/components.types.ts

📝 Walkthrough

Walkthrough

This PR refreshes marketing copy and layout across About, Home, Hero, BrandStory, and Shop pages; adds a WhyChooseUs section; propagates a sizes field through Sanity queries and product mappings; extracts developer contact CTAs into a DeveloperCtas component; updates Navbar/Footer logos; and extends Button/ButtonProps with target/rel.

Changes

Marketing content and layout updates

Layer / File(s) Summary
About page copy and restructure
app/about/page.tsx
Hero copy/spacing updated, values cards replaced with new set using cardDelayClasses, a new signature bullet section added with pointDelayClasses, and closing CTA line updated.
Home hero, brand story, WhyChooseUs
components/home/Hero.tsx, components/home/BrandStory.tsx, components/home/WhyChooseUs.tsx, app/page.tsx, app/shop/ShopClient.tsx
Hero tagline/headline/description/stats rewritten, BrandStory paragraphs replaced, new WhyChooseUs grid component added and wired into HomePage, and shop header copy updated.
Navbar/Footer/ClientLayout visuals
components/layout/Navbar.tsx, components/layout/Footer.tsx, components/layout/ClientLayout.tsx
Text logos replaced with next/image logos, cart/auth hooks removed from Navbar, studio wrapper switched to Tailwind classes, and a conditional home-route spacer added.

Product sizes data flow

Layer / File(s) Summary
Sizes field wiring
sanity/lib/client.ts, app/product/[slug]/page.tsx, app/shop/page.tsx, components/home/FeaturedProducts.tsx, lib/constants.ts
Sanity query projection extended with sizes[], product mappings default sizes to an empty array, and the hardcoded PERFUME_SIZES constant is removed.

Developer page CTA extraction and Button link attributes

Layer / File(s) Summary
DeveloperCtas component and wiring
app/developer/DeveloperCtas.tsx, app/developer/page.tsx
New DeveloperCtas component opens mailto/WhatsApp links; developer page swaps inline CTA markup for this component and updates hero image/height.
Button target/rel support
types/components.types.ts, components/ui/Button.tsx
ButtonProps gains target/rel, and Button forwards them to the rendered link.

Estimated code review effort: 2 (Simple) | ~15 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant DeveloperCtas
  participant Browser
  User->>DeveloperCtas: click Email or WhatsApp button
  DeveloperCtas->>Browser: window.open(mailto: or wa.me URL, "_blank", "noopener,noreferrer")
Loading

Possibly related PRs

  • benazeem/MS-Signature#1: Prior PR centralized ButtonProps/Button type wiring that this PR extends with target/rel support.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/homepage-header-logo-sanity-sizes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the storefront UI (header/footer/home/about/shop) and product data fetching so that perfume size variants are sourced from Sanity and surfaced throughout the app, while also tightening logo/header presentation and adjusting homepage layout.

Changes:

  • Fetch and propagate sizes from Sanity product documents (queries + page/component mappings).
  • Update header/footer branding to use the logo image and adjust homepage layout spacing.
  • Add a new “WhyChooseUs” homepage section and refresh marketing copy across multiple pages.

Reviewed changes

Copilot reviewed 18 out of 21 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
types/components.types.ts Extends ButtonProps to support target/rel for link-style buttons.
sanity/lib/client.ts Adds sizes[] selection to product GROQ queries (including featured).
lib/constants.ts Notes removal of local perfume-size fallback approach in favor of Sanity-defined sizes.
components/ui/Button.tsx Passes target/rel through when rendering a Link.
components/layout/Navbar.tsx Replaces text logo with next/image logo and simplifies navbar imports/structure.
components/layout/Footer.tsx Replaces text logo with next/image logo in the footer.
components/layout/ClientLayout.tsx Tweaks studio wrapper styling and adds a homepage-only spacer after the navbar.
components/home/WhyChooseUs.tsx New homepage “Why Choose Us” feature grid section.
components/home/Hero.tsx Updates hero headline, tagline, copy, and stats.
components/home/FeaturedProducts.tsx Ensures featured product mapping includes sizes.
components/home/BrandStory.tsx Refreshes brand story copy and minor formatting tweaks.
app/shop/ShopClient.tsx Updates shop page header title/subtitle copy.
app/shop/page.tsx Ensures shop product mapping includes sizes.
app/product/[slug]/page.tsx Ensures product page mapping includes sizes.
app/page.tsx Adds WhyChooseUs to the homepage composition.
app/developer/page.tsx Refactors developer page (local image, CTA extraction) and adjusts background element sizing.
app/developer/DeveloperCtas.tsx New client component for developer CTAs (Contact/WhatsApp).
app/about/page.tsx Significant about-page content/layout refresh, adds staggered animation-delay classes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/developer/page.tsx
<div className="pt-32 pb-20 overflow-hidden relative selection:bg-gold/30">
{/* Background Decorative Elements */}
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full h-[600px] bg-gold/3 blur-[120px] rounded-full pointer-events-none" />
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full h-150 bg-gold/3 blur-[120px] rounded-full pointer-events-none" />
Comment on lines +9 to +21
<Button
onClick={() =>
window.open(
"mailto:azeemkhandsari@gmail.com",
"_blank",
"noopener,noreferrer",
)
}
variant="primary"
className="gap-2"
>
<Mail size={16} /> Contact
</Button>
Comment on lines +22 to +34
<Button
onClick={() =>
window.open(
"https://wa.me/917895411144",
"_blank",
"noopener,noreferrer",
)
}
variant="outline"
className="gap-2"
>
<MessageCircle size={16} /> WhatsApp
</Button>
Comment on lines +42 to +49
<Image
src="/MS_Signature_Logo.jpg"
alt="MS Signature Logo"
width={120}
height={120}
className="w-auto h-12 sm:h-14 md:h-16 object-contain"
priority
/>
Comment on lines +56 to +57
<Link href="/" className="flex items-center gap-4 mb-6 group" aria-label="Home">
<Image src="/MS_Signature_Logo.jpg" alt="MS Signature Logo" width={140} height={40} className="object-contain" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants