Skip to content

Commit

Permalink
chore: fix header
Browse files Browse the repository at this point in the history
  • Loading branch information
macojaune committed Oct 24, 2024
1 parent 887187c commit 8cfbd0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@ export const Route = createRootRoute({
<header className="flex flex-row items-center justify-between gap-4 bg-slate-900 p-4 text-white ">
<div
className={
location.hostname.includes("pani-dlo")
location.pathname.includes("pani-dlo")
? "order-2 text-right"
: "order-1 text-left"
}
>
<Link to="/">
<h1 className="text-3xl font-bold text-amber-400">Pani limyè</h1>
</Link>
{location.hostname.includes("pani-limye") && (
{!location.pathname.includes("pani-dlo") && (
<span className="text-xs">On dit merci EDF PEI…</span>
)}
</div>
<div
className={
location.hostname.includes("pani-limye")
? "order-2 text-right"
: "order-1 text-left"
location.pathname.includes("pani-dlo")
? "order-1 text-left"
: "order-2 text-right"
}
>
<Link to="/pani-dlo">
<h1 className="text-3xl font-bold text-cyan-400">Pani Dlo</h1>
</Link>
{location.hostname.includes("pani-dlo") && (
{location.pathname.includes("pani-dlo") && (
<span className="text-xs">On dit merci la Guadeloupe</span>
)}
</div>
Expand Down

0 comments on commit 8cfbd0a

Please sign in to comment.