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.5-flash">Gemini 2.5 Flash</option>
|
||||
<option value="gemini-3-flash">Gemini 3 Flash</option>
|
||||
<option value="gemini-3-pro">Gemini 3 Pro</option>
|
||||
<option value="gemini-3-flash-preview">Gemini 3 Flash Preview</option>
|
||||
<option value="gemini-3-pro-preview">Gemini 3 Pro Preview</option>
|
||||
<option value="custom">自定义模型...</option>
|
||||
</select>
|
||||
<Button onClick={() => handleSave("AI_MODEL", config["AI_MODEL"])}>保存</Button>
|
||||
|
||||
@ -7,7 +7,7 @@ export default function Home() {
|
||||
<div className="flex flex-col gap-4">
|
||||
<h1 className="text-3xl font-bold tracking-tight">股票分析</h1>
|
||||
<p className="text-muted-foreground">
|
||||
输入公司名称或股票代码,开始全面的AI驱动的分析。
|
||||
输入公司名称或股票代码,开始全面的AI驱动的分析。支持中国、香港、美国、日本的公司分析。
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@ -5,19 +5,21 @@ import { MonitorPlay } from "lucide-react"
|
||||
|
||||
export function NavHeader() {
|
||||
return (
|
||||
<header className="flex h-14 items-center gap-4 border-b bg-muted/40 px-6 lg:h-[60px]">
|
||||
<Link className="flex items-center gap-2 font-semibold" href="/">
|
||||
<MonitorPlay className="h-6 w-6" />
|
||||
<span className="">股票分析 AI</span>
|
||||
</Link>
|
||||
<nav className="ml-auto flex items-center gap-4 sm:gap-6">
|
||||
<Link className="text-sm font-medium hover:underline underline-offset-4" href="/">
|
||||
主页
|
||||
<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="/">
|
||||
<MonitorPlay className="h-6 w-6" />
|
||||
<span className="">股票分析 AI</span>
|
||||
</Link>
|
||||
<Link className="text-sm font-medium hover:underline underline-offset-4" href="/config">
|
||||
配置
|
||||
</Link>
|
||||
</nav>
|
||||
<nav className="ml-auto flex items-center gap-4 sm:gap-6">
|
||||
<Link className="text-sm font-medium hover:underline underline-offset-4" href="/">
|
||||
主页
|
||||
</Link>
|
||||
<Link className="text-sm font-medium hover:underline underline-offset-4" href="/config">
|
||||
配置
|
||||
</Link>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
|
||||
@ -68,19 +68,19 @@ export function SearchStock() {
|
||||
{results.length > 1 && (
|
||||
<div className="text-sm text-muted-foreground">找到 {results.length} 个结果,请选择:</div>
|
||||
)}
|
||||
{results.map((result, index) => (
|
||||
<div key={index} className="bg-muted p-4 rounded-md space-y-2 border hover:border-primary transition-colors">
|
||||
<div className="font-medium text-lg">{result.company_name}</div>
|
||||
<div className="text-sm text-muted-foreground">
|
||||
市场: {result.market} | 代码: {result.symbol}
|
||||
</div>
|
||||
<div className="pt-2">
|
||||
<Button onClick={() => handleAnalyze(result)} disabled={loading} className="w-full">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||
{results.map((result, index) => (
|
||||
<div key={index} className="bg-muted p-3 rounded-md space-y-2 border hover:border-primary transition-colors">
|
||||
<div className="font-medium">{result.company_name}</div>
|
||||
<div className="text-xs text-muted-foreground">
|
||||
{result.market} | {result.symbol}
|
||||
</div>
|
||||
<Button onClick={() => handleAnalyze(result)} disabled={loading} className="w-full" size="sm">
|
||||
{loading ? "正在启动分析..." : "运行分析"}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</CardContent>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user