This commit is contained in:
Tony 2024-06-27 09:32:04 +08:00
commit 8cc270dc24
8 changed files with 80 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

View File

@ -2,4 +2,7 @@
background-color: #e8f8db;
color: #207c06;
border: 4px solid #7fcf5e;
}
.topBg{
background-image: linear-gradient(to bottom, #c6edb7 0%, #f5f6f5 100%)
}

View File

@ -1,7 +1,81 @@
import { View } from "@tarojs/components";
import { View,Image,Text } from "@tarojs/components";
import './index.scss'
import avatar from './assets/cardAvatar.png'
import triangle from './assets/triangle.png'
import share from './assets/share.png'
import circle from './assets/circle.png'
import growMain from './assets/grawMain.png'
import larvae from './assets/larvea.png'
const shareComponent=()=>{
return (
<View className="bg-[#e0f4d6] text-[green] flex justify-evenly items-center w-[130px] h-[50px] rounded-xl">
<Image src={share} className="w-[20px] h-[20px]" />
<View></View>
</View>
)
}
const adoptionCircle=()=>{
return (
<View className="fixed right-0 bottom-[18%]">
<Image src={circle} className="w-[80px] h-[80px]"/>
</View>
)
}
export default function Monitor() {
return (
<View>Monitor</View>
<View className="relative">
<View className="topBg w-full h-[180px] flex items-center p-[15px]">
<Image src={avatar} className="w-[140px] ml-[50px] h-[120px]"/>
<View className="ml-[20px]">
<View className="text-lg mb-[10px]">0908</View>
<View className="text-xs"><Text className="text-[green]">1</Text>,<Text className="text-[green]">3</Text></View>
</View>
</View>
<View className="bg-[#fff] ">
<View className="flex items-center p-[20px] px-[30px]">
<Text>2024</Text>
<Image src={triangle} className="w-[25px] h-[15px] ml-[10px]" />
</View>
<View className="w-full h-[5px] bg-[#f7f7f7]"></View>
<View className="flex justify-between p-[20px] px-[30px]">
<View>
<View className="text-[#fff] mb-[10px] flex items-center justify-center w-[60px] h-[60px] bg-[#5ec45f]">24</View>
<View>2024.06</View>
</View>
<View>
<View className="text-sm text-[#b3b3b3]"></View>
<View className="text-xl"></View>
</View>
{shareComponent()}
</View>
<View className="w-full flex relative justify-center mb-[20px]">
<Image src={growMain} className="w-[90%] h-[180px]"/>
<Image src={larvae} className="absolute w-[170px] h-[150px] left-[19%] top-[-10px]"/>
</View>
<View className="w-full h-[5px] bg-[#f7f7f7]"></View>
<View className="p-[20px] px-[30px]">
<View></View>
<View className="rounded-lg mt-[10px] w-full h-[80px] p-[20px] flex items-center bg-[#f5f5f5]">
<Text>3</Text>
</View>
</View>
<View className="p-[20px] px-[30px]">
<View></View>
<View className="rounded-lg text-sm mt-[10px] w-full p-[20px] bg-[#f5f5f5]">
<View>3+4258</View>
<View className="mt-[10px]">3.5+4.5168</View>
<View className="mt-[10px] mb-[10px]">4+5128</View>
<View>4.5+5.598</View>
</View>
</View>
<View className="p-[20px] px-[30px]">
<View></View>
<View className="rounded-lg mt-[10px] w-full h-[80px] p-[20px] flex items-center bg-[#f5f5f5]">
<Text>2024.09.01-2024.10.01</Text>
</View>
</View>
</View>
{adoptionCircle()}
</View>
)
}