Skip to content

Commit c3fc470

Browse files
committed
install all tailwinds, start creating routes
1 parent 323c72f commit c3fc470

File tree

6 files changed

+320
-11
lines changed

6 files changed

+320
-11
lines changed

package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"react-dom": "^18.2.0",
1010
"react-router-dom": "^6.2.1",
1111
"react-scripts": "5.0.1",
12-
"react-toastify": "^8.2.0"
12+
"react-toastify": "^8.2.0",
13+
"tw-elements": "^1.0.0-alpha12"
1314
},
1415
"scripts": {
1516
"start": "react-scripts start",
@@ -34,5 +35,10 @@
3435
"last 1 firefox version",
3536
"last 1 safari version"
3637
]
38+
},
39+
"devDependencies": {
40+
"autoprefixer": "^10.4.13",
41+
"postcss": "^8.4.19",
42+
"tailwindcss": "^3.2.4"
3743
}
3844
}

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

src/index.css

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
14
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");
25

36
* {
@@ -137,9 +140,9 @@ body {
137140

138141
@keyframes animate {
139142
0% {
140-
transform: rotate(0deg);
143+
transform: rotate(0deg);
141144
}
142145
100% {
143-
transform: rotate(360deg);
146+
transform: rotate(360deg);
144147
}
145-
}
148+
}

src/router/AppRouter.jsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
import React from "react";
2+
import { BrowserRouter, Route, Routes } from "react-router-dom";
3+
import Main from "../pages/Main";
24

35
const AppRouter = () => {
4-
return <div>AppRouter</div>;
6+
return (
7+
<BrowserRouter>
8+
<Routes>
9+
<Route path="/" element={<Main />} />
10+
</Routes>
11+
</BrowserRouter>
12+
);
513
};
614

715
export default AppRouter;

tailwind.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: [
4+
"./src/**/*.{js,jsx,ts,tsx}",
5+
"./node_modules/tw-elements/dist/js/**/*.js",
6+
],
7+
theme: {
8+
extend: {},
9+
},
10+
plugins: [require("tw-elements/dist/plugin")],
11+
};

0 commit comments

Comments
 (0)