feat (page): add pages for the social media and the finance
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import StatCard from "@/components/StatCard";
|
||||
import { DollarSign } from "lucide-react";
|
||||
|
||||
export default function FinancesPage() {
|
||||
return (
|
||||
<div>
|
||||
<div className="flex items-center gap-3 mb-8">
|
||||
<div className="p-2 rounded-sm bg-yellow-500/10 border border-yellow-500/20">
|
||||
<DollarSign size={18} className="text-yellow-400" />
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-[9px] font-mono tracking-[0.3em] text-yellow-400/50 uppercase mb-0.5">Revenus</div>
|
||||
<h1 className="text-2xl font-black tracking-widest text-white uppercase">Finances</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-2 xl:grid-cols-4 gap-4 mb-8">
|
||||
<StatCard label="Revenus du mois" value="—" sub="Aucune donnée" accent="gold" />
|
||||
<StatCard label="Revenus totaux" value="—" sub="Aucune donnée" accent="gold" />
|
||||
<StatCard label="Donations" value="—" sub="Aucune donnée" accent="gold" />
|
||||
<StatCard label="Abonnements" value="—" sub="Aucune donnée" accent="gold" />
|
||||
</div>
|
||||
|
||||
<div className="bg-[#0d1210] border border-[#1a2a1a] rounded-sm p-8 flex flex-col items-center justify-center gap-3 min-h-[200px]">
|
||||
<DollarSign size={32} className="text-yellow-400/20" />
|
||||
<p className="text-[#3a5a3a] font-mono text-xs tracking-widest text-center">
|
||||
AUCUNE DONNÉE FINANCIÈRE DISPONIBLE<br />POUR LE MOMENT
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import StatCard from "@/components/StatCard";
|
||||
import { Camera } from "lucide-react";
|
||||
|
||||
export default function InstagramPage() {
|
||||
return (
|
||||
<div>
|
||||
<div className="flex items-center gap-3 mb-8">
|
||||
<div className="p-2 rounded-sm bg-orange-500/10 border border-orange-500/20">
|
||||
<Camera size={18} className="text-orange-400" />
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-[9px] font-mono tracking-[0.3em] text-orange-400/50 uppercase mb-0.5">Plateforme</div>
|
||||
<h1 className="text-2xl font-black tracking-widest text-white uppercase">Instagram</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-2 xl:grid-cols-4 gap-4 mb-8">
|
||||
<StatCard label="Abonnés" value="—" sub="Aucune donnée" accent="gold" />
|
||||
<StatCard label="Likes totaux" value="—" sub="Aucune donnée" accent="gold" />
|
||||
<StatCard label="Posts publiés" value="—" sub="Aucune donnée" accent="gold" />
|
||||
<StatCard label="Portée moy." value="—" sub="Aucune donnée" accent="gold" />
|
||||
</div>
|
||||
|
||||
<div className="bg-[#0d1210] border border-[#1a2a1a] rounded-sm p-8 flex flex-col items-center justify-center gap-3 min-h-[200px]">
|
||||
<Camera size={32} className="text-orange-400/20" />
|
||||
<p className="text-[#3a5a3a] font-mono text-xs tracking-widest text-center">
|
||||
CONNECTEZ VOTRE COMPTE INSTAGRAM<br />POUR AFFICHER VOS STATISTIQUES
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import StatCard from "@/components/StatCard";
|
||||
import { Music2 } from "lucide-react";
|
||||
|
||||
export default function TikTokPage() {
|
||||
return (
|
||||
<div>
|
||||
<div className="flex items-center gap-3 mb-8">
|
||||
<div className="p-2 rounded-sm bg-pink-500/10 border border-pink-500/20">
|
||||
<Music2 size={18} className="text-pink-400" />
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-[9px] font-mono tracking-[0.3em] text-pink-400/50 uppercase mb-0.5">Plateforme</div>
|
||||
<h1 className="text-2xl font-black tracking-widest text-white uppercase">TikTok</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-2 xl:grid-cols-4 gap-4 mb-8">
|
||||
<StatCard label="Followers" value="—" sub="Aucune donnée" accent="red" />
|
||||
<StatCard label="Likes totaux" value="—" sub="Aucune donnée" accent="red" />
|
||||
<StatCard label="Vues totales" value="—" sub="Aucune donnée" accent="red" />
|
||||
<StatCard label="Vidéos publiées" value="—" sub="Aucune donnée" accent="red" />
|
||||
</div>
|
||||
|
||||
<div className="bg-[#0d1210] border border-[#1a2a1a] rounded-sm p-8 flex flex-col items-center justify-center gap-3 min-h-[200px]">
|
||||
<Music2 size={32} className="text-pink-400/20" />
|
||||
<p className="text-[#3a5a3a] font-mono text-xs tracking-widest text-center">
|
||||
CONNECTEZ VOTRE COMPTE TIKTOK<br />POUR AFFICHER VOS STATISTIQUES
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import StatCard from "@/components/StatCard";
|
||||
import { TwitchIcon } from "lucide-react";
|
||||
|
||||
export default function TwitchPage() {
|
||||
return (
|
||||
<div>
|
||||
<div className="flex items-center gap-3 mb-8">
|
||||
<div className="p-2 rounded-sm bg-purple-500/10 border border-purple-500/20">
|
||||
<TwitchIcon size={18} className="text-purple-400" />
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-[9px] font-mono tracking-[0.3em] text-purple-400/50 uppercase mb-0.5">Plateforme</div>
|
||||
<h1 className="text-2xl font-black tracking-widest text-white uppercase">Twitch</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-2 xl:grid-cols-4 gap-4 mb-8">
|
||||
<StatCard label="Followers" value="—" sub="Aucune donnée" accent="purple" />
|
||||
<StatCard label="Viewers moy." value="—" sub="Aucune donnée" accent="purple" />
|
||||
<StatCard label="Heures streamées" value="—" sub="Aucune donnée" accent="purple" />
|
||||
<StatCard label="Abonnés actifs" value="—" sub="Aucune donnée" accent="purple" />
|
||||
</div>
|
||||
|
||||
<div className="bg-[#0d1210] border border-[#1a2a1a] rounded-sm p-8 flex flex-col items-center justify-center gap-3 min-h-[200px]">
|
||||
<TwitchIcon size={32} className="text-purple-400/20" />
|
||||
<p className="text-[#3a5a3a] font-mono text-xs tracking-widest text-center">
|
||||
CONNECTEZ VOTRE COMPTE TWITCH<br />POUR AFFICHER VOS STATISTIQUES
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import StatCard from "@/components/StatCard";
|
||||
import { YoutubeIcon } from "lucide-react";
|
||||
|
||||
export default function YoutubePage() {
|
||||
return (
|
||||
<div>
|
||||
<div className="flex items-center gap-3 mb-8">
|
||||
<div className="p-2 rounded-sm bg-red-500/10 border border-red-500/20">
|
||||
<YoutubeIcon size={18} className="text-red-400" />
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-[9px] font-mono tracking-[0.3em] text-red-400/50 uppercase mb-0.5">Plateforme</div>
|
||||
<h1 className="text-2xl font-black tracking-widest text-white uppercase">YouTube</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-2 xl:grid-cols-4 gap-4 mb-8">
|
||||
<StatCard label="Abonnés" value="—" sub="Aucune donnée" accent="red" />
|
||||
<StatCard label="Vues totales" value="—" sub="Aucune donnée" accent="red" />
|
||||
<StatCard label="Vidéos publiées" value="—" sub="Aucune donnée" accent="red" />
|
||||
<StatCard label="Watch time (h)" value="—" sub="Aucune donnée" accent="red" />
|
||||
</div>
|
||||
|
||||
<div className="bg-[#0d1210] border border-[#1a2a1a] rounded-sm p-8 flex flex-col items-center justify-center gap-3 min-h-[200px]">
|
||||
<YoutubeIcon size={32} className="text-red-400/20" />
|
||||
<p className="text-[#3a5a3a] font-mono text-xs tracking-widest text-center">
|
||||
CONNECTEZ VOTRE COMPTE YOUTUBE<br />POUR AFFICHER VOS STATISTIQUES
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
50
prisma/migrations/20240101000000_init/migration.sql
Normal file
50
prisma/migrations/20240101000000_init/migration.sql
Normal file
@@ -0,0 +1,50 @@
|
||||
Loaded Prisma config from prisma.config.ts.
|
||||
|
||||
-- CreateSchema
|
||||
CREATE SCHEMA IF NOT EXISTS "public";
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "User" (
|
||||
"id" TEXT NOT NULL,
|
||||
"email" TEXT NOT NULL,
|
||||
"password" TEXT NOT NULL,
|
||||
"name" TEXT,
|
||||
"role" TEXT NOT NULL DEFAULT 'member',
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "User_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "TrackedAccount" (
|
||||
"id" TEXT NOT NULL,
|
||||
"platform" TEXT NOT NULL,
|
||||
"username" TEXT NOT NULL,
|
||||
"accountId" TEXT NOT NULL,
|
||||
"userId" TEXT NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "TrackedAccount_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "Snapshot" (
|
||||
"id" TEXT NOT NULL,
|
||||
"accountId" TEXT NOT NULL,
|
||||
"followers" INTEGER NOT NULL,
|
||||
"views" INTEGER NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "Snapshot_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "TrackedAccount" ADD CONSTRAINT "TrackedAccount_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Snapshot" ADD CONSTRAINT "Snapshot_accountId_fkey" FOREIGN KEY ("accountId") REFERENCES "TrackedAccount"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
Reference in New Issue
Block a user