Skip to content

Commit

Permalink
Merge pull request #173 from adwinying/feature/client-about-page
Browse files Browse the repository at this point in the history
Add client about page
  • Loading branch information
adwinying authored Jan 30, 2024
2 parents 27ed09f + cb4f1f0 commit 49abb63
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 3 deletions.
19 changes: 19 additions & 0 deletions resources/views/client/about.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<x-layout-page title="About Us">
<div class="container lg:max-w-4xl mx-auto px-3 py-12 md:py-32 space-y-3">
<p class="first-letter:uppercase first-letter:text-7xl first-letter:font-bold first-letter:mr-2 first-letter:float-left">Welcome to Hotel Hamlet, where luxury meets comfort at every destination. With multiple locations strategically placed to cater to diverse preferences, Hotel Hamlet is your go-to haven for an unforgettable stay. Whether you're traveling for business or leisure, our commitment to exceptional service and warm hospitality ensures that your experience is nothing short of extraordinary.</p>

<p>At Hotel Hamlet, we believe in the art of relaxation. Each of our locations is designed to provide a unique ambiance, allowing you to choose the setting that best suits your needs. From bustling city centers to serene coastal retreats, we have carefully crafted our hotels to reflect the charm and character of their surroundings.</p>

<p>Our rooms and suites are thoughtfully appointed to offer a blend of modern elegance and timeless comfort. Immerse yourself in plush bedding, indulge in our premium amenities, and enjoy the convenience of cutting-edge technology. Whether you're looking for a peaceful escape or a vibrant urban oasis, Hotel Hamlet is dedicated to exceeding your expectations.</p>

<p>Dining at Hotel Hamlet is a culinary journey that celebrates local flavors and international cuisine. Our restaurants are curated to tantalize your taste buds, featuring expertly crafted menus that showcase the finest ingredients. Whether you're savoring a gourmet meal or grabbing a quick bite, our culinary offerings are designed to delight every palate.</p>

<p>For those seeking wellness and rejuvenation, our hotels boast state-of-the-art fitness centers, soothing spa facilities, and refreshing pools. Take a moment to unwind and recharge, knowing that Hotel Hamlet is committed to your well-being.</p>

<p>We understand the importance of seamless events and meetings, and our venues are equipped with the latest technology and professional staff to ensure your gatherings are a success. From intimate boardrooms to spacious banquet halls, Hotel Hamlet is your partner in creating memorable and impactful events.</p>

<p>Our commitment to sustainability is reflected in our eco-friendly practices. Hotel Hamlet is dedicated to minimizing our environmental footprint and contributing to the well-being of the communities we serve.</p>

<p>Discover the unparalleled hospitality of Hotel Hamlet across our various locations. Whether you're exploring a vibrant city, relaxing by the beach, or embracing the tranquility of the countryside, our hotels are designed to make every moment special. Welcome to Hotel Hamlet, where exceptional stays await at every turn.</p>
</div>
</x-layout-page>
13 changes: 13 additions & 0 deletions resources/views/components/layout-page.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@extends('layouts.client')

<header>
<x-ui-navbar />

<div class="h-56 md:h-72 flex justify-center items-center bg-gray-300">
<h1 class="text-3xl md:text-5xl font-bold">{{ $title }}</h1>
</div>
</header>

{{ $slot }}

<x-ui-footer />
1 change: 1 addition & 0 deletions resources/views/components/ui-footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<!-- 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>
<a class="block text-2xl font-bold text-white hover:text-gray-100" href="//github.com/adwinying/hotel-hamlet" target="_blank">Github</a>
</div>
</div>

Expand Down
1 change: 1 addition & 0 deletions resources/views/layouts/client.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
</head>
<body class="bg-gray-50">
@yield('content')
@livewireScripts
</body>
</html>
4 changes: 1 addition & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,4 @@
});
});

Route::get('/', function () {
return view('welcome');
});
Route::view('/about', 'client.about');
15 changes: 15 additions & 0 deletions tests/Feature/AboutIndexTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Tests\Feature;

use Tests\TestCase;

class AboutIndexTest extends TestCase
{
public function testCanShowPage(): void
{
$this->get('/about')
->assertStatus(200)
->assertSee('About Us');
}
}

0 comments on commit 49abb63

Please sign in to comment.