381 lines
8.4 KiB
PHP
381 lines
8.4 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>JMW Mobil Bekas</title>
|
|
<style>
|
|
:root {
|
|
font-family: Inter, system-ui, sans-serif;
|
|
color: #111827;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
|
|
}
|
|
|
|
.page-shell {
|
|
max-width: 1180px;
|
|
margin: 0 auto;
|
|
padding: 28px 24px 56px;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 34px;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-weight: 900;
|
|
color: #111827;
|
|
text-decoration: none;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.brand-mark {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 14px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: #4338ca;
|
|
color: white;
|
|
box-shadow: 0 16px 34px rgba(67, 56, 202, 0.22);
|
|
}
|
|
|
|
.nav-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.button-primary,
|
|
.button-secondary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
border: none;
|
|
border-radius: 999px;
|
|
padding: 13px 22px;
|
|
font-weight: 800;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, background 0.2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.button-primary {
|
|
background: #4338ca;
|
|
color: #ffffff;
|
|
box-shadow: 0 18px 40px rgba(67, 56, 202, 0.18);
|
|
}
|
|
|
|
.button-primary:hover {
|
|
transform: translateY(-1px);
|
|
background: #3730a3;
|
|
}
|
|
|
|
.button-secondary {
|
|
background: #ffffff;
|
|
color: #4338ca;
|
|
border: 1px solid #c7d2fe;
|
|
box-shadow: 0 12px 24px rgba(67, 56, 202, 0.08);
|
|
}
|
|
|
|
.button-secondary:hover {
|
|
transform: translateY(-1px);
|
|
background: #eef2ff;
|
|
}
|
|
|
|
.hero {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
|
|
gap: 28px;
|
|
align-items: stretch;
|
|
margin-bottom: 36px;
|
|
}
|
|
|
|
.hero-copy {
|
|
padding: 44px 0;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 18px;
|
|
color: #4338ca;
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.16em;
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.hero-copy h1 {
|
|
margin: 0;
|
|
font-size: clamp(2.6rem, 5vw, 4.6rem);
|
|
line-height: 1.02;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.hero-copy p {
|
|
margin: 20px 0 0;
|
|
max-width: 650px;
|
|
color: #475569;
|
|
line-height: 1.8;
|
|
font-size: 1.04rem;
|
|
}
|
|
|
|
.hero-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 14px;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.hero-panel {
|
|
background: #ffffff;
|
|
border: 1px solid rgba(148, 163, 184, 0.22);
|
|
border-radius: 28px;
|
|
padding: 22px;
|
|
box-shadow: 0 30px 90px rgba(15, 23, 42, 0.1);
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.panel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.panel-header h2 {
|
|
margin: 0;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.count-badge {
|
|
padding: 8px 12px;
|
|
border-radius: 999px;
|
|
background: #eef2ff;
|
|
color: #4338ca;
|
|
font-weight: 900;
|
|
font-size: 0.82rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.featured-list {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.featured-card {
|
|
display: grid;
|
|
grid-template-columns: 112px 1fr;
|
|
gap: 14px;
|
|
align-items: center;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
padding: 10px;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 18px;
|
|
background: #ffffff;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.featured-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
|
|
}
|
|
|
|
.featured-card img {
|
|
width: 112px;
|
|
aspect-ratio: 4 / 3;
|
|
object-fit: cover;
|
|
border-radius: 14px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.featured-card h3 {
|
|
margin: 0 0 8px;
|
|
font-size: 1rem;
|
|
line-height: 1.25;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.featured-card p {
|
|
margin: 0;
|
|
color: #475569;
|
|
font-weight: 800;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.feature-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 18px;
|
|
}
|
|
|
|
.feature-item {
|
|
background: rgba(255, 255, 255, 0.84);
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
border-radius: 22px;
|
|
padding: 22px;
|
|
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
|
|
}
|
|
|
|
.feature-item span {
|
|
width: 42px;
|
|
height: 42px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 14px;
|
|
background: #eef2ff;
|
|
color: #4338ca;
|
|
font-weight: 900;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.feature-item h2 {
|
|
margin: 0;
|
|
font-size: 1.05rem;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.feature-item p {
|
|
margin: 10px 0 0;
|
|
color: #475569;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.empty-preview {
|
|
padding: 28px;
|
|
text-align: center;
|
|
color: #64748b;
|
|
border: 1px dashed #cbd5e1;
|
|
border-radius: 18px;
|
|
background: #f8fafc;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.hero {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero-copy {
|
|
padding: 18px 0 0;
|
|
}
|
|
|
|
.feature-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.page-shell {
|
|
padding: 22px 16px 44px;
|
|
}
|
|
|
|
.topbar {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.nav-actions {
|
|
width: 100%;
|
|
}
|
|
|
|
.nav-actions a {
|
|
flex: 1;
|
|
}
|
|
|
|
.featured-card {
|
|
grid-template-columns: 96px 1fr;
|
|
}
|
|
|
|
.featured-card img {
|
|
width: 96px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page-shell">
|
|
<nav class="topbar">
|
|
<a href="{{ url('/') }}" class="brand">
|
|
<span class="brand-mark">JMW</span>
|
|
<span>JMW Mobil Bekas</span>
|
|
</a>
|
|
<div class="nav-actions">
|
|
<a href="{{ route('login') }}" class="button-secondary">Login</a>
|
|
<a href="{{ route('register') }}" class="button-primary">Register</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<main class="hero">
|
|
<section class="hero-copy">
|
|
<p class="eyebrow">Marketplace Mobil Bekas</p>
|
|
<h1>Temukan Mobil Bekas yang Cocok untuk anda.</h1>
|
|
<p>Cek daftar mobil, bandingkan harga, dan gunakan rekomendasi budget untuk membantu memilih kendaraan yang paling sesuai.</p>
|
|
</section>
|
|
|
|
<aside class="hero-panel">
|
|
<div class="panel-header">
|
|
<h2>Mobil Terbaru</h2>
|
|
<span class="count-badge">{{ $availableCount }} listing</span>
|
|
</div>
|
|
|
|
@if($featuredCars->isEmpty())
|
|
<div class="empty-preview">Belum ada mobil tersedia untuk ditampilkan.</div>
|
|
@else
|
|
<div class="featured-list">
|
|
@foreach($featuredCars as $category)
|
|
<a href="{{ route('login') }}" class="featured-card">
|
|
<img src="{{ $category->image_url }}" alt="{{ $category->image ? $category->name : 'Gambar default ' . $category->name }}" />
|
|
<div>
|
|
<h3>{{ $category->name }}</h3>
|
|
<p>Rp {{ number_format($category->price, 0, ',', '.') }}</p>
|
|
</div>
|
|
</a>
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
</aside>
|
|
</main>
|
|
|
|
<section class="feature-grid">
|
|
<article class="feature-item">
|
|
<span>01</span>
|
|
<h2>Telusuri Mobil Yang Tersedia</h2>
|
|
<p>Lihat mobil yang tersedia dengan foto, harga, tahun, dan detail singkat.</p>
|
|
</article>
|
|
<article class="feature-item">
|
|
<span>02</span>
|
|
<h2>Cari Sesuai Budget</h2>
|
|
<p>Masukkan budget maksimal untuk mendapat rekomendasi mobil yang paling mendekati.</p>
|
|
</article>
|
|
<article class="feature-item">
|
|
<span>03</span>
|
|
<h2>Login Saat Siap</h2>
|
|
<p>Masuk ke akun untuk menyimpan favorit dan melanjutkan proses pembelian.</p>
|
|
</article>
|
|
</section>
|
|
</div>
|
|
</body>
|
|
</html>
|