Adapted badges page
This commit is contained in:
parent
949a9f7f60
commit
1318c39840
3 changed files with 19 additions and 10 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -35,3 +35,6 @@ yarn-error.log*
|
||||||
# typescript
|
# typescript
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
|
||||||
|
# vscode
|
||||||
|
.vscode
|
|
@ -1,25 +1,31 @@
|
||||||
import Badge from '@/ui/Badge';
|
import Badge from '@/ui/Badge';
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
|
// TODO: Fetch badges from API and display them
|
||||||
return (
|
return (
|
||||||
<div className="h-full w-full">
|
<div className="flex h-full w-full flex-col space-y-4">
|
||||||
<h1 className="text-2xl font-bold tracking-tight ">Mes badges</h1>
|
<div className="w-full">
|
||||||
<div className="flex flex-col pt-5">
|
<section className="flex flex-col space-y-4">
|
||||||
<div className="max-h-5/6 max-w-11/12 mb-9 rounded-lg bg-dark shadow-md">
|
<header className="flex flex-col">
|
||||||
<div className="flex justify-between rounded-lg py-2 px-4">
|
<h3 className="text-xl font-semibold">Mes badges</h3>
|
||||||
<div className="flex flex-wrap space-x-2 pt-3 pb-3 ">
|
<p className="hidden text-muted sm:block">
|
||||||
|
Vos badges sont affichés ici, vous pouvez les partager avec vos amis
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
<main className="flex flex-col justify-between space-x-0 space-y-4">
|
||||||
|
<div className="flex space-x-2">
|
||||||
<Badge title="Je suis un teste" path="/assets/badges/java.png" alt="je suis un alt" />
|
<Badge title="Je suis un teste" path="/assets/badges/java.png" alt="je suis un alt" />
|
||||||
<Badge title="Je suis un teste" path="/assets/badges/java.png" alt="je suis un alt" />
|
<Badge title="Je suis un teste" path="/assets/badges/java.png" alt="je suis un alt" />
|
||||||
<Badge
|
<Badge
|
||||||
title="Salut j'ai été obtenu"
|
title="Peer-at What ?"
|
||||||
path="/assets/badges/java.png"
|
path="/assets/badges/java.png"
|
||||||
type="hard"
|
type="hard"
|
||||||
alt="je suis un alt"
|
alt="je suis un alt"
|
||||||
earned
|
earned
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</main>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -29,7 +29,7 @@ export default async function Page() {
|
||||||
return (
|
return (
|
||||||
<div className="flex h-full w-full flex-col space-y-4">
|
<div className="flex h-full w-full flex-col space-y-4">
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<section className="flex flex-col space-y-8">
|
<section className="flex flex-col space-y-4">
|
||||||
<header className="flex items-center justify-between">
|
<header className="flex items-center justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h3 className="text-xl font-semibold">Tableau des scores</h3>
|
<h3 className="text-xl font-semibold">Tableau des scores</h3>
|
||||||
|
|
Loading…
Add table
Reference in a new issue