-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
279 additions
and
129 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use client'; | ||
import dynamic from 'next/dynamic' | ||
|
||
export const NoSSRNav = dynamic(() => import('./app'), { ssr: false }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
import * as React from 'react' | ||
import { AppRouterCacheProvider } from '@mui/material-nextjs/v15-appRouter'; | ||
import { Metadata } from 'next' | ||
import { App } from 'src/app/app'; | ||
import GlobalStyle from 'src/styles/GlobalStyle' | ||
import { NoSSRNav } from './client' | ||
|
||
export const metadata: Metadata = { | ||
title: 'Wen Junhua', | ||
description: 'Jh123x Portfolio Website', | ||
manifest: '/manifest.json', | ||
} | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
export default function RootLayout({ children, }: { children: React.ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<GlobalStyle /> | ||
<body> | ||
<App children={children} /> | ||
<GlobalStyle /> | ||
<AppRouterCacheProvider | ||
options={{ | ||
key: 'css', | ||
enableCssLayer: true, | ||
}} | ||
> | ||
<NoSSRNav children={children} /> | ||
</AppRouterCacheProvider> | ||
</body> | ||
</html> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import styled from "styled-components"; | ||
|
||
export const MainLayout = styled.div` | ||
|