Footer Meshkee credit widget, fix carousel title row alignment/action button
- Footer bottom-right credit link now matches the badge used on other Meshkee storefronts (reference: safeteb.com) — logo + two-line label inside an animated corner-drawing border on hover, linking to https://meshkee.com. Added the shared credit-widget logo asset (public/images/meshkee-logo-white.png). - SectionTitle: title/action row uses items-center instead of items-end (was visibly offset once a carousel title could wrap or carry a caption); the action button ("مشاهده همه" etc.) is now styled like the site's other primary buttons (filled red, white text, rounded) instead of a plain text link. - Carousel English captions (SPECIAL SALE, TOP SELLING, FAVORITE SELL) moved back from a below-title "enSubtitle" line to the existing inline enTitle treatment, matching every other section heading's convention on the site. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
ab1b07ff28
commit
7a78adc7f3
@@ -11,8 +11,9 @@ import { productHref, type ProductGroup, type StaticImageWithUrl } from "@/lib/m
|
||||
// localized English field to pull a real translation from, and inventing
|
||||
// one would be fabricated data. `key` is real data and usually a readable
|
||||
// English slug (e.g. "top-selling"), so it's what gets formatted into the
|
||||
// English caption under the title. Skip it if the key has no letters at
|
||||
// all (e.g. it fell back to a bare numeric id).
|
||||
// English caption beside the title (same inline treatment as every other
|
||||
// section heading on the site, e.g. BlogCarousel's "LATEST BLOG"). Skip it
|
||||
// if the key has no letters at all (e.g. it fell back to a bare numeric id).
|
||||
function englishLabelFromKey(key: string): string | undefined {
|
||||
const label = key.replace(/[-_]+/g, " ").trim();
|
||||
return /[a-zA-Z]/.test(label) ? label.toUpperCase() : undefined;
|
||||
@@ -58,7 +59,7 @@ export function StoreSpecialCarousels({
|
||||
<div className="mx-auto max-w-7xl px-4">
|
||||
<SectionTitle
|
||||
title={group.title}
|
||||
enSubtitle={englishLabelFromKey(group.key)}
|
||||
enTitle={englishLabelFromKey(group.key)}
|
||||
action="مشاهده همه"
|
||||
actionHref={`/products?specialId=${group.id}`}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user