Files
hatame.andarza09/resources/views/layouts/hero.blade.php
T

326 lines
5.3 KiB
PHP

<section class="flight-hero">
<div class="container">
<div class="flight-hero-content">
<span>
سفر بعدی شما از اینجا شروع می‌شود
</span>
<h1>
پرواز خود را
<span>پیدا کنید</span>
</h1>
<p>
مبدا، مقصد سفر خود را انتخاب کنید.
</p>
</div>
<div class="flight-search-card">
<div class="flight-search-header">
<div>
<h3>
جستجوی پرواز
</h3>
<span>
اطلاعات سفر خود را وارد کنید
</span>
</div>
<div class="flight-type">
<label>
<input
type="radio"
name="trip_type"
value="one_way"
checked
>
یک طرفه
</label>
<label>
<input
type="radio"
name="trip_type"
value="round_trip"
>
رفت و برگشت
</label>
</div>
</div>
<form action="{{ route('flights') }}" method="GET">
<select name="origin">
<option value="">مبدا</option>
@foreach($flights ?? [] as $flight)
<option value="{{ $flight->origin }}">
{{ $flight->origin }}
</option>
@endforeach
</select>
<select name="destination">
<option value="">مقصد</option>
@foreach($flights ?? [] as $flight)
<option value="{{ $flight->destination }}">
{{ $flight->destination }}
</option>
@endforeach
</select>
<button type="submit">
جستجو
</button>
</form>
</div>
</div>
</section>
<style>
.flight-hero {
padding: 80px 0 100px;
background:
linear-gradient(
135deg,
#09203f,
#176b87
);
color: #fff;
}
.flight-hero-content {
text-align: center;
margin-bottom: 40px;
}
.flight-badge {
display: inline-block;
padding: 8px 18px;
margin-bottom: 18px;
border-radius: 30px;
background: rgba(255,255,255,.12);
font-size: 14px;
}
.flight-hero h1 {
margin: 0;
font-size: 48px;
font-weight: 800;
}
.flight-hero h1 span {
color: #ffc107;
}
.flight-hero p {
margin-top: 15px;
font-size: 17px;
opacity: .85;
}
.flight-search-card {
max-width: 1100px;
margin: auto;
padding: 30px;
background: #fff;
border-radius: 18px;
color: #263238;
box-shadow:
0 20px 60px rgba(0,0,0,.25);
}
.flight-search-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
}
.flight-search-header h3 {
margin: 0 0 5px;
}
.flight-search-header span {
color: #78909c;
font-size: 13px;
}
.flight-type {
display: flex;
gap: 20px;
font-size: 14px;
}
.flight-fields {
display: grid;
grid-template-columns:
repeat(3, 1fr);
gap: 18px;
}
.flight-field label {
display: block;
margin-bottom: 8px;
font-size: 13px;
font-weight: 600;
}
.flight-field select,
.flight-field input {
width: 100%;
height: 50px;
padding: 0 12px;
border: 1px solid #e0e6ed;
border-radius: 9px;
background: #f8fafc;
outline: none;
}
.flight-field select:focus,
.flight-field input:focus {
border-color: #1976d2;
background: #fff;
}
.flight-button-wrapper {
display: flex;
align-items: end;
}
.flight-search-button {
width: 100%;
height: 50px;
border: none;
border-radius: 9px;
background: #1976d2;
color: #fff;
font-weight: 700;
cursor: pointer;
}
.flight-search-button:hover {
background: #125ca8;
}
@media (max-width: 768px) {
.flight-hero {
padding: 60px 15px 70px;
}
.flight-hero h1 {
font-size: 34px;
}
.flight-search-header {
flex-direction: column;
align-items: flex-start;
gap: 15px;
}
.flight-fields {
grid-template-columns: 1fr;
}
}
</style>