Skip to content

Commit

Permalink
feat: tailwind 및 formatter 설치
Browse files Browse the repository at this point in the history
  • Loading branch information
jwchoi-kr committed Dec 30, 2024
1 parent 19e79af commit 165be45
Show file tree
Hide file tree
Showing 11 changed files with 536 additions and 149 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"bracketSpacing": true,
"singleAttributePerLine": true,
"arrowParens": "always",
"endOfLine": "lf"
"endOfLine": "lf",
"plugins": ["prettier-plugin-tailwindcss"]
}
25 changes: 19 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,26 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Wafflestudio에서 진행하는 2024 WEMADE 프로젝트." />
<link rel="icon" type="image/svg+xml" href="https://file.wemade.com/homepage/favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<meta
name="description"
content="Wafflestudio에서 진행하는 2024 WEMADE 프로젝트."
/>
<link
rel="icon"
type="image/svg+xml"
href="https://file.wemade.com/homepage/favicon.ico"
/>
<title>Waffle-WEMADE</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<div id="root"></div>
<script
type="module"
src="/src/main.tsx"
></script>
</body>
</html>
</html>
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
},
"dependencies": {
"@tanstack/react-query": "^5.62.10",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react-dom": "^18.3.1",
"tailwindcss": "^3.4.17"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
Expand All @@ -33,6 +36,7 @@
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"react-router-dom": "^7.1.1",
"typescript": "~5.6.2",
"typescript-eslint": "^8.18.2",
Expand Down
6 changes: 6 additions & 0 deletions postcss.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
42 changes: 0 additions & 42 deletions src/App.css

This file was deleted.

15 changes: 0 additions & 15 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
import './App.css';
import wemadeLogo from './assets/images/wemade-logo-green.png';

function App() {
return (
<>
<div>
<a
href="https://www.wemade.com/"
target="_blank"
>
<img
src={wemadeLogo}
className="logo"
alt="wemade logo"
/>
</a>
</div>
<h1>WEMADE 프로젝트</h1>
</>
);
Expand Down
68 changes: 0 additions & 68 deletions src/index.css

This file was deleted.

1 change: 0 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';

import './index.css';
import App from './App.tsx';

createRoot(document.getElementById('root')!).render(
Expand Down
3 changes: 3 additions & 0 deletions src/styles/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
8 changes: 8 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,jsx,ts,tsx}'],
theme: {
extend: {},
},
plugins: [],
};
Loading

0 comments on commit 165be45

Please sign in to comment.