Skip to content

Commit 86f2f6a

Browse files
committed
Increase active area in menu on mobile
1 parent 5854d00 commit 86f2f6a

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ Project Link: [https://github.com/coder8080/softpoint](https://github.com/coder8
100100

101101
* [Figma template](https://www.figma.com/design/I7Y2VDqbXYD5sZLF7mk92y/Soft-Point)
102102
* [README template](https://github.com/othneildrew/Best-README-Template)
103-
* [Iphone frame asset](https://www.vecteezy.com/png/42538623-white-smartphone-mockup-blank-screen-isolated-on-transparent-background-png-smartphone-mockup-frame)
103+
* [IPhone frame asset](https://www.vecteezy.com/png/42538623-white-smartphone-mockup-blank-screen-isolated-on-transparent-background-png-smartphone-mockup-frame)
104104

105105
<p align="right">(<a href="#readme-top">back to top</a>)</p>

index.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@
8989
class="xl:hidden flex flex-row grow items-center justify-between px-5 py-5"
9090
>
9191
<img src="/softpoint/assets/images/logo.svg" alt="Logo" />
92-
<button onclick="toggleMenu()" aria-label="Open Menu">
92+
<button
93+
onclick="toggleMenu()"
94+
aria-label="Open Menu"
95+
class="cursor-pointer"
96+
>
9397
<img
9498
src="/softpoint/assets/images/burger.svg"
9599
alt="Menu icon"
@@ -117,16 +121,16 @@
117121
</div>
118122
</nav>
119123
<div
120-
class="fixed top-0 right-0 left-0 bottom-0 z-3 bg-white/50 backdrop-blur-xl flex flex-col items-center justify-center gap-8 transition"
124+
class="fixed top-0 right-0 left-0 bottom-0 z-3 bg-white/50 backdrop-blur-xl flex flex-col items-center justify-center transition select-none"
121125
id="menu"
122126
onclick="toggleMenu()"
123127
style="transform: translate(100%, 0)"
124128
>
125-
<a class="text-xl" href="#features">Features</a>
126-
<a class="text-xl" href="#download">Download</a>
127-
<a class="text-xl" href="#pricing">Pricing</a>
128-
<a class="text-xl" href="#pricing">Login</a>
129-
<a class="text-xl" href="#pricing">Sign Up</a>
129+
<a class="text-xl py-4" href="#features">Features</a>
130+
<a class="text-xl py-4" href="#download">Download</a>
131+
<a class="text-xl py-4" href="#pricing">Pricing</a>
132+
<a class="text-xl py-4" href="#pricing">Login</a>
133+
<a class="text-xl py-4" href="#pricing">Sign Up</a>
130134
</div>
131135
<main class="max-w-screen overflow-hidden">
132136
<section class="flex justify-center">

0 commit comments

Comments
 (0)