feat: add AnVedette component
Déploiement FRONT PROD / check (push) Successful in 2m5s
Déploiement FRONT PROD / deploy (push) Successful in 21s

This commit is contained in:
2026-06-08 21:46:18 +04:00
parent c113a2547f
commit ca9ba4cb10
2 changed files with 73 additions and 4 deletions
+6 -4
View File
@@ -1,32 +1,34 @@
import Box from '@mui/material/Box'
import Container from '@mui/material/Container'
import {notFound} from 'next/navigation'
import {jwennStats} from '../lib/oki-api'
import {jwennStats, jwennDenyeTeks} from '../lib/oki-api'
import Statistik from '../components/akey/statistik'
import Akey from '../components/akey'
import AnVedette from '../components/akey/an-vedette'
import okiLogo from '../public/logo-512x512.png'
import Footer from '../components/footer'
import Aso from '../components/akey/aso'
async function jwennDone() {
const statistik = await jwennStats()
const [statistik, denyeTeks] = await Promise.all([jwennStats(), jwennDenyeTeks()])
if (!statistik) {
notFound()
}
return statistik
return {statistik, dernierTeks: denyeTeks?.[0]}
}
export default async function Page() {
const statistik = await jwennDone()
const {statistik, dernierTeks} = await jwennDone()
return (
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
<Akey logo={okiLogo} />
<Container sx={{flexGrow: 100}}>
{dernierTeks && <AnVedette teks={dernierTeks} />}
<Statistik statistik={statistik} />
<Aso />
</Container>