File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ import { HiveInnerLayout } from '../../components/hive-layout/hive-inner-layout' ;
2+ import '@theguild/components/style.css' ;
3+
4+ export default function RootLayout ( { children } : { children : React . ReactNode } ) {
5+ return < HiveInnerLayout isLanding = { false } > { children } </ HiveInnerLayout > ;
6+ }
Original file line number Diff line number Diff line change 1+ import { HiveInnerLayout } from '../../components/hive-layout/hive-inner-layout' ;
2+ import '@theguild/components/style.css' ;
3+
4+ export default function RootLayout ( { children } : { children : React . ReactNode } ) {
5+ return < HiveInnerLayout isLanding > { children } </ HiveInnerLayout > ;
6+ }
Original file line number Diff line number Diff line change 1+ import localFont from 'next/font/local' ;
2+ import { PRODUCTS } from '@theguild/components' ;
3+ import { getDefaultMetadata } from '@theguild/components/server' ;
4+ import { HiveOuterLayout } from '../components/hive-layout/hive-outer-layout' ;
5+ import '@theguild/components/style.css' ;
6+
7+ export const metadata = getDefaultMetadata ( {
8+ productName : PRODUCTS . MESH . name ,
9+ websiteName : PRODUCTS . MESH . name ,
10+ description : 'A fully-featured GraphQL gateway framework' ,
11+ } ) ;
12+
13+ const neueMontreal = localFont ( {
14+ src : [
15+ { path : '../fonts/PPNeueMontreal-Regular.woff2' , weight : '400' } ,
16+ { path : '../fonts/PPNeueMontreal-Medium.woff2' , weight : '500' } ,
17+ { path : '../fonts/PPNeueMontreal-Medium.woff2' , weight : '600' } ,
18+ ] ,
19+ } ) ;
20+
21+ export default function RootLayout ( { children } : { children : React . ReactNode } ) {
22+ return < HiveOuterLayout font = { neueMontreal } > { children } </ HiveOuterLayout > ;
23+ }
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export interface HiveOuterLayoutProps {
77 font : NextFont ;
88}
99
10+ // We'll promote this to Components if the reviewers (probably Dima) like the idea.
1011export function HiveOuterLayout ( { children, font } : HiveOuterLayoutProps ) {
1112 return (
1213 < html
You can’t perform that action at this time.
0 commit comments