Skip to content

Commit 5eceaf8

Browse files
committed
feat: smaller navigation ball
1 parent cd03cb4 commit 5eceaf8

File tree

1 file changed

+27
-28
lines changed

1 file changed

+27
-28
lines changed

app/layouts/default.vue

+27-28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div max-w="full sm:250" mx-auto w-full flex flex-col pb-20>
2+
<div max-w="full sm:250" mx-auto w-full flex flex-col pb-30>
33
<header flex flex-col gap-4 px-4 pb-4 pt-4>
44
<nav flex items-center>
55
<div w-40 flex="~" items-center gap-2 text-4xl>
@@ -8,20 +8,38 @@
88
Qrs
99
</h1>
1010
</div>
11+
<!-- Header -->
12+
<div
13+
class="hidden sm:flex"
14+
flex-1 justify-center gap-8
15+
text-lg
16+
>
17+
<NuxtLink op70 hover="text-blue" duration-300 transition="all ease-in-out" to="/" active-class="!op100" flex="~ items-center gap-1">
18+
<span i-carbon-upload inline-block />
19+
Send
20+
</NuxtLink>
21+
<NuxtLink op70 hover="text-blue" duration-300 transition="all ease-in-out" to="/scan" active-class="!op100" flex="~ items-center gap-1">
22+
<span i-carbon-download inline-block />
23+
Receive
24+
</NuxtLink>
25+
</div>
26+
<div w-40 flex="~ <sm:1" justify-end text-2xl>
27+
<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">
28+
<span i-carbon:logo-github inline-block />
29+
</a>
30+
</div>
31+
32+
<!-- Deck -->
1133
<div
1234
class="flex sm:hidden"
13-
left="50%" bottom="40px" translate-x="-50%"
35+
bottom="75px" left="50%" translate-x="-50%"
1436
bg="neutral-100 dark:neutral-900"
15-
fixed z-100
16-
flex-1 justify-center gap-2
17-
rounded-full
18-
p-2
19-
text-sm
37+
fixed z-100 flex-1 justify-center gap-2 rounded-full p-2 text-sm
2038
>
2139
<NuxtLink
2240
to="/"
2341
active-class="!op100 bg-neutral-700 dark:bg-neutral-300 !text-neutral-100 !dark:text-neutral-900"
24-
rounded-full px-3 py-2
42+
rounded-full px-3 py-1
2543
op70 hover="text-blue"
2644
flex="~ items-center gap-1"
2745
transition="all ease-in-out" duration-300
@@ -32,7 +50,7 @@
3250
<NuxtLink
3351
to="/scan"
3452
active-class="!op100 bg-neutral-700 dark:bg-neutral-300 !text-neutral-100 !dark:text-neutral-900"
35-
rounded-full px-3 py-2
53+
rounded-full px-3 py-1
3654
op70 hover="text-blue"
3755
flex="~ items-center gap-1"
3856
transition="all ease-in-out" duration-300
@@ -41,25 +59,6 @@
4159
Receive
4260
</NuxtLink>
4361
</div>
44-
<div
45-
class="hidden sm:flex"
46-
flex-1 justify-center gap-8
47-
text-lg
48-
>
49-
<NuxtLink op70 hover="text-blue" duration-300 transition="all ease-in-out" to="/" active-class="!op100" flex="~ items-center gap-1">
50-
<span i-carbon-upload inline-block />
51-
Send
52-
</NuxtLink>
53-
<NuxtLink op70 hover="text-blue" duration-300 transition="all ease-in-out" to="/scan" active-class="!op100" flex="~ items-center gap-1">
54-
<span i-carbon-download inline-block />
55-
Receive
56-
</NuxtLink>
57-
</div>
58-
<div w-40 flex="~ <sm:1" justify-end text-2xl>
59-
<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">
60-
<span i-carbon:logo-github inline-block />
61-
</a>
62-
</div>
6362
</nav>
6463
</header>
6564
<main h-full w-full flex-1>

0 commit comments

Comments
 (0)