[CSS] Instagram UI Clone Header (Next.js + tailwind) 강의 메모


[CSS] Instagram UI Clone Header (Next.js + tailwind) 강의 메모

플젝 세팅 npx create-next-app ig-header cd ig-header npm install -D tailwindcss postcss autoprefixer npx tailwindcss init -p // tailwind 설정 /** @type {import('tailwindcss').Config} */ module.exports = { content: [ "./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}", ], theme: { extend: {}, }, plugins: [], } // global.css 에 추가 @tailwind base; @tailwind components; @tailwind utilities; // className에다 tailwind 써주면됨 <div className="shadow-sm border-b bg-white top-0 fixed w-full"> // 실행 n...


#CSS #tailwind

원문링크 : [CSS] Instagram UI Clone Header (Next.js + tailwind) 강의 메모