기본 콘텐츠로 건너뛰기

NextJS 사용법

 

# Node 설치

$ brew install node

# Next App 설치

$ npm install -g create-next-app

# my-app 만들기

$ npx create-next-app@latest my-app

# my-app 실행

$ npm run dev

# TailwindCSS 설치

$ yarn add -D tailwindcss@latest postcss@latest autoprefixer@latest

$ npx tailwindcss init -p

$ yarn add @heroicons/react

end

이 블로그의 인기 게시물

Grid 정렬

  .container { display : grid ; gap : 22px ; width : 1000px ; grid-template-columns : repeat ( auto-fit , 150px ); margin : auto ; justify-content : center ; } .container {      display : grid ; gap : 22px ; grid-template-columns : repeat ( auto-fit , minmax ( 250px , 1fr )); }

Python 변수

지역 변수 a 전역 변수 밖에서 선언한 변수를 사용할 때 앞에 global 을 붙여준다     global a