pref: 移除 useColorModeValue

UI调整
This commit is contained in:
zdl
2025-12-09 19:26:52 +08:00
parent 4f38505a80
commit 9423094af2
6 changed files with 44 additions and 43 deletions

View File

@@ -38,6 +38,8 @@ const SearchBar = ({
onChange={(e) => onInputChange(e.target.value)}
onKeyPress={onKeyPress}
borderRadius="md"
color="white"
_placeholder={{ color: 'whiteAlpha.600' }}
_focus={{
borderColor: 'blue.500',
boxShadow: '0 0 0 1px #3182ce',
@@ -45,10 +47,14 @@ const SearchBar = ({
/>
</InputGroup>
<Button
colorScheme="blue"
size="lg"
onClick={onSearch}
leftIcon={<SearchIcon />}
bg="#1A202C"
color="#C9A961"
borderWidth="1px"
borderColor="#C9A961"
_hover={{ bg: '#1a1a1a' }}
>
查询
</Button>

View File

@@ -52,8 +52,8 @@ const CompanyHeader = ({
<HStack justify="space-between" align="center">
{/* 标题区域 */}
<VStack align="start" spacing={1}>
<Heading size="lg">个股详情</Heading>
<Text color="gray.600" fontSize="sm">
<Heading size="lg" color="white">个股详情</Heading>
<Text color="white" fontSize="sm">
查看股票实时行情财务数据和盈利预测
</Text>
</VStack>
@@ -76,16 +76,6 @@ const CompanyHeader = ({
/>
</HStack>
</HStack>
{/* 当前股票信息 */}
<HStack mt={4} spacing={4}>
<Badge colorScheme="blue" fontSize="md" px={3} py={1}>
股票代码: {stockCode}
</Badge>
<Text fontSize="sm" color="gray.600">
更新时间: {new Date().toLocaleString()}
</Text>
</HStack>
</CardBody>
</Card>
);