Skip to content

Commit

Permalink
Add login button in top nav
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Apr 9, 2023
1 parent 3cd8468 commit 768e7ab
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/components/Navigation/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import AccountDropdown from './AccountDropdown.astro';
<nav class='container flex items-center justify-between'>
<a class='flex items-center text-lg font-medium text-white' href='/'>
<Icon icon='logo' />
<span class='ml-3'>roadmap.sh</span>
<span class='ml-3 hidden md:block'>roadmap.sh</span>
</a>

<!-- Desktop navigation items -->
Expand All @@ -26,6 +26,9 @@ import AccountDropdown from './AccountDropdown.astro';
<li>
<a href='/videos' class='text-gray-400 hover:text-white'>Videos</a>
</li>
<li data-guest-required>
<a href='/login' class='text-gray-400 hover:text-white'>Login</a>
</li>
<li>
<AccountDropdown />

Expand Down Expand Up @@ -111,7 +114,16 @@ import AccountDropdown from './AccountDropdown.astro';
<a
data-guest-required
href='/signup'
class='text-xl text-red-300 hover:text-red-400 md:text-lg'
class='text-xl text-white md:text-lg'
>
Login
</a>
</li>
<li>
<a
data-guest-required
href='/signup'
class='text-xl text-green-300 hover:text-green-400 md:text-lg'
>
Sign Up
</a>
Expand Down

0 comments on commit 768e7ab

Please sign in to comment.