Skip to content

Commit

Permalink
show DE number in toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
king8fisher committed Jul 22, 2024
1 parent fe5472a commit e118ae3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
4 changes: 4 additions & 0 deletions src/components/atoms/Navbar/Version.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import patch from "../../../data/json/patch.json";
export const Version = () => {
return (<><span className="text-xs opacity-30" title={`Age of Empires II: Definitive Edition - Update ${patch.DE}`}>DE<br />{patch.DE}</span></>);
};
33 changes: 19 additions & 14 deletions src/components/molecules/Navbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@

import { Container } from "../../../styles";
import { Version } from "../../atoms/Navbar/Version";
import { DarkModeButton } from "../DarkMode";

const Navbar = (): JSX.Element => (
<div className="py-2 bg-zinc-300 dark:bg-zinc-800">
<Container className="flex flex-row gap-4 items-center justify-between">
<a
href="/"
className="shrink-0 p-[0.4rem] rounded-md bg-gradient-to-b from-zinc-100/20 to-zinc-100/50 dark:from-zinc-900/20 dark:to-zinc-900/50"
>
<div className="flex flex-row flex-wrap gap-1 items-center">
<img src="favicon.png" className="w-6 h-6 shrink-0" />
<span className="text-center text-sm font-extralight leading-none hidden md:block opacity-40">
Aoe2
<br />
Card
</span>
</div>
</a>
<Container className="flex flex-row items-center justify-between">
<div className="flex flex-row gap-1 items-center">
<a
href="/"
className="shrink-0 p-[0.4rem] rounded-md bg-gradient-to-b from-zinc-100/20 to-zinc-100/50 dark:from-zinc-900/20 dark:to-zinc-900/50"
>
<div className="flex flex-row flex-wrap gap-1 items-center">
<img src="favicon.png" className="w-6 h-6 shrink-0" />
<span className="text-center text-sm font-extralight leading-none hidden md:block opacity-40">
Aoe2
<br />
Card
</span>
</div>
</a>
<Version />
</div>
<DarkModeButton />
</Container>
</div>
Expand Down

0 comments on commit e118ae3

Please sign in to comment.