Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
  • Loading branch information
Funasitien committed Dec 6, 2024
1 parent 9b8340b commit 35b81be
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 12 deletions.
2 changes: 1 addition & 1 deletion public/output.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const { title = "DEMOCRAFT" } = Astro.props;
<Navbar />
<div class="hero banner-hero relative indicator justify-center min-w-full">
<span
class="indicator-item indicator-bottom indicator-center badge badge-secondary pixel pt-4 pb-7 px-4">
class="indicator-item indicator-bottom indicator-center badge badge-primary pixel pt-4 pb-7 px-4">
{ title }
</span>
<video
Expand Down
53 changes: 51 additions & 2 deletions src/pages/forum/categorie.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,55 @@
import Layout from "../../layouts/Layout.astro";
---

<Layout>
<h1>Forum - Forum Page</h1>
<Layout title="DEMOSMP">
<div class="bg-base-100 p-4 pt-10 h-96">
<div class="flex flex-col md:flex-row">
<div
class="breadcrumbs inline-flex justify-center md:justify-start md:w-3/4 md:pl-1"
>
<ul>
<li>
<a href="/"><i class="fa-solid fa-house mr-2"></i> Acceuil</a>
</li>
<li>
<a href="/forum"><i class="fa-solid fa-message mr-2"></i> Forum</a>
</li>
<li><i class="fa-solid fa-tree-city mr-2"></i> DEMOSMP</li>
</ul>
</div>
<div class="inline-flex justify-center md:justify-end md:w-1/4">
<form>
<div class="join">
<input
class="input input-bordered join-item"
placeholder="Search"
/>
<button class="btn btn-primary join-item"
><i class="fa-solid fa-magnifying-glass"></i></button
>
</div>
</form>
</div>
</div>

<div class="grid grid-cols-1 gap-y-4">
<div class="w-full flex bg-base-300 p-2 px-4 rounded-lg">
<div class="inline-flex justify-start w-1/3">
<i class="fa-solid fa-comment text-primary text-4xl mr-4"></i>

<div>
<a href="/forum/post" class="text-lg font-bold">
<span class="badge badge-error"> IMPORTANT </span>
Règles de l'espace de discussion
<i class="badge badge-warning fa-solid fa-thumbtack"></i>

<i class="badge badge-error fa-solid fa-lock"></i>
</a>
</div>
</div>
<div class="inline-flex justify-center w-1/3"></div>
<div class="inline-flex justify-end w-1/3"></div>
</div>
</div>
</div>
</Layout>
9 changes: 3 additions & 6 deletions src/pages/forum/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ import Layout from "../../layouts/Layout.astro";
<p class="md:hidden right-0 text-xl font-normal"
>Les différents mondes de DEMOCRAFT</p
>

<div class="bg-base-300 p-2 px-4 rounded-xl flex items-center">
<a><i class="fa-solid fa-tree-city text-primary text-4xl mr-4"></i></a>
<div>
<h2 class="text-2xl font-bold">
<a href="/forum/categorie" class="text-2xl font-bold">
DEMOSMP
</h2>
</a>
<p>Montrez nous vos plus belles villes ! </p>
</div>
</div>
Expand Down Expand Up @@ -91,10 +92,6 @@ import Layout from "../../layouts/Layout.astro";
<h2 class="text-2xl font-bold">Triche</h2>
<p>Un TRICHEUR ? Sur DEMOCRAFT ???</p>
</div>
<div class="justify-self-end">
<p>72 Discussions</p>
<p>150 Messages</p>
</div>
</div>
</div>

Expand Down
67 changes: 65 additions & 2 deletions src/pages/forum/post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,69 @@
import Layout from "../../layouts/Layout.astro";
---

<Layout>
<h1>Forum - Forum Post</h1>
<Layout title="DEMOSMP">
<div class="bg-base-100 p-4 pt-10 h-96">
<div class="flex flex-col md:flex-row">
<div
class="breadcrumbs inline-flex justify-center md:justify-start md:w-3/4 md:pl-1"
>
<ul>
<li>
<a href="/"><i class="fa-solid fa-house mr-2"></i> Acceuil</a>
</li>
<li>
<a href="/forum"><i class="fa-solid fa-message mr-2"></i> Forum</a>
</li>
<li><i class="fa-solid fa-tree-city mr-2"></i> DEMOSMP</li>
</ul>
</div>
<div class="inline-flex justify-center md:justify-end md:w-1/4 gap-2">
<form>
<button class="btn btn-success">
<i class="fa-solid fa-thumbtack"></i>
</button>
</form>
<form>
<button class="btn btn-neutral">
<i class="fa-solid fa-lock"></i>
</button>
</form>
<form>
<button class="btn btn-info">
<i class="fa-solid fa-pen-to-square"></i>
</button>
</form>
<form>
<button class="btn btn-error">
<i class="fa-solid fa-trash-can"></i>
</button>
</form>
</div>
</div>

<div class="grid grid-cols-1 p-2 md:px-6">
<div class="flex w-full bg-base-300 indicator rounded-lg">
<span class="indicator-item indicator-bottom indicator-end btn btn-secondary">
<i class="fa-solid fa-thumbs-up"></i>
</span>
<div class="m-3 p-1">
<div class="flex">
<img src="/avatar.png" class="h-20 w-20 rounded-lg" alt="Shoes"/>
<div class="ml-2 flex flex-col">
<a class="text-lg font-bold">
Funasitien
</a>
<p class="badge badge-warning">
FONDATEUR
</p>
</div>
</div>
<div class="flex justify-center gap-x-6 mt-1">
<span><i class="fa-solid fa-comment"></i> 4</span>
<span><i class="fa-solid fa-pen-clip"></i> 2</span>
<span><i class="fa-solid fa-heart"></i> 0</span></div>
</div>
</div>
</div>
</div>
</Layout>

0 comments on commit 35b81be

Please sign in to comment.