Skip to content

Commit

Permalink
Merge pull request #172 from adwinying/feature/client-footer
Browse files Browse the repository at this point in the history
Init client footer component
  • Loading branch information
adwinying authored Jan 29, 2024
2 parents 72ec14d + ee90129 commit 27ed09f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions resources/views/components/ui-footer.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<footer class="w-full bg-slate-800 text-gray-50">
<div class="container mx-auto px-3 flex flex-col md:flex-row items-start justify-between">
<!-- Logo -->
<div class="px-4 py-2 md:px-6 md:py-4 inline-block bg-white font-display text-lg text-black md:text-2xl text-center rounded-b shadow">
<a href="/">
<img src="/img/logo.svg" alt="Hotel Hamlet Logo" class="h-16 md:h-20 w-auto mb-2">
<p class="leading-tight">Hotel<br>Hamlet</p>
</a>
</div>

<!-- Hotel List -->
<div class="py-10 space-y-1">
<a class="block text-2xl font-bold text-white hover:text-gray-100 mb-2" href="/hotels">Our Hotels</a>
<a class="block leading-tight text-gray-300 hover:text-gray-400 transition-colors" href="/hotels/city">Hotel Hamlet City</a>
<a class="block leading-tight text-gray-300 hover:text-gray-400 transition-colors" href="/hotels/beachside">Hotel Hamlet Beachside</a>
<a class="block leading-tight text-gray-300 hover:text-gray-400 transition-colors" href="/hotels/ski">Hotel Hamlet Ski Resort</a>
<a class="block leading-tight text-gray-300 hover:text-gray-400 transition-colors" href="/hotels/campgrounds">Hotel Hamlet Campgrounds</a>
<a class="block leading-tight text-gray-300 hover:text-gray-400 transition-colors" href="/hotels/airport">Hotel Hamlet Airport Express</a>
</div>

<!-- Sitemap -->
<div class="py-10 space-y-2">
<a class="block text-2xl font-bold text-white hover:text-gray-100" href="/home">Home</a>
<a class="block text-2xl font-bold text-white hover:text-gray-100" href="/about">About Us</a>
<a class="block text-2xl font-bold text-white hover:text-gray-100" href="/news">News</a>
<a class="block text-2xl font-bold text-white hover:text-gray-100" href="/reservation">Book A Room</a>
<a class="block text-2xl font-bold text-white hover:text-gray-100" href="/contact">Contact Us</a>
</div>

<!-- Admin -->
<div class="py-10 space-y-2">
<a class="block text-2xl font-bold text-white hover:text-gray-100" href="/admin">Admin Login</a>
</div>
</div>

<div class="container mx-auto px-3 py-10">
&copy; {{ date('Y') }} Hotel Hamlet. All rights reserved.
</div>
</footer>
2 changes: 1 addition & 1 deletion resources/views/components/ui-navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="md:hidden fixed inset-0 h-screen bg-black/80 z-40" x-show="open" x-transition @click="open = false"></div>

<!-- Menu list -->
<div class="fixed top-0 bottom-0 right-0 translate-x-72 md:translate-x-0 w-72 h-screen z-50 p-6 bg-white shadow md:static md:w-auto md:h-14 flex flex-col md:flex-row gap-x-8 gap-y-4 md:items-center md:shadow-none" x-bind:class="open ? 'translate-x-0 transition-all' : 'transition-all'">
<div class="fixed top-0 bottom-0 -right-72 md:translate-x-0 duration-300 w-72 h-screen z-50 p-6 bg-white shadow md:static md:w-auto md:h-14 flex flex-col md:flex-row gap-x-8 gap-y-4 md:items-center md:shadow-none" x-bind:class="open ? '-translate-x-72 transition-all' : 'transition-all'">
<button class="md:hidden self-end font-bold text-2xl px-2" @click="open = false">&cross;</button>
<a class="text-gray-700 hover:text-gray-500 transition-colors font-bold text-lg md:text-md" href="/about">About</a>
<a class="text-gray-700 hover:text-gray-500 transition-colors font-bold text-lg md:text-md" href="/hotels">Our Hotels</a>
Expand Down

0 comments on commit 27ed09f

Please sign in to comment.