feat(ui): redesign interface with knolling pastel flat lay theme and larger card radius
This commit is contained in:
+708
-168
File diff suppressed because it is too large
Load Diff
@@ -48,14 +48,21 @@ export default function UsageChart({
|
|||||||
>
|
>
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id={gradientId} x1="0" y1="0" x2="0" y2="1">
|
<linearGradient id={gradientId} x1="0" y1="0" x2="0" y2="1">
|
||||||
<stop offset="0" stopColor="#5ee7f7" stopOpacity={0.35} />
|
<stop offset="0%" stopColor="#3b82a6" stopOpacity={0.35} />
|
||||||
<stop offset="1" stopColor="#5ee7f7" stopOpacity={0} />
|
<stop offset="70%" stopColor="#6b61a6" stopOpacity={0.08} />
|
||||||
|
<stop offset="100%" stopColor="#6b61a6" stopOpacity={0} />
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</defs>
|
</defs>
|
||||||
<CartesianGrid stroke="var(--grid)" vertical={false} />
|
<CartesianGrid
|
||||||
|
stroke="var(--grid)"
|
||||||
|
strokeDasharray="3 3"
|
||||||
|
vertical={false}
|
||||||
|
/>
|
||||||
<XAxis
|
<XAxis
|
||||||
dataKey="date"
|
dataKey="date"
|
||||||
stroke="var(--muted)"
|
stroke="var(--muted)"
|
||||||
|
tickLine={false}
|
||||||
|
axisLine={{ stroke: "var(--border)" }}
|
||||||
tickFormatter={
|
tickFormatter={
|
||||||
compact ? (date: string) => date.slice(5) : undefined
|
compact ? (date: string) => date.slice(5) : undefined
|
||||||
}
|
}
|
||||||
@@ -66,6 +73,8 @@ export default function UsageChart({
|
|||||||
tickCount={compact ? 4 : 5}
|
tickCount={compact ? 4 : 5}
|
||||||
tickFormatter={compactAxis}
|
tickFormatter={compactAxis}
|
||||||
stroke="var(--muted)"
|
stroke="var(--muted)"
|
||||||
|
tickLine={false}
|
||||||
|
axisLine={false}
|
||||||
/>
|
/>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
formatter={(value) => [
|
formatter={(value) => [
|
||||||
@@ -75,15 +84,33 @@ export default function UsageChart({
|
|||||||
contentStyle={{
|
contentStyle={{
|
||||||
background: "var(--panel)",
|
background: "var(--panel)",
|
||||||
border: "1px solid var(--border)",
|
border: "1px solid var(--border)",
|
||||||
borderRadius: 12,
|
borderRadius: 8,
|
||||||
|
boxShadow: "var(--shadow-md)",
|
||||||
|
padding: "8px 12px",
|
||||||
|
color: "var(--text)",
|
||||||
|
}}
|
||||||
|
labelStyle={{
|
||||||
|
fontWeight: 600,
|
||||||
|
color: "var(--muted)",
|
||||||
|
marginBottom: 4,
|
||||||
|
}}
|
||||||
|
itemStyle={{
|
||||||
|
color: "var(--accent)",
|
||||||
|
fontWeight: 650,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Area
|
<Area
|
||||||
type="monotone"
|
type="monotone"
|
||||||
dataKey="totalTokens"
|
dataKey="totalTokens"
|
||||||
stroke="#4dd8ed"
|
stroke="#3b82a6"
|
||||||
fill={`url(#${gradientId})`}
|
fill={`url(#${gradientId})`}
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
activeDot={{
|
||||||
|
r: 5,
|
||||||
|
fill: "#3b82a6",
|
||||||
|
stroke: "var(--panel)",
|
||||||
|
strokeWidth: 2,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</AreaChart>
|
</AreaChart>
|
||||||
</ResponsiveContainer>
|
</ResponsiveContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user