User feedback: still ugly, the 1xbet navigation was never actually reproduced. Now follows its structure: - thin utility bar on top (country picker, Connexion + Inscription) above the main bar (logo, nav) - horizontal icon strip of the country's lotteries under the header, with the active one underlined in gold - compact promo banner instead of a full-height hero, so results stay above the fold - right rail in the bet-slip position: top-5 leaderboard and army stats Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
import { LotteryRow } from "@/components/lottery-row"
|
|
import { LotteryMobileCard } from "@/components/lottery-mobile-card"
|
|
import type { LotteryFeedEntry } from "@/lib/lokilab-feed"
|
|
|
|
export function LotteryResultsPanel({
|
|
lotteries,
|
|
country,
|
|
followedKeys,
|
|
isAuthenticated,
|
|
}: {
|
|
lotteries: LotteryFeedEntry[]
|
|
country: string
|
|
followedKeys: Set<string>
|
|
isAuthenticated: boolean
|
|
}) {
|
|
return (
|
|
<div>
|
|
<div className="hidden sm:grid grid-cols-[28px_160px_1fr_1fr_72px_120px] gap-3 border-b border-border/60 px-3 py-2 text-[11px] font-medium uppercase tracking-wide text-muted-foreground">
|
|
<span />
|
|
<span>Loterie</span>
|
|
<span>Résultat officiel</span>
|
|
<span>Choix de Loki</span>
|
|
<span className="text-right">Score</span>
|
|
<span className="text-right">Historique</span>
|
|
</div>
|
|
|
|
<div className="hidden sm:block">
|
|
{lotteries.map((entry) => (
|
|
<LotteryRow
|
|
key={entry.id}
|
|
entry={entry}
|
|
country={country}
|
|
isFollowing={entry.lastDraw ? followedKeys.has(`${entry.id}:${entry.lastDraw.date}`) : false}
|
|
isAuthenticated={isAuthenticated}
|
|
/>
|
|
))}
|
|
</div>
|
|
|
|
<div className="sm:hidden">
|
|
{lotteries.map((entry) => (
|
|
<LotteryMobileCard
|
|
key={entry.id}
|
|
entry={entry}
|
|
country={country}
|
|
isFollowing={entry.lastDraw ? followedKeys.has(`${entry.id}:${entry.lastDraw.date}`) : false}
|
|
isAuthenticated={isAuthenticated}
|
|
/>
|
|
))}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|