1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-07 20:02:23 +04:00
Files
tabler/preview/pages/marketing/real-estate.astro
T
2026-07-28 00:09:02 +02:00

81 lines
2.9 KiB
Plaintext

---
// Port of preview/pages/marketing/real-estate.html (no title front matter).
// Uses the `real-estate` global data (imported from @data/real-estate.json).
// Asset base is "../" (page|relative for the one-level-deep marketing pages).
import MarketingLayout from '@shared/layouts/MarketingLayout.astro';
import SectionDivider from '@shared/components/marketing/SectionDivider.astro';
import Icon from '@shared/components/Icon.astro';
import realEstate from '@data/real-estate.json';
interface Building {
name: string;
address: string;
baths: number;
bedrooms: number;
image: string;
price: string;
}
const buildings = realEstate as Building[];
---
<MarketingLayout>
<header class="img-bg" style="background-image: url(../static/marketing/photo-1564013799919-ab600027ffc6.jpg)">
<div class="hero position-relative bg-primary py-12" style="--tblr-bg-opacity: 0.9">
<div class="container-narrow">
<h1 class="hero-title text-white">Find your forever home</h1>
<p class="hero-description mb-5 text-white text-opacity-50">It's time to find the home of your dreams, and you search begins here. We make it easy to find the property that fits your needs and budget.</p>
<div class="row gx-lg-5 justify-content-center">
<div class="col-xl-6 col-lg-8 text-center">
<form novalidate="" class="row row-cols-1 row-cols-md-auto g-3 align-items-center">
<div class="col flex-grow-1">
<input id="inputEmail" type="text" placeholder="Search properties near you..." class="form-control form-control-solid" aria-label="Search properties near you" />
</div>
<div class="col"><button type="submit" class="btn btn-teal fw-500">Search</button></div>
</form>
</div>
</div>
</div>
</div>
</header>
<section class="section section-white">
<SectionDivider divider="arc" />
<div class="container">
<div class="row g-lg-6">
{
buildings.map((building) => (
<div class="col-md-6 col-lg-4">
<div class="card">
<a href="#">
<div class="img-bg ratio ratio-4x3 card-img-top" style={`background-image: url(../static/marketing/${building.image})`}></div>
</a>
<div class="card-body">
<div class="h1 mb-2 fw-bold">{building.price}</div>
<div>
<div class="text-secondary">{building.address}, California USA</div>
<div class="d-flex mb-4 text-secondary">
<div class="d-block d-flex align-items-center me-3">
<Icon name="bed" class="me-1" />
{building.bedrooms} beds
</div>
<div class="d-block d-flex align-items-center">
<Icon name="bath" class="me-1" />
{building.baths} baths
</div>
</div>
<a href="#" class="btn btn-primary py-2 px-3">See details</a>
</div>
</div>
</div>
</div>
))
}
</div>
</div>
</section>
</MarketingLayout>