main
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-05-06 10:47:57 +02:00
parent d3a83bf901
commit 1f8f24fcf5
25 changed files with 5077 additions and 1423 deletions
@@ -25,6 +25,7 @@ import Link from "next/link";
import { DashboardCharts } from "@/components/dashboard/dashboard-charts";
import { RecentProjects } from "@/components/dashboard/recent-projects";
import { TweetImportCard } from "@/components/dashboard/tweet-import-card";
import { YoutubeImportCard } from "@/components/dashboard/youtube-import-card";
import { useDashboardStats, useCreditBalance } from "@/hooks/use-api";
const stagger = {
@@ -139,7 +140,7 @@ export default function DashboardPage() {
</p>
</div>
<Link
href="/dashboard/projects/new"
href="/dashboard/create-project"
className="btn-primary flex items-center gap-2 text-sm"
>
<Plus size={16} />
@@ -183,7 +184,7 @@ export default function DashboardPage() {
{/* ── Hızlı Eylemler ── */}
<motion.div variants={fadeUp} className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3">
<Link
href="/dashboard/projects/new"
href="/dashboard/create-project"
className="group card-surface p-4 flex items-center gap-4 hover:border-neutral-500/30"
>
<div className="w-11 h-11 rounded-xl bg-[var(--color-bg-inverted)] flex items-center justify-center shrink-0 shadow-lg group-hover:shadow-neutral-500/20 transition-shadow">
@@ -241,12 +242,17 @@ export default function DashboardPage() {
{/* ── Tweet Import + Grafikler ── */}
<motion.div variants={fadeUp} className="grid grid-cols-1 lg:grid-cols-5 gap-4">
<div id="tweet-import" className="lg:col-span-2">
<div id="tweet-import" className="lg:col-span-2 flex flex-col gap-4">
<TweetImportCard
onProjectCreated={(id) => {
window.location.href = `/dashboard/projects/${id}`;
}}
/>
<YoutubeImportCard
onProjectCreated={(id) => {
window.location.href = `/dashboard/projects/${id}`;
}}
/>
</div>
<div className="lg:col-span-3">
<DashboardCharts />