first commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import './globals.css';
|
||||
import './reference.css';
|
||||
import localFont from 'next/font/local';
|
||||
import { Header, Footer } from '../components/shell';
|
||||
import PageMotion from '../components/page-motion';
|
||||
import { getBranding, getBusinessInfo } from '../lib/meshkee-api';
|
||||
const iranyekan = localFont({
|
||||
src: [
|
||||
{path:'../public/fonts/iranyekanweblightfanum.woff',weight:'300',style:'normal'},
|
||||
{path:'../public/fonts/iranyekanwebboldfanum.woff',weight:'700',style:'normal'},
|
||||
],
|
||||
variable:'--font-iranyekan', display:'swap',
|
||||
});
|
||||
export async function generateMetadata(){const branding=await getBranding();return {metadataBase:new URL('https://sanazgoodarzi.ir'),title:{default:'گروه معماری ساناز گودرزی',template:'%s | گروه معماری ساناز گودرزی'},description:'طراحی معماری، دکوراسیون داخلی، سالنهای زیبایی، فضای سبز و نمای ساختمان؛ گروه معماری ساناز گودرزی.',icons:branding.faviconUrl?[{url:branding.faviconUrl}]:[{url:'/Logo.png'}]};}
|
||||
export default async function RootLayout({children}) {const [branding,business]=await Promise.all([getBranding(),getBusinessInfo()]);return <html lang="fa" dir="rtl" className={iranyekan.variable}><body>{business.schema?.enabled&&business.schema?.jsonLd&&<script type="application/ld+json" dangerouslySetInnerHTML={{__html:JSON.stringify(business.schema.jsonLd)}}/>}<a className="skip-link" href="#main">رفتن به محتوای اصلی</a><Header branding={branding}/><main id="main">{children}</main><PageMotion/><Footer branding={branding}/></body></html>;}
|
||||
Reference in New Issue
Block a user