diff --git a/src/components/StepItem.tsx b/src/components/StepItem.tsx new file mode 100644 index 0000000..40fd110 --- /dev/null +++ b/src/components/StepItem.tsx @@ -0,0 +1,20 @@ +export default function StepItem({ state = 0, text }: { state: 0 | 1 | 2; text: string }) { + return ( +
+
+
+
+

{text}

+
+ ); +} diff --git a/src/index.css b/src/index.css index 915a28f..0c1d2ad 100644 --- a/src/index.css +++ b/src/index.css @@ -17,6 +17,31 @@ height: calc(100vh - var(--tabBarHeight) - var(--navBarHeight)); background-color: #f5f6fa; } + .btn-contained { + display: flex; + justify-content: center; + align-items: center; + background-color: var(--primaryColor); + padding-left: 1rem; + padding-right: 1rem; + padding-top: 0.25rem; + padding-bottom: 0.25rem; + border-radius: 6px; + color: #fff; + } + .btn-outlined { + display: flex; + justify-content: center; + align-items: center; + background-color: #fff; + color:var(--primaryColor); + border: solid 1px var(--primaryColor); + padding-left: 1rem; + padding-right: 1rem; + padding-top: 0.25rem; + padding-bottom: 0.25rem; + border-radius: 6px; + } } body { margin: 0; @@ -25,6 +50,7 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + background-color: #fff; } code { diff --git a/src/pages/Measure.tsx b/src/pages/Measure.tsx index 82d1a59..c61c06a 100644 --- a/src/pages/Measure.tsx +++ b/src/pages/Measure.tsx @@ -1,10 +1,36 @@ import { NavBar } from 'antd-mobile'; +import StepItem from '../components/StepItem'; export default function Measure() { return (
- 测量 -
Measure
+ + 测量 + +
+
+
+
+ +
+

北京铁路局 /客运段/京沪线/左侧

+

修改

+
+ +
+
开始测量
+
保存
+
+ +
+ + + + + + +
+
); } diff --git a/tailwind.config.js b/tailwind.config.js index c0958ec..31958bc 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -4,6 +4,13 @@ module.exports = { "./src/**/*.{js,jsx,ts,tsx}", ], theme: { + colors: { + primary: "#3e63cb", + white: "#FFF", + title: "#646566", + text: "#333", + warn: "#f05a28", + }, extend: {}, }, plugins: [],