Skip to content

Commit

Permalink
fix: align button home & toBack in nav
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanFama592 committed Feb 21, 2024
1 parent b23cb01 commit 80058a9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "tic-tac-toe-world",
"version": "1.3.2",
"version": "1.3.3",
"scripts": {
"dev": "astro dev --host",
"start:build": "astro check && astro build && astro preview --host",
Expand Down
42 changes: 22 additions & 20 deletions src/layouts/FramePage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,28 @@ const { enabledButtonBack = true }: Props = Astro.props;
transition:animate="slide"
class="navbar sticky top-0 w-full h-[10dvh] z-20 shadow-lg bg-base-100 *:text-black justify-between lg:justify-around"
>
{
enabledButtonBack && (
<button
onclick="window.history.back();"
id="toBack"
class="btn btn-ghost flex justify-center items-center size-12 p-2 text-3xl"
>
&larr;
</button>
)
}
<a draggable="false" href="/" title="Tic Tac Toe World">
{/* hacer que se le pueda cambiar el color al stroke */}
<img
draggable="false"
src="/favicon.svg"
class="btn btn-ghost size-12 p-1 text-base-content stroke-current"
alt="Tic Tac Toe World"
/>
</a>
<div class="flex flex-row justify-center items-center gap-5">
{
enabledButtonBack && (
<button
onclick="window.history.back();"
id="toBack"
class="btn btn-ghost flex justify-center items-center size-12 p-2 text-3xl"
>
&larr;
</button>
)
}
<a draggable="false" href="/" title="Tic Tac Toe World">
{/* hacer que se le pueda cambiar el color al stroke */}
<img
draggable="false"
src="/favicon.svg"
class="btn btn-ghost size-12 p-1 text-base-content stroke-current"
alt="Tic Tac Toe World"
/>
</a>
</div>
{/* TODO: make the mobile version */}
{/* TODO: when there are more internal pages, only put those */}
<ul
Expand Down

0 comments on commit 80058a9

Please sign in to comment.