Skip to content

yukikitayama/webapp-nextjs-ts

Repository files navigation

Initial setup

Command

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.

Layout

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.

Flexbox

Next.js

Image

  • Fill an image with the aspect ration preserved by using position, fill, and object-fit

getStaticProps

Components

Navigation bar

React Markdown

MUI

File size

Initial state

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)

About

My web application (https://www.yukikitayama.com/) for expense, article and fitness, developed by Next.js, AWS, MongoDB, Redis, MUI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published