Skip to content

Commit

Permalink
feat: smaller navigation ball
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Oct 12, 2024
1 parent cd03cb4 commit 5eceaf8
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions app/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div max-w="full sm:250" mx-auto w-full flex flex-col pb-20>
<div max-w="full sm:250" mx-auto w-full flex flex-col pb-30>
<header flex flex-col gap-4 px-4 pb-4 pt-4>
<nav flex items-center>
<div w-40 flex="~" items-center gap-2 text-4xl>
Expand All @@ -8,20 +8,38 @@
Qrs
</h1>
</div>
<!-- Header -->
<div
class="hidden sm:flex"
flex-1 justify-center gap-8
text-lg
>
<NuxtLink op70 hover="text-blue" duration-300 transition="all ease-in-out" to="/" active-class="!op100" flex="~ items-center gap-1">
<span i-carbon-upload inline-block />
Send
</NuxtLink>
<NuxtLink op70 hover="text-blue" duration-300 transition="all ease-in-out" to="/scan" active-class="!op100" flex="~ items-center gap-1">
<span i-carbon-download inline-block />
Receive
</NuxtLink>
</div>
<div w-40 flex="~ <sm:1" justify-end text-2xl>
<a href="https://github.com/qqrss/qrs" target="_blank" op70 hover="text-blue" duration-300 transition="all ease-in-out" flex="~ items-center gap-1">
<span i-carbon:logo-github inline-block />
</a>
</div>

<!-- Deck -->
<div
class="flex sm:hidden"
left="50%" bottom="40px" translate-x="-50%"
bottom="75px" left="50%" translate-x="-50%"
bg="neutral-100 dark:neutral-900"
fixed z-100
flex-1 justify-center gap-2
rounded-full
p-2
text-sm
fixed z-100 flex-1 justify-center gap-2 rounded-full p-2 text-sm
>
<NuxtLink
to="/"
active-class="!op100 bg-neutral-700 dark:bg-neutral-300 !text-neutral-100 !dark:text-neutral-900"
rounded-full px-3 py-2
rounded-full px-3 py-1
op70 hover="text-blue"
flex="~ items-center gap-1"
transition="all ease-in-out" duration-300
Expand All @@ -32,7 +50,7 @@
<NuxtLink
to="/scan"
active-class="!op100 bg-neutral-700 dark:bg-neutral-300 !text-neutral-100 !dark:text-neutral-900"
rounded-full px-3 py-2
rounded-full px-3 py-1
op70 hover="text-blue"
flex="~ items-center gap-1"
transition="all ease-in-out" duration-300
Expand All @@ -41,25 +59,6 @@
Receive
</NuxtLink>
</div>
<div
class="hidden sm:flex"
flex-1 justify-center gap-8
text-lg
>
<NuxtLink op70 hover="text-blue" duration-300 transition="all ease-in-out" to="/" active-class="!op100" flex="~ items-center gap-1">
<span i-carbon-upload inline-block />
Send
</NuxtLink>
<NuxtLink op70 hover="text-blue" duration-300 transition="all ease-in-out" to="/scan" active-class="!op100" flex="~ items-center gap-1">
<span i-carbon-download inline-block />
Receive
</NuxtLink>
</div>
<div w-40 flex="~ <sm:1" justify-end text-2xl>
<a href="https://github.com/qqrss/qrs" target="_blank" op70 hover="text-blue" duration-300 transition="all ease-in-out" flex="~ items-center gap-1">
<span i-carbon:logo-github inline-block />
</a>
</div>
</nav>
</header>
<main h-full w-full flex-1>
Expand Down

0 comments on commit 5eceaf8

Please sign in to comment.