Use local fonts and API primary phone across the site.
Serve Iran Yekan and Oswald from public/fonts, drive contact numbers from business-info phoneNumbers, and tighten the products mega menu with two-column lists. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
d249d958eb
commit
b36c07e28f
@@ -1,6 +1,7 @@
|
||||
import { Footer } from "@/components/Footer";
|
||||
import { HeaderContainer } from "@/components/HeaderContainer";
|
||||
import { PageBanner } from "@/components/PageBanner";
|
||||
import { getPrimaryPhoneNumber } from "@/lib/api/business";
|
||||
|
||||
type SiteShellProps = {
|
||||
children: React.ReactNode;
|
||||
@@ -12,11 +13,13 @@ type SiteShellProps = {
|
||||
};
|
||||
};
|
||||
|
||||
export function SiteShell({
|
||||
export async function SiteShell({
|
||||
children,
|
||||
solidHeader = true,
|
||||
banner,
|
||||
}: SiteShellProps) {
|
||||
const phone = await getPrimaryPhoneNumber();
|
||||
|
||||
return (
|
||||
<>
|
||||
<HeaderContainer forceSolid={solidHeader} />
|
||||
@@ -30,7 +33,7 @@ export function SiteShell({
|
||||
) : null}
|
||||
{children}
|
||||
</main>
|
||||
<Footer />
|
||||
<Footer phone={phone} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user