Skip to content

Commit

Permalink
Merge pull request jfmartinz#1485 from kunalmaurya6/fixing-navbar-for…
Browse files Browse the repository at this point in the history
…-phones

fixing navbar for phones
  • Loading branch information
jfmartinz authored Jun 29, 2024
2 parents cca8537 + 9f3796c commit 26e83f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions new-website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@
class="text-lg font-semibold tracking-widest text-gray-900 uppercase rounded-lg dark:text-slate-200 dark-mode:text-white focus:outline-none focus:shadow-outline">ResourceHub</a>
<button class="rounded-lg md:hidden focus:outline-none focus:shadow-outline" @click="open = !open">
<svg fill="currentColor" viewBox="0 0 20 20" class="w-6 h-6">
<path x-show="!open" fill-rule="evenodd"
<path x-show="open" fill-rule="evenodd"
d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM9 15a1 1 0 011-1h6a1 1 0 110 2h-6a1 1 0 01-1-1z"
clip-rule="evenodd"></path>
<path x-show="open" fill-rule="evenodd"
<path x-show="!open" fill-rule="evenodd"
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
clip-rule="evenodd"></path>
</svg>
</button>
</div>
<nav :class="{'flex': open, 'hidden': !open}"
<nav :class="{'flex': !open, 'hidden': open}"
class="flex-col flex-grow hidden pb-4 md:pb-0 md:flex md:justify-center md:flex-row">
<a class="px-4 py-2 mt-2 text-sm font-semibold bg-transparent rounded-lg hover:text-gray-900 focus:text-gray-900 hover:bg-gray-200 focus:bg-gray-200 focus:shadow-outline dark:bg-transparent md:mt-0 md:ml-4
dark:text-slate-200 focus:outline-none focus:shadow-outline" href="#Home">Home</a>
Expand Down

0 comments on commit 26e83f2

Please sign in to comment.