Add Toolbox promo card to student dashboard (Мои курсы)
Entry point into /tools alongside courses, per gate #3 decision. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { redirect } from "next/navigation";
|
|||||||
import { prisma } from "@/lib/prisma";
|
import { prisma } from "@/lib/prisma";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { ArchetypeBanner } from "@/components/student/archetype-banner";
|
import { ArchetypeBanner } from "@/components/student/archetype-banner";
|
||||||
|
import { ToolboxPromoCard } from "@/components/tools/ToolboxPromoCard";
|
||||||
|
|
||||||
// Продаваемая линейка курсов → лендинг продукта. Курсы из этого списка,
|
// Продаваемая линейка курсов → лендинг продукта. Курсы из этого списка,
|
||||||
// которых нет у студента, показываются на дашборде заблюренными карточками
|
// которых нет у студента, показываются на дашборде заблюренными карточками
|
||||||
@@ -167,6 +168,10 @@ export default async function StudentDashboard() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
<div className="mt-8">
|
||||||
|
<ToolboxPromoCard />
|
||||||
|
</div>
|
||||||
|
|
||||||
{locked.length > 0 && (
|
{locked.length > 0 && (
|
||||||
<div className="mt-10">
|
<div className="mt-10">
|
||||||
<p className="text-xs font-bold uppercase tracking-widest mb-3" style={{ color: "var(--muted-foreground)" }}>
|
<p className="text-xs font-bold uppercase tracking-widest mb-3" style={{ color: "var(--muted-foreground)" }}>
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import Link from "next/link";
|
||||||
|
import { Wrench } from "lucide-react";
|
||||||
|
|
||||||
|
// Промо-карточка Toolbox для раздела «Мои курсы» — точка входа в /tools.
|
||||||
|
export function ToolboxPromoCard() {
|
||||||
|
return (
|
||||||
|
<Link
|
||||||
|
href="/tools"
|
||||||
|
className="card-aubade p-5 flex items-center gap-4 no-underline"
|
||||||
|
style={{ background: "var(--accent)" }}
|
||||||
|
>
|
||||||
|
<Wrench size={28} style={{ color: "var(--foreground)", flexShrink: 0 }} />
|
||||||
|
<div className="flex-1">
|
||||||
|
<h2 className="font-bold text-lg leading-tight" style={{ color: "var(--foreground)" }}>
|
||||||
|
Инструменты Obsidian
|
||||||
|
</h2>
|
||||||
|
<p className="text-sm" style={{ color: "var(--foreground)" }}>
|
||||||
|
Генераторы синтаксиса: callout-CSS, YAML-frontmatter, темы, Style Settings.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<span className="text-sm font-bold whitespace-nowrap" style={{ color: "var(--foreground)" }}>
|
||||||
|
Открыть →
|
||||||
|
</span>
|
||||||
|
</Link>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user