- Next.js
- MUI
- Font
npm run dev
runs the development server.
npm run build
builds the production application in the .next
folder
npm run start
starts a Node.js server which serves both statically generated and server-side rendered pages.
Every page has a nevigation at the top and a footer at the bottom.
In PC display, menu button appears in the nevigation. In mobile screen, the navigation has title and menu icon, and when click the icon, menu slides from the side to appear.
The footer contains the icons to social media such as LinkedIn, GitHub, Instagram.
- Fill an image with the aspect ration preserved by using
position
,fill
, andobject-fit
- SyntaxError: Unexpected token export when using NextJS
- Use
cjs
instead ofesm
- Use
Route (pages) Size First Load JS ┌ ○ / 4.32 kB 77.5 kB ├ └ css/ae0e3e027412e072.css 707 B ├ /_app 0 B 73.1 kB ├ ○ /404 181 B 73.3 kB └ λ /api/hello 0 B 73.1 kB
- First Load JS shared by all 73.4 kB ├ chunks/framework-8c5acb0054140387.js 45.4 kB ├ chunks/main-b482fffd82fa7e1c.js 26.7 kB ├ chunks/pages/_app-3893aca8cac41098.js 296 B ├ chunks/webpack-8fa1640cc84ba8fe.js 750 B └ css/ab44ce7add5c3d11.css 247 B
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps) ○ (Static) automatically rendered as static HTML (uses no initial props)