Update Site source

This commit is contained in:
Meghdad committed 2026-10-12 23:20:56 +03:30
commit 9a4ce930c7
126 files changed
+25723

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
import Dashboard from '../dashboard';
import { requireChatGPTUser } from '../chatgpt-auth';
import { isAdmin } from '../../lib/server';
export const dynamic='force-dynamic';
export default async function Admin(){await requireChatGPTUser('/admin');if(!await isAdmin())return <main className="denied"><h1>دسترسی محدود است</h1><p>این حساب اجازهٔ مدیریت خزانه را ندارد.</p><a href="/">بازگشت به خزانه</a></main>;return <Dashboard adminMode/>;}
+14
View File
@@ -0,0 +1,14 @@
import { env } from 'cloudflare:workers';
import { isAdmin } from '../../../lib/server';
import { getChatGPTUser } from '../../chatgpt-auth';
import { parseLog, seed, identity } from '../../../lib/ledger.mjs';
export const dynamic='force-dynamic';
export async function POST(request:Request){
if(!await isAdmin())return Response.json({error:'فقط مدیر خزانه اجازهٔ ثبت لاگ دارد.'},{status:403});
if(request.headers.get('origin')!==new URL(request.url).origin)return Response.json({error:'درخواست مجاز نیست.'},{status:403});
if(Number(request.headers.get('content-length'))>1100000)return Response.json({error:'حجم لاگ بیش از حد مجاز است.'},{status:413});
let rows;try{const body=await request.json() as {log?:unknown};rows=parseLog(body.log);}catch(e){return Response.json({error:e instanceof Error?e.message:'لاگ معتبر نیست.'},{status:400});}
if(!env.DB)return Response.json({error:'پایگاه داده در دسترس نیست.'},{status:503});
const user=await getChatGPTUser();const baseline=new Set(seed.map(identity));const candidates=rows.filter(r=>!baseline.has(identity(r)));
try{const results=candidates.length?await env.DB.batch(candidates.map(r=>env.DB!.prepare('INSERT OR IGNORE INTO transactions (id,date,player,reason,amount,imported_at,imported_by) VALUES (?,?,?,?,?,?,?)').bind(r.id,r.date,r.player,r.reason,r.amount,new Date().toISOString(),user!.userId))):[];const added=results.reduce((n,r)=>n+(r.meta.changes||0),0);return Response.json({added,duplicates:rows.length-added,total:rows.length});}catch{return Response.json({error:'ذخیره انجام نشد؛ دوباره تلاش کنید.'},{status:503});}
}
+3
View File
@@ -0,0 +1,3 @@
import { readLedger, isAdmin } from '../../../lib/server';
export const dynamic='force-dynamic';
export async function GET(){try{return Response.json({rows:await readLedger(),admin:await isAdmin()},{headers:{'Cache-Control':'no-store'}});}catch{return Response.json({error:'بارگذاری خزانه ممکن نشد. دوباره تلاش کنید.'},{status:503});}}
+90
View File
@@ -0,0 +1,90 @@
import { headers } from "next/headers";
import { redirect } from "next/navigation";
export type ChatGPTUser = {
userId: string;
displayName: string;
email: string;
fullName: string | null;
};
const USER_ID_HEADER = "oai-authenticated-user-id";
const USER_EMAIL_HEADER = "oai-authenticated-user-email";
const USER_FULL_NAME_HEADER = "oai-authenticated-user-full-name";
const USER_FULL_NAME_ENCODING_HEADER =
"oai-authenticated-user-full-name-encoding";
const PERCENT_ENCODED_UTF8 = "percent-encoded-utf-8";
const SIGN_IN_PATH = "/signin-with-chatgpt";
const SIGN_OUT_PATH = "/signout-with-chatgpt";
const CALLBACK_PATH = "/callback";
export async function getChatGPTUser(): Promise<ChatGPTUser | null> {
const requestHeaders = await headers();
const userId = requestHeaders.get(USER_ID_HEADER);
const email = requestHeaders.get(USER_EMAIL_HEADER);
if (!userId || !email) return null;
const encodedFullName = requestHeaders.get(USER_FULL_NAME_HEADER);
const fullName =
encodedFullName &&
requestHeaders.get(USER_FULL_NAME_ENCODING_HEADER) === PERCENT_ENCODED_UTF8
? safeDecodeURIComponent(encodedFullName)
: null;
return {
userId,
displayName: fullName ?? email,
email,
fullName,
};
}
export async function requireChatGPTUser(
returnTo: string,
): Promise<ChatGPTUser> {
const user = await getChatGPTUser();
if (user) return user;
redirect(chatGPTSignInPath(returnTo));
}
export function chatGPTSignInPath(returnTo: string): string {
const safeReturnTo = safeRelativeReturnPath(returnTo);
return `${SIGN_IN_PATH}?return_to=${encodeURIComponent(safeReturnTo)}`;
}
export function chatGPTSignOutPath(returnTo = "/"): string {
const safeReturnTo = safeRelativeReturnPath(returnTo);
return `${SIGN_OUT_PATH}?return_to=${encodeURIComponent(safeReturnTo)}`;
}
function safeRelativeReturnPath(value: string): string {
if (!value.startsWith("/") || value.startsWith("//")) return "/";
let url: URL;
try {
url = new URL(value, "https://app.local");
} catch {
return "/";
}
if (url.origin !== "https://app.local") return "/";
if (isReservedAuthPath(url.pathname)) return "/";
return `${url.pathname}${url.search}${url.hash}`;
}
function isReservedAuthPath(pathname: string): boolean {
return (
pathname === SIGN_IN_PATH ||
pathname === SIGN_OUT_PATH ||
pathname === CALLBACK_PATH
);
}
function safeDecodeURIComponent(value: string): string | null {
try {
return decodeURIComponent(value);
} catch {
return null;
}
}
+28
View File
@@ -0,0 +1,28 @@
'use client';
import {useEffect,useState,useMemo} from 'react';
import {Shield,ArrowUpRight,ArrowDownLeft,Search,ChevronLeft,Trophy,Flame,Coins,History,Lock,Upload,CheckCircle2,AlertTriangle,X,RefreshCw,Copy} from 'lucide-react';
import {seed,summarize,parseLog,identity,minimum} from '../lib/ledger.mjs';
type Row={id:string;date:string;player:string;reason:string;amount:number};
const num=(n:number)=>n.toLocaleString('en-US');
function status(n:number){return n<0?'بدهکار':n<minimum?'نیازمند شارژ':'آمادهٔ نبرد';}
export default function Dashboard({adminMode=false}:{adminMode?:boolean}){
const [rows,setRows]=useState<Row[]>(seed as Row[]),[loading,setLoading]=useState(true),[error,setError]=useState(''),[query,setQuery]=useState(''),[tab,setTab]=useState('all'),[selected,setSelected]=useState<string|null>(null),[log,setLog]=useState(''),[message,setMessage]=useState(''),[saving,setSaving]=useState(false),[admin,setAdmin]=useState(false),[view,setView]=useState('leaderboard');
async function refresh(){setLoading(true);setError('');try{const r=await fetch('/api/ledger');const d=await r.json() as {error?:string;rows:Row[];admin:boolean};if(!r.ok)throw Error(d.error);setRows(d.rows);setAdmin(d.admin);}catch(e){setError(e instanceof Error?e.message:'ارتباط برقرار نشد.');}finally{setLoading(false);}}
useEffect(()=>{refresh();},[]);
const players=useMemo(()=>summarize(rows),[rows]);const low=players.filter(p=>p.balance<minimum);const total=players.reduce((s,p)=>s+p.balance,0);const deposits=rows.reduce((s,r)=>s+Math.max(r.amount,0),0);const withdrawals=rows.reduce((s,r)=>s+Math.max(-r.amount,0),0);
const filtered=players.filter(p=>p.name.toLowerCase().includes(query.toLowerCase())&&(tab!=='low'||p.balance<minimum));
useEffect(()=>{if(!selected)return;const onKey=(e:KeyboardEvent)=>{if(e.key==='Escape')setSelected(null);};document.addEventListener('keydown',onKey);return()=>document.removeEventListener('keydown',onKey);},[selected]);
const profile=players.find(p=>p.name.toLowerCase()===selected?.toLowerCase());
const preview=useMemo(()=>{if(!log.trim())return null;try{const parsed=parseLog(log);const ids=new Set(rows.map(identity));let fresh=0;for(const r of parsed){const id=identity(r);if(!ids.has(id)){fresh++;ids.add(id);}}return {total:parsed.length,fresh,duplicates:parsed.length-fresh,error:''};}catch(e){return {error:(e as Error).message,total:0,fresh:0,duplicates:0};}},[log,rows]);
async function importLog(){setSaving(true);setMessage('');try{const r=await fetch('/api/import',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({log})});const d=await r.json() as {error?:string;added:number;duplicates:number};if(!r.ok)throw Error(d.error);setMessage(`${d.added} تراکنش جدید ثبت شد؛ ${d.duplicates} رکورد تکراری کنار گذاشته شد.`);setLog('');await refresh();}catch(e){setMessage((e as Error).message);}finally{setSaving(false);}}
return <div className="shell"><aside className="sidebar"><a className="brand" href="/"><span className="brandmark"><Shield size={27}/></span><span dir="ltr">SIPHONED<small>GUILD TREASURY</small></span></a><div className="guild"><span className="guild-icon">S</span><div>خزانهٔ گیلد<small>Albion Online</small></div><span className="live-dot"/></div><div className="nav-label">میدان گیلد</div><button className={view==='leaderboard'?'nav active':'nav'} onClick={()=>setView('leaderboard')}><Trophy size={19}/> لیدربورد <ChevronLeft size={16}/></button><button className={view==='history'?'nav active':'nav'} onClick={()=>setView('history')}><History size={19}/> تاریخچهٔ خزانه</button><button className="nav" onClick={()=>{setTab('low');setView('leaderboard');}}><Flame size={19}/> نیازمند اقدام <span className="nav-count">{low.length}</span></button><div className="sidebar-bottom"><div className="pledge"><Shield size={22}/><p>قدرت گیلد، از سهم هر عضو شروع می‌شود.</p><small>هر Siphoned، یک قدم تا پیروزی</small></div><a className="nav" href="/admin"><Lock size={17}/> {admin?'پنل مدیریت':'ورود مدیر'} <ArrowUpRight size={16}/></a><span className="version">GUILD VAULT / V1.0</span></div></aside>
<main><header className="topbar"><div className="breadcrumb">گیلد <ChevronLeft size={13}/><strong>خزانهٔ Siphoned</strong></div><div className="topbar-actions"><span className="public-label"><span className="live-dot"/> نمای عمومی</span><a className="mobile-admin" href="/admin" aria-label="ورود مدیر"><Lock size={15}/></a></div></header><div className="content"><section className="hero"><div><div className="eyebrow"><span/> THE GUILD'S LIFEBLOOD</div><h1>خزانه پُر. <em>گیلد قدرتمند.</em></h1><p>سهمت را ببین، جایگاهت را بشناس و برای نبرد بعدی آماده باش.</p><div className="hero-tags"><span><Shield size={14}/> شفاف برای همهٔ اعضا</span><span><RefreshCw size={14}/> به‌روزرسانی با لاگ بازی</span></div></div><div className="artifact" aria-hidden="true"><div className="orbit orbit-one"/><div className="orbit orbit-two"/><div className="bottle"><div className="bottle-cap"/><div className="bottle-neck"/><div className="bottle-body"><div className="liquid"/><Flame size={43}/></div></div><span className="artifact-label">SIPHONED ENERGY</span><i className="spark s1"/><i className="spark s2"/><i className="spark s3"/></div></section>
{error&&<div className="notice error"><AlertTriangle size={18}/>{error} داده‌های اولیه نمایش داده می‌شوند.<button onClick={refresh}>تلاش مجدد</button></div>}
<section className="stats"><div className="stat"><div className="stat-top">بالانس خزانه <Coins size={19}/></div><strong className="gold" dir="ltr">{num(total)}<small>SIPHONED</small></strong><span>خالص واریز و برداشت اعضا</span></div><div className="stat"><div className="stat-top">کل واریزها <ArrowDownLeft size={19}/></div><strong dir="ltr">{num(deposits)}<small className="green">+ DEPOSIT</small></strong><span>سهم اعضا در قدرت گیلد</span></div><div className="stat"><div className="stat-top">کل برداشت‌ها <ArrowUpRight size={19}/></div><strong dir="ltr">{num(withdrawals)}<small>WITHDRAWAL</small></strong><span>{num(rows.length)} تراکنش ثبت‌شده</span></div><div className="stat"><div className="stat-top">اعضای نیازمند اقدام <Flame size={19}/></div><strong className="orange" dir="ltr">{num(low.length)}<small>از {num(players.length)} عضو</small></strong><span>بالانس کمتر از {minimum} Siphoned</span></div></section>
{adminMode&&<section className="admin-panel"><div className="section-title"><div><div className="eyebrow">KEEP THE VAULT UP TO DATE</div><h2>ورود لاگ خزانه</h2></div><Lock size={23}/></div><p>خروجی بازی را همراه عنوان ستون‌ها اینجا پیست کن. پیش‌نمایش را بررسی و سپس ثبت کن.</p><textarea aria-label="لاگ تراکنش‌ها" dir="ltr" placeholder={'"Date"\t"Player"\t"Reason"\t"Amount"'} value={log} onChange={e=>setLog(e.target.value)}/>{preview&&<div className={preview.error?'notice error':'notice'}>{preview.error||`${preview.total} ردیف · ${preview.fresh} جدید · ${preview.duplicates} تکراری`}</div>}<button className="primary" disabled={!preview||!!preview.error||saving||loading||!!error} onClick={importLog}><Upload size={17}/>{saving?'در حال ثبت…':'ادغام و ثبت تراکنش‌ها'}</button>{message&&<p role="status">{message}</p>}<small>تشخیص تکرار: زمان، نام بازیکن، نوع و مقدار. لاگ ناقص یا نامعتبر به‌طور کامل رد می‌شود.</small></section>}
<section className="action-banner"><div className="action-icon"><Flame size={23}/></div><div><strong>برای نبرد بعدی، آماده‌ای؟</strong><p>حداقل {minimum} Siphoned نگه دار. حساب منفی یعنی وقت جبران سهم خزانه است.</p></div><button onClick={()=>{setTab('low');setView('leaderboard');document.getElementById('leaderboard')?.scrollIntoView({behavior:'smooth'});}}>بررسی حساب‌های کم‌موجودی <ChevronLeft size={17}/></button></section>
<div className="lower-grid"><section className="leaderboard panel" id="leaderboard"><div className="section-title"><div><div className="eyebrow">EVERY CONTRIBUTION COUNTS</div><h2>{view==='history'?'تاریخچهٔ خزانه':'لیدربورد اعضا'} <span>{players.length} عضو</span></h2></div><Trophy className="gold" size={22}/></div><div className="mobile-views"><button className={view==='leaderboard'?'selected':''} onClick={()=>setView('leaderboard')}>لیدربورد</button><button className={view==='history'?'selected':''} onClick={()=>setView('history')}>تاریخچه</button></div><div className="filters"><div className="tabs"><button className={tab==='all'?'selected':''} onClick={()=>setTab('all')}>همهٔ اعضا</button><button className={tab==='low'?'selected':''} onClick={()=>setTab('low')}>نیازمند اقدام <span>{low.length}</span></button></div><label className="search"><Search size={16}/><input value={query} onChange={e=>setQuery(e.target.value)} placeholder="نام بازیکن…" aria-label="جست‌وجوی بازیکن"/></label></div><div className="table-wrap"><table><thead><tr><th>{view==='history'?'زمان':'رتبه'}</th><th>بازیکن</th><th>{view==='history'?'نوع':'بالانس'}</th><th>{view==='history'?'مقدار':'وضعیت'}</th><th/></tr></thead><tbody>{view==='history'?rows.filter(r=>r.player.toLowerCase().includes(query.toLowerCase())&&(tab!=='low'||low.some(p=>p.name.toLowerCase()===r.player.toLowerCase()))).map(r=><tr key={identity(r)}><td className="date" dir="ltr">{r.date}</td><td><button className="player-name" dir="ltr" onClick={()=>setSelected(r.player)}>{r.player}</button></td><td>{r.reason==='Deposit'?'واریز':'برداشت'}</td><td className={r.amount>0?'green':'red'} dir="ltr">{r.amount>0?'+':''}{r.amount}</td><td/></tr>):filtered.map(p=>{const rank=players.indexOf(p)+1;return <tr key={p.name} className={p.balance<0?'debt-row':''}><td><span className={'rank r'+rank}>{rank<4?<Trophy size={15}/>:String(rank).padStart(2,'0')}</span></td><td><button className="player-cell" onClick={()=>setSelected(p.name)}><span className={'avatar a'+(rank%5)}>{p.name.slice(0,2).toUpperCase()}</span><span className="player-name" dir="ltr">{p.name}{rank===1&&<small>بزرگ‌ترین حامی خزانه</small>}</span></button></td><td><strong className={p.balance<0?'red':p.balance<minimum?'orange':''} dir="ltr">{num(p.balance)}</strong><small className="unit">Siphoned</small></td><td><span className={'badge '+(p.balance<0?'bad':p.balance<minimum?'warn':'good')}><i/>{status(p.balance)}</span></td><td><button className="row-open" onClick={()=>setSelected(p.name)} aria-label={'مشاهده حساب '+p.name}><ChevronLeft size={17}/></button></td></tr>;})}</tbody></table>{(view==='leaderboard'&&!filtered.length)&&<div className="empty">بازیکنی با این مشخصات پیدا نشد.</div>}</div><div className="table-footer">رتبه‌بندی بر اساس بالانس خالص <span>واریز − برداشت = بالانس</span></div></section>
<aside className="right-column"><section className="spotlight panel"><div className="eyebrow">THE VAULT CHAMPION</div><div className="champion-medal"><Trophy size={35}/></div><span className="champion-sub">حامی شمارهٔ یک خزانه</span><h3 dir="ltr">{players[0]?.name||'—'}</h3><strong className="champion-balance" dir="ltr">{num(players[0]?.balance||0)} <small>Siphoned</small></strong><p>سهم بیشتر، گیلد قدرتمندتر.<br/>جایگاه بعدی می‌تواند مال تو باشد.</p><button onClick={()=>setSelected(players[0]?.name)}>مشاهدهٔ حساب <ChevronLeft size={15}/></button></section><section className="health panel"><h3><Shield size={18}/> وضعیت آمادگی گیلد</h3><div className="health-number"><strong>{Math.round((players.length-low.length)/Math.max(players.length,1)*100)}<small>%</small></strong><span>اعضا آماده‌اند</span></div><div className="progress"><i style={{width:`${(players.length-low.length)/Math.max(players.length,1)*100}%`}}/></div><div className="legend"><span><i className="green-dot"/>آماده <b>{players.length-low.length}</b></span><span><i className="orange-dot"/>نیازمند شارژ <b>{low.filter(p=>p.balance>=0).length}</b></span><span><i className="red-dot"/>بدهکار <b>{low.filter(p=>p.balance<0).length}</b></span></div></section></aside></div>
<footer><span><span className="live-dot"/> {loading?'در حال دریافت…':`آخرین تراکنش: ${rows[0]?.date||'—'}`}</span><button onClick={refresh} disabled={loading}><RefreshCw size={13}/> تازه‌سازی</button><p>بالانس بر اساس لاگ‌های ثبت‌شده است؛ موجودی پیش از اولین لاگ لحاظ نشده است.</p><span dir="ltr">BUILT FOR THE GUILD. POWERED BY YOU.</span></footer></div></main>
{profile&&<div className="modal-backdrop" onClick={()=>setSelected(null)}><section className="modal panel" role="dialog" aria-modal="true" aria-label={'حساب '+profile.name} onClick={e=>e.stopPropagation()}><button className="close" onClick={()=>setSelected(null)} aria-label="بستن"><X/></button><div className="eyebrow">YOUR CONTRIBUTION. YOUR IMPACT.</div><h2 dir="ltr">{profile.name}</h2><span className={'badge '+(profile.balance<0?'bad':profile.balance<minimum?'warn':'good')}>{status(profile.balance)}</span><div className="profile-balance" dir="ltr">{num(profile.balance)} <small>Siphoned</small></div><div className="profile-advice">{profile.balance<minimum?<><AlertTriangle size={20}/><p>برای رسیدن به حداقل مطلوب، <strong>{minimum-profile.balance} Siphoned</strong> به بانک گیلد واریز کن.</p></>:<><CheckCircle2 size={20}/><p>حسابت برای نبرد بعدی آماده است. ممنون از سهمت در خزانه!</p></>}</div><div className="profile-stats"><span>واریز <b className="green">{profile.deposits}</b></span><span>برداشت <b>{profile.withdrawals}</b></span><span>تراکنش <b>{profile.count}</b></span></div><h3>تاریخچهٔ بازیکن</h3><div className="profile-history">{rows.filter(r=>r.player.toLowerCase()===profile.name.toLowerCase()).map(r=><div key={identity(r)}><span>{r.reason==='Deposit'?'واریز':'برداشت'}<small dir="ltr">{r.date}</small></span><b className={r.amount>0?'green':'red'} dir="ltr">{r.amount>0?'+':''}{r.amount}</b></div>)}</div><button className="primary" onClick={async()=>{try{await navigator.clipboard.writeText(`${profile.name} | Balance: ${profile.balance} Siphoned | Target: ${minimum}`);setMessage('خلاصه کپی شد.');}catch{setMessage('امکان کپی در این مرورگر نیست.');}}}><Copy size={15}/> کپی خلاصهٔ حساب</button>{message&&<small role="status">{message}</small>}</section></div>}</div>;
}
+4
View File
@@ -0,0 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');
:root{--bg:#101214;--panel:#191b1e;--border:#2b2d30;--muted:#85888e;--text:#e9e8e5;--gold:#d1ab6c;--orange:#e19b58;--red:#e47878;--green:#80b6a0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px Vazirmatn,Tahoma,sans-serif}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,a{cursor:pointer}button{color:inherit;background:none;border:0}a{color:inherit;text-decoration:none}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--gold);outline-offset:4px}small{font-size:11px}.shell{display:flex;min-height:100vh}.sidebar{width:238px;flex-shrink:0;background:#151719;border-left:1px solid var(--border);padding:31px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800;letter-spacing:2px}.brand small{display:block;color:var(--muted);font-size:8px;letter-spacing:2.5px;margin-top:4px}.brandmark{color:var(--gold);display:grid;place-items:center;background:#28241d;border:1px solid #53452d;border-radius:12px;width:44px;height:49px}.guild{display:flex;align-items:center;gap:11px;border:1px solid var(--border);border-radius:9px;margin:38px 0 32px;padding:12px 10px;font-size:12px}.guild-icon{background:#353027;color:var(--gold);border-radius:7px;padding:8px 12px;font:bold 15px Georgia}.guild small{display:block;color:var(--muted);margin-top:2px}.live-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:var(--green);box-shadow:0 0 8px #80b6a025}.guild .live-dot{margin-right:auto}.nav-label{font-size:10px;color:#656970;margin:0 12px 12px}.nav{width:100%;display:flex;align-items:center;gap:10px;border-radius:7px;padding:13px 12px;text-align:right;margin:3px 0;color:#92959a;font-size:12px}.nav.active{color:var(--gold);background:#29251e;border:1px solid #473c2c}.nav svg:last-child,.nav-count{margin-right:auto}.nav:hover{background:#25272a}.nav-count{background:#3a2a22;color:var(--orange);padding:0 6px;font-size:10px;border-radius:4px}.sidebar-bottom{margin-top:auto}.pledge{border-top:1px solid var(--border);padding:22px 8px;color:var(--gold)}.pledge p{font-size:12px;line-height:1.9;color:#aaa8a1}.pledge small{font-size:10px;color:#62666c}.version{display:block;color:#53575d;text-align:center;font-size:8px;letter-spacing:2px;margin-top:19px}main{min-width:0;flex:1}.topbar{height:73px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 39px;font-size:11px}.breadcrumb{display:flex;align-items:center;gap:12px;color:var(--muted)}.breadcrumb strong{color:#c7c8ca;font-weight:500}.public-label{background:#1c2421;border:1px solid #2e3c35;border-radius:20px;padding:5px 11px;color:#9abaad;display:flex;align-items:center;gap:8px}.content{max-width:1440px;margin:auto;padding:0 39px}.hero{min-height:239px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative}.eyebrow{font-family:Arial,sans-serif;letter-spacing:2px;color:var(--gold);font-size:9px;font-weight:600;display:flex;align-items:center;gap:9px}.eyebrow>span{width:18px;height:1px;background:var(--gold)}h1{font-size:34px;line-height:1.8;margin:13px 0 8px;letter-spacing:-1px}h1 em{font-style:normal;color:var(--gold)}.hero p{font-size:12px;color:#989ba1;margin:0}.hero-tags{display:flex;gap:23px;font-size:10px;color:#71757c;margin-top:23px}.hero-tags span{display:flex;gap:7px;align-items:center}.artifact{width:250px;height:220px;display:grid;place-items:center;position:relative;background:radial-gradient(ellipse,#b6742525 0%,transparent 66%)}.orbit{position:absolute;border:1px solid #aa855c28;width:175px;height:175px;border-radius:50%;transform:rotate(-25deg) scaleY(.55)}.orbit-two{transform:rotate(50deg) scaleY(.7);width:200px;height:200px}.bottle{height:151px;width:83px;position:relative;transform:rotate(-12deg);filter:drop-shadow(0 0 17px #d8973740)}.bottle-cap{background:linear-gradient(90deg,#473526,#caa67a,#554230);width:36px;height:17px;border:2px solid #91704c;margin:auto;border-radius:4px}.bottle-neck{height:22px;width:29px;margin:auto;background:linear-gradient(90deg,#79634570,#eed0a055,#60482e70);border:2px solid #a47e4e;border-bottom:0}.bottle-body{position:relative;height:108px;border-radius:18px 18px 28px 28px;border:2px solid #be955e;background:linear-gradient(110deg,#c7a77950,#31251d);overflow:hidden;display:grid;place-items:center;box-shadow:inset 6px 0 7px #e8b86b33,inset -9px 0 10px #100c0766}.bottle-body svg{z-index:2;color:#ffe0a4;filter:drop-shadow(0 0 6px #ffe48c)}.liquid{position:absolute;inset:20px 4px 5px;background:linear-gradient(#dc9e49,#b36524);border-radius:12px 12px 23px 23px;box-shadow:0 0 20px #dfa245}.artifact-label{position:absolute;bottom:15px;font:8px Arial;letter-spacing:3px;color:#94774e}.spark{position:absolute;width:3px;height:3px;background:#c99c5c;bLine truncated
.topbar-actions{display:flex;align-items:center;gap:14px}.mobile-admin,.mobile-views{display:none}@media(max-width:900px){.mobile-admin{display:flex;color:var(--gold)}.mobile-views{display:flex;gap:10px;margin:0 16px 15px;font-size:11px}.mobile-views button{padding:7px 12px;border:1px solid var(--border);border-radius:6px;color:var(--muted)}.mobile-views .selected{color:var(--gold);border-color:#6d5530}}
+4
View File
@@ -0,0 +1,4 @@
import type { Metadata } from 'next';
import './globals.css';
export const metadata:Metadata={title:'Siphoned | خزانهٔ گیلد',description:'لیدربورد، بالانس اعضا و تاریخچهٔ بانک Siphoned گیلد در آلبیون آنلاین'};
export default function RootLayout({children}:{children:React.ReactNode}){return <html lang="fa" dir="rtl"><body>{children}</body></html>;}
+2
View File
@@ -0,0 +1,2 @@
import Dashboard from './dashboard';
export default function Page(){return <Dashboard/>;}