浏览代码

Added tailwind css

tags/Baseline_30082024_FRONTEND_UAT
MSI\User 1年前
父节点
当前提交
1713f365f9
共有 6 个文件被更改,包括 1114 次插入6 次删除
  1. +1083
    -4
      package-lock.json
  2. +3
    -0
      package.json
  3. +6
    -0
      postcss.config.js
  4. +3
    -0
      src/app/global.css
  5. +3
    -2
      src/components/DashboardPage/DashboardTabButton.tsx
  6. +16
    -0
      tailwind.config.js

+ 1083
- 4
package-lock.json
文件差异内容过多而无法显示
查看文件


+ 3
- 0
package.json 查看文件

@@ -31,11 +31,14 @@
"@types/node": "^20", "@types/node": "^20",
"@types/react": "^18", "@types/react": "^18",
"@types/react-dom": "^18", "@types/react-dom": "^18",
"autoprefixer": "^10.4.16",
"eslint": "^8", "eslint": "^8",
"eslint-config-next": "14.0.4", "eslint-config-next": "14.0.4",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.1", "eslint-plugin-prettier": "^5.0.1",
"postcss": "^8.4.33",
"prettier": "3.1.1", "prettier": "3.1.1",
"tailwindcss": "^3.4.1",
"typescript": "^5" "typescript": "^5"
} }
} }

+ 6
- 0
postcss.config.js 查看文件

@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

+ 3
- 0
src/app/global.css 查看文件

@@ -0,0 +1,3 @@

@tailwind components;
@tailwind utilities;

+ 3
- 2
src/components/DashboardPage/DashboardTabButton.tsx 查看文件

@@ -4,14 +4,15 @@ import Paper from "@mui/material/Paper";
import { TFunction } from "i18next"; import { TFunction } from "i18next";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import PageTitle from "../PageTitle/PageTitle"; import PageTitle from "../PageTitle/PageTitle";
import '../../app/global.css';


const DashboardTabButton: React.FC = () => { const DashboardTabButton: React.FC = () => {
const { t } = useTranslation("dashboard"); const { t } = useTranslation("dashboard");
return ( return (
<Grid item sm> <Grid item sm>
<div style={{marginLeft:20}}> <div style={{marginLeft:20}}>
<button style={{height:40,width:250,fontSize:18,borderTopLeftRadius:10,borderBottomLeftRadius:10,borderWidth:2,backgroundColor:"transparent"}}>Project Financial Summary</button>
<button style={{height:39,width:250,fontSize:18,borderTopWidth:2,borderBottomWidth:2,backgroundColor:"transparent"}}>Project Cash Flow</button>
<button className="rounded-l-lg" style={{height:40,width:250,fontSize:18}}>Project Financial Summary</button>
<button style={{height:39,width:250,fontSize:18}}>Project Cash Flow</button>
</div> </div>
</Grid> </Grid>
); );


+ 16
- 0
tailwind.config.js 查看文件

@@ -0,0 +1,16 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
// Or if using `src` directory:
"./src/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {},
},
plugins: [],
}


正在加载...
取消
保存