feat: add login button to Home page for user authentication

This commit is contained in:
Yoga Pangestu 2026-06-22 19:24:02 +07:00
parent bed9113269
commit 9615fa23d1

View File

@ -15,7 +15,8 @@ import {
Phone, Phone,
MapPin, MapPin,
Mail, Mail,
Filter Filter,
LogIn
} from '@lucide/vue'; } from '@lucide/vue';
import { ref, computed } from 'vue'; import { ref, computed } from 'vue';
import { CatalogSortOption } from '@/constants/catalog-sort-option'; import { CatalogSortOption } from '@/constants/catalog-sort-option';
@ -402,7 +403,7 @@ const resetPriceFilters = () => {
<a href="#contact" class="hover:text-amber-600 transition-colors">Hubungi Kami</a> <a href="#contact" class="hover:text-amber-600 transition-colors">Hubungi Kami</a>
</nav> </nav>
<!-- Action Utilities (Cart) --> <!-- Action Utilities (Cart & Login) -->
<div class="flex items-center space-x-4"> <div class="flex items-center space-x-4">
<!-- Cart button --> <!-- Cart button -->
<button <button
@ -418,6 +419,15 @@ const resetPriceFilters = () => {
{{ cartCount }} {{ cartCount }}
</span> </span>
</button> </button>
<!-- Login button -->
<a
href="/admin/dashboard"
class="p-2 rounded-full hover:bg-amber-50 text-slate-600 transition-colors cursor-pointer"
aria-label="Login"
>
<LogIn class="w-4.5 h-4.5 text-amber-600" />
</a>
</div> </div>
</div> </div>
</header> </header>