feat: 优化导航栏布局,改进股票搜索结果展示为响应式网格,并更新Gemini模型选项。
This commit is contained in:
parent
cba066c155
commit
bb61028007
@ -73,8 +73,8 @@ export default function ConfigPage() {
|
|||||||
>
|
>
|
||||||
<option value="gemini-2.0-flash">Gemini 2.0 Flash</option>
|
<option value="gemini-2.0-flash">Gemini 2.0 Flash</option>
|
||||||
<option value="gemini-2.5-flash">Gemini 2.5 Flash</option>
|
<option value="gemini-2.5-flash">Gemini 2.5 Flash</option>
|
||||||
<option value="gemini-3-flash">Gemini 3 Flash</option>
|
<option value="gemini-3-flash-preview">Gemini 3 Flash Preview</option>
|
||||||
<option value="gemini-3-pro">Gemini 3 Pro</option>
|
<option value="gemini-3-pro-preview">Gemini 3 Pro Preview</option>
|
||||||
<option value="custom">自定义模型...</option>
|
<option value="custom">自定义模型...</option>
|
||||||
</select>
|
</select>
|
||||||
<Button onClick={() => handleSave("AI_MODEL", config["AI_MODEL"])}>保存</Button>
|
<Button onClick={() => handleSave("AI_MODEL", config["AI_MODEL"])}>保存</Button>
|
||||||
|
|||||||
@ -7,7 +7,7 @@ export default function Home() {
|
|||||||
<div className="flex flex-col gap-4">
|
<div className="flex flex-col gap-4">
|
||||||
<h1 className="text-3xl font-bold tracking-tight">股票分析</h1>
|
<h1 className="text-3xl font-bold tracking-tight">股票分析</h1>
|
||||||
<p className="text-muted-foreground">
|
<p className="text-muted-foreground">
|
||||||
输入公司名称或股票代码,开始全面的AI驱动的分析。
|
输入公司名称或股票代码,开始全面的AI驱动的分析。支持中国、香港、美国、日本的公司分析。
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,8 @@ import { MonitorPlay } from "lucide-react"
|
|||||||
|
|
||||||
export function NavHeader() {
|
export function NavHeader() {
|
||||||
return (
|
return (
|
||||||
<header className="flex h-14 items-center gap-4 border-b bg-muted/40 px-6 lg:h-[60px]">
|
<header className="border-b bg-muted/40">
|
||||||
|
<div className="flex h-14 items-center gap-4 px-6 lg:h-[60px] max-w-7xl mx-auto">
|
||||||
<Link className="flex items-center gap-2 font-semibold" href="/">
|
<Link className="flex items-center gap-2 font-semibold" href="/">
|
||||||
<MonitorPlay className="h-6 w-6" />
|
<MonitorPlay className="h-6 w-6" />
|
||||||
<span className="">股票分析 AI</span>
|
<span className="">股票分析 AI</span>
|
||||||
@ -18,6 +19,7 @@ export function NavHeader() {
|
|||||||
配置
|
配置
|
||||||
</Link>
|
</Link>
|
||||||
</nav>
|
</nav>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,20 +68,20 @@ export function SearchStock() {
|
|||||||
{results.length > 1 && (
|
{results.length > 1 && (
|
||||||
<div className="text-sm text-muted-foreground">找到 {results.length} 个结果,请选择:</div>
|
<div className="text-sm text-muted-foreground">找到 {results.length} 个结果,请选择:</div>
|
||||||
)}
|
)}
|
||||||
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||||
{results.map((result, index) => (
|
{results.map((result, index) => (
|
||||||
<div key={index} className="bg-muted p-4 rounded-md space-y-2 border hover:border-primary transition-colors">
|
<div key={index} className="bg-muted p-3 rounded-md space-y-2 border hover:border-primary transition-colors">
|
||||||
<div className="font-medium text-lg">{result.company_name}</div>
|
<div className="font-medium">{result.company_name}</div>
|
||||||
<div className="text-sm text-muted-foreground">
|
<div className="text-xs text-muted-foreground">
|
||||||
市场: {result.market} | 代码: {result.symbol}
|
{result.market} | {result.symbol}
|
||||||
</div>
|
</div>
|
||||||
<div className="pt-2">
|
<Button onClick={() => handleAnalyze(result)} disabled={loading} className="w-full" size="sm">
|
||||||
<Button onClick={() => handleAnalyze(result)} disabled={loading} className="w-full">
|
|
||||||
{loading ? "正在启动分析..." : "运行分析"}
|
{loading ? "正在启动分析..." : "运行分析"}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user