Real Estate — Urban Condo Tower Landing
A sleek, dark urban condo-tower landing page for the fictional Meridian Heights development. A glassy chrome-and-blue hero frames a gradient tower silhouette and a live floor-availability ticker, followed by a residences grid spanning studio to penthouse with mini floorplans and from-prices, an amenities strip of icon tiles, and an interactive floor selector that reveals remaining units per floor band with status badges. A validating register-interest form closes the page with toast feedback.
MCP
Kod
:root {
/* Urban Condo Tower palette */
--charcoal: #1a1d21;
--charcoal-2: #21262c;
--charcoal-3: #2b3138;
--glass: #5a8fb0;
--glass-d: #46758f;
--glass-50: rgba(90, 143, 176, 0.12);
--chrome: #cfd6dd;
--chrome-2: #aab3bc;
--ink: #11141a;
--paper: #f4f6f8;
--white: #ffffff;
--muted: #8b96a1;
--muted-d: #5d6770;
--line: rgba(207, 214, 221, 0.16);
--line-strong: rgba(207, 214, 221, 0.3);
--ok: #4cae8b;
--warn: #d6a44b;
--danger: #d05a4a;
--r-sm: 8px;
--r-md: 14px;
--r-lg: 22px;
--shadow-sm: 0 2px 8px rgba(8, 11, 15, 0.18);
--shadow-md: 0 12px 30px rgba(8, 11, 15, 0.35);
--shadow-lg: 0 30px 70px rgba(8, 11, 15, 0.45);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: "Inter", system-ui, -apple-system, sans-serif;
background: var(--charcoal);
color: var(--chrome);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3 {
margin: 0;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--white);
}
a {
color: inherit;
text-decoration: none;
}
img {
max-width: 100%;
}
.section {
max-width: 1180px;
margin: 0 auto;
padding: 96px 28px;
}
.kicker {
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--glass);
margin: 0 0 14px;
}
.kicker-light {
color: var(--chrome-2);
}
.section-head {
max-width: 640px;
margin-bottom: 48px;
}
.section-head h2 {
font-size: clamp(2rem, 4vw, 2.9rem);
letter-spacing: -0.03em;
}
.section-lead {
margin: 16px 0 0;
color: var(--muted);
font-size: 1.05rem;
}
.section-lead-light {
color: var(--chrome-2);
}
/* ---------- TOPBAR ---------- */
.topbar {
position: sticky;
top: 0;
z-index: 40;
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 28px;
background: rgba(26, 29, 33, 0.72);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--line);
}
.brand {
display: flex;
align-items: center;
gap: 11px;
}
.brand-mark {
width: 26px;
height: 26px;
border-radius: 6px;
background: linear-gradient(145deg, var(--glass), var(--chrome));
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), var(--shadow-sm);
}
.brand-name {
font-weight: 700;
letter-spacing: 0.18em;
font-size: 0.85rem;
color: var(--white);
}
.brand-name em {
font-style: normal;
color: var(--glass);
margin-left: 2px;
}
.nav {
display: flex;
align-items: center;
gap: 28px;
}
.nav a {
font-size: 0.82rem;
font-weight: 500;
letter-spacing: 0.04em;
color: var(--chrome-2);
transition: color 0.18s ease;
}
.nav a:hover {
color: var(--white);
}
.nav-cta {
padding: 9px 18px;
border-radius: 999px;
border: 1px solid var(--line-strong);
color: var(--white) !important;
background: var(--glass-50);
transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-cta:hover {
background: rgba(90, 143, 176, 0.24);
border-color: var(--glass);
}
/* ---------- HERO ---------- */
.hero {
position: relative;
overflow: hidden;
min-height: 88vh;
display: flex;
flex-direction: column;
justify-content: center;
padding: 80px 28px 64px;
background:
radial-gradient(120% 90% at 80% -10%, rgba(90, 143, 176, 0.28), transparent 55%),
radial-gradient(80% 60% at 10% 110%, rgba(43, 49, 56, 0.9), transparent 60%),
linear-gradient(180deg, #12151a 0%, #1a1d21 60%, #15181d 100%);
}
.hero-content {
position: relative;
z-index: 3;
max-width: 1180px;
margin: 0 auto;
width: 100%;
}
.eyebrow {
display: inline-block;
font-size: 0.74rem;
font-weight: 600;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--glass);
padding: 7px 14px;
border: 1px solid var(--line-strong);
border-radius: 999px;
margin: 0 0 24px;
background: rgba(90, 143, 176, 0.08);
}
.hero h1 {
font-size: clamp(2.6rem, 7vw, 5rem);
line-height: 1.02;
letter-spacing: -0.04em;
}
.hero-sub {
max-width: 520px;
margin: 22px 0 0;
color: var(--chrome-2);
font-size: 1.12rem;
}
.hero-actions {
display: flex;
gap: 14px;
margin: 34px 0 0;
flex-wrap: wrap;
}
.hero-stats {
display: flex;
gap: 44px;
margin: 52px 0 0;
padding-top: 30px;
border-top: 1px solid var(--line);
flex-wrap: wrap;
}
.hero-stats dt {
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--muted);
}
.hero-stats dd {
margin: 4px 0 0;
font-size: 1.7rem;
font-weight: 700;
color: var(--white);
letter-spacing: -0.02em;
}
/* tower silhouette */
.hero-tower {
position: absolute;
top: -4%;
right: 4%;
width: 38%;
max-width: 460px;
height: 108%;
z-index: 1;
filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
.tower-core {
position: absolute;
inset: 0;
clip-path: polygon(28% 0, 72% 0, 86% 100%, 14% 100%);
background: linear-gradient(95deg, #20262d 0%, #2c343c 40%, #161a1f 100%);
}
.tower-glass {
position: absolute;
inset: 0;
clip-path: polygon(28% 0, 72% 0, 86% 100%, 14% 100%);
background:
linear-gradient(100deg, rgba(90, 143, 176, 0.55) 0%, rgba(90, 143, 176, 0.05) 30%, rgba(207, 214, 221, 0.18) 60%, rgba(90, 143, 176, 0.4) 100%);
mix-blend-mode: screen;
opacity: 0.85;
}
.tower-floors {
position: absolute;
inset: 0;
clip-path: polygon(28% 0, 72% 0, 86% 100%, 14% 100%);
background-image: repeating-linear-gradient(
180deg,
rgba(0, 0, 0, 0.32) 0 2px,
transparent 2px 22px
),
repeating-linear-gradient(
90deg,
rgba(207, 214, 221, 0.1) 0 1px,
transparent 1px 16px
);
}
.tower-glow {
position: absolute;
top: 30%;
left: 50%;
transform: translateX(-50%);
width: 60%;
height: 40%;
background: radial-gradient(closest-side, rgba(90, 143, 176, 0.5), transparent);
filter: blur(30px);
}
/* ticker */
.ticker {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 4;
display: flex;
align-items: center;
gap: 0;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
background: rgba(17, 20, 26, 0.5);
overflow: hidden;
}
.ticker-label {
position: relative;
z-index: 2;
flex: 0 0 auto;
padding: 14px 20px;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--charcoal);
background: var(--glass);
white-space: nowrap;
}
.ticker-track {
display: flex;
gap: 0;
white-space: nowrap;
animation: ticker-scroll 32s linear infinite;
}
.ticker:hover .ticker-track {
animation-play-state: paused;
}
.ticker-item {
padding: 14px 26px;
font-size: 0.82rem;
letter-spacing: 0.02em;
color: var(--chrome-2);
border-right: 1px solid var(--line);
}
.ticker-item b {
color: var(--white);
font-weight: 600;
}
.ticker-item .dot {
display: inline-block;
width: 7px;
height: 7px;
border-radius: 50%;
margin-right: 8px;
vertical-align: middle;
}
.dot-ok { background: var(--ok); box-shadow: 0 0 8px rgba(76, 174, 139, 0.8); }
.dot-low { background: var(--warn); box-shadow: 0 0 8px rgba(214, 164, 75, 0.8); }
.dot-sold { background: var(--muted-d); }
@keyframes ticker-scroll {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
/* ---------- BUTTONS ---------- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
font-family: inherit;
font-size: 0.86rem;
font-weight: 600;
letter-spacing: 0.04em;
padding: 13px 24px;
border-radius: 999px;
border: 1px solid transparent;
cursor: pointer;
transition: transform 0.16s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
background: linear-gradient(135deg, var(--glass), var(--glass-d));
color: var(--white);
box-shadow: 0 8px 24px rgba(90, 143, 176, 0.35);
}
.btn-primary:hover {
box-shadow: 0 12px 32px rgba(90, 143, 176, 0.5);
transform: translateY(-1px);
}
.btn-ghost {
background: transparent;
border-color: var(--line-strong);
color: var(--chrome);
}
.btn-ghost:hover {
border-color: var(--chrome);
background: rgba(207, 214, 221, 0.06);
}
.btn-block { width: 100%; }
/* ---------- RESIDENCES ---------- */
.res-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 22px;
}
.res-card {
display: flex;
flex-direction: column;
background: var(--charcoal-2);
border: 1px solid var(--line);
border-radius: var(--r-lg);
overflow: hidden;
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.res-card:hover {
transform: translateY(-4px);
border-color: var(--line-strong);
box-shadow: var(--shadow-md);
}
.res-photo {
position: relative;
aspect-ratio: 4 / 3;
background-size: cover;
display: flex;
align-items: flex-end;
padding: 14px;
}
.res-photo::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 40%, rgba(13, 16, 20, 0.65));
}
.res-badges {
position: relative;
z-index: 2;
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.badge {
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.04em;
padding: 5px 11px;
border-radius: 999px;
background: rgba(17, 20, 26, 0.72);
border: 1px solid var(--line-strong);
color: var(--chrome);
backdrop-filter: blur(6px);
}
.badge-price {
background: var(--chrome);
color: var(--ink);
border-color: transparent;
}
.badge-status-ok { color: var(--ok); }
.badge-status-low { color: var(--warn); }
.res-floorplan {
position: absolute;
top: 14px;
right: 14px;
z-index: 2;
width: 56px;
height: 56px;
border-radius: 10px;
background: rgba(17, 20, 26, 0.7);
border: 1px solid var(--line-strong);
backdrop-filter: blur(6px);
padding: 8px;
}
.res-floorplan svg { width: 100%; height: 100%; display: block; }
.res-floorplan svg path,
.res-floorplan svg rect,
.res-floorplan svg line {
stroke: var(--chrome-2);
fill: none;
stroke-width: 2;
}
.res-body {
padding: 20px;
display: flex;
flex-direction: column;
gap: 12px;
flex: 1;
}
.res-name {
font-size: 1.3rem;
letter-spacing: -0.02em;
}
.res-spec {
display: flex;
gap: 16px;
font-size: 0.82rem;
color: var(--muted);
flex-wrap: wrap;
}
.res-spec span b {
color: var(--chrome);
font-weight: 600;
}
.res-desc {
font-size: 0.9rem;
color: var(--muted);
margin: 0;
}
.res-foot {
margin-top: auto;
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 14px;
border-top: 1px solid var(--line);
}
.res-price {
font-size: 0.78rem;
color: var(--muted);
}
.res-price b {
display: block;
font-size: 1.35rem;
color: var(--white);
letter-spacing: -0.02em;
}
.res-cta {
font-size: 0.8rem;
font-weight: 600;
color: var(--glass);
background: none;
border: none;
cursor: pointer;
padding: 8px 4px;
font-family: inherit;
transition: color 0.16s ease;
}
.res-cta:hover { color: var(--chrome); }
.res-cta::after { content: " →"; }
/* ---------- AMENITIES ---------- */
.section-dark {
max-width: none;
background:
radial-gradient(80% 100% at 100% 0, rgba(90, 143, 176, 0.14), transparent 60%),
var(--charcoal-2);
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.section-dark .section-head,
.section-dark .amen-grid {
max-width: 1180px;
margin-left: auto;
margin-right: auto;
}
.amen-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 16px;
}
.amen-tile {
padding: 26px 22px;
border-radius: var(--r-md);
background: linear-gradient(160deg, var(--charcoal-3), var(--charcoal));
border: 1px solid var(--line);
transition: transform 0.18s ease, border-color 0.18s ease;
}
.amen-tile:hover {
transform: translateY(-3px);
border-color: var(--glass);
}
.amen-icon {
width: 44px;
height: 44px;
border-radius: 11px;
display: grid;
place-items: center;
background: var(--glass-50);
border: 1px solid var(--line-strong);
margin-bottom: 16px;
}
.amen-icon svg { width: 22px; height: 22px; stroke: var(--glass); fill: none; stroke-width: 1.7; }
.amen-tile h3 {
font-size: 1.05rem;
letter-spacing: -0.01em;
}
.amen-tile p {
margin: 8px 0 0;
font-size: 0.86rem;
color: var(--muted);
}
/* ---------- FLOOR SELECTOR ---------- */
.floor-tool {
display: grid;
grid-template-columns: 168px 1fr;
gap: 26px;
align-items: start;
}
.floor-rail {
display: flex;
flex-direction: column;
gap: 8px;
position: sticky;
top: 86px;
}
.floor-btn {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-family: inherit;
text-align: left;
padding: 13px 15px;
border-radius: var(--r-sm);
border: 1px solid var(--line);
background: var(--charcoal-2);
color: var(--chrome-2);
cursor: pointer;
transition: all 0.16s ease;
}
.floor-btn:hover {
border-color: var(--line-strong);
color: var(--white);
}
.floor-btn[aria-selected="true"] {
background: linear-gradient(135deg, var(--glass), var(--glass-d));
border-color: transparent;
color: var(--white);
box-shadow: 0 8px 22px rgba(90, 143, 176, 0.3);
}
.floor-btn .fb-name {
font-weight: 600;
font-size: 0.86rem;
}
.floor-btn .fb-floors {
display: block;
font-size: 0.7rem;
opacity: 0.7;
margin-top: 2px;
}
.floor-btn .fb-count {
flex: 0 0 auto;
font-size: 0.72rem;
font-weight: 700;
padding: 3px 8px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.25);
}
.floor-panel {
min-height: 320px;
}
.fp-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
margin-bottom: 18px;
padding-bottom: 16px;
border-bottom: 1px solid var(--line);
flex-wrap: wrap;
}
.fp-head h3 {
font-size: 1.5rem;
letter-spacing: -0.02em;
}
.fp-head .fp-sub {
color: var(--muted);
font-size: 0.86rem;
}
.fp-premium {
font-size: 0.78rem;
font-weight: 600;
color: var(--glass);
}
.unit-list {
display: grid;
gap: 10px;
}
.unit-row {
display: grid;
grid-template-columns: 64px 1fr auto auto;
align-items: center;
gap: 16px;
padding: 15px 18px;
border-radius: var(--r-md);
border: 1px solid var(--line);
background: var(--charcoal-2);
transition: border-color 0.16s ease, transform 0.16s ease;
}
.unit-row:hover { border-color: var(--line-strong); transform: translateX(2px); }
.unit-row.is-sold { opacity: 0.5; }
.unit-no {
font-weight: 700;
font-size: 0.95rem;
color: var(--white);
}
.unit-meta {
display: flex;
flex-direction: column;
gap: 2px;
}
.unit-type { font-size: 0.9rem; color: var(--chrome); font-weight: 500; }
.unit-detail { font-size: 0.78rem; color: var(--muted); }
.unit-price { font-weight: 700; color: var(--white); font-size: 0.98rem; }
.unit-status {
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.04em;
padding: 5px 11px;
border-radius: 999px;
border: 1px solid var(--line-strong);
white-space: nowrap;
}
.us-available { color: var(--ok); border-color: rgba(76, 174, 139, 0.4); }
.us-reserved { color: var(--warn); border-color: rgba(214, 164, 75, 0.4); }
.us-sold { color: var(--muted); }
.unit-row .unit-cta {
grid-column: 1 / -1;
display: none;
}
/* ---------- REGISTER ---------- */
.register {
max-width: 1180px;
}
.register-card {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
border-radius: var(--r-lg);
overflow: hidden;
border: 1px solid var(--line);
background: var(--charcoal-2);
box-shadow: var(--shadow-lg);
}
.register-copy {
padding: 48px;
background:
radial-gradient(90% 90% at 0 0, rgba(90, 143, 176, 0.18), transparent 60%),
linear-gradient(160deg, var(--charcoal-3), var(--charcoal));
}
.register-copy h2 {
font-size: clamp(1.8rem, 3vw, 2.4rem);
letter-spacing: -0.03em;
}
.register-perks {
list-style: none;
padding: 0;
margin: 28px 0 0;
display: grid;
gap: 12px;
}
.register-perks li {
position: relative;
padding-left: 28px;
color: var(--chrome-2);
font-size: 0.92rem;
}
.register-perks li::before {
content: "";
position: absolute;
left: 0;
top: 6px;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--glass-50);
border: 1px solid var(--glass);
box-shadow: inset 0 0 0 3px var(--charcoal-2);
}
.register-form {
padding: 48px;
display: flex;
flex-direction: column;
gap: 16px;
background: var(--charcoal-2);
}
.field {
display: flex;
flex-direction: column;
gap: 7px;
}
.field span {
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.04em;
color: var(--chrome-2);
}
.field input,
.field select {
font-family: inherit;
font-size: 0.92rem;
padding: 12px 14px;
border-radius: var(--r-sm);
border: 1px solid var(--line-strong);
background: var(--charcoal);
color: var(--white);
transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input::placeholder { color: var(--muted-d); }
.field input:focus,
.field select:focus {
outline: none;
border-color: var(--glass);
box-shadow: 0 0 0 3px var(--glass-50);
}
.field.invalid input {
border-color: var(--danger);
box-shadow: 0 0 0 3px rgba(208, 90, 74, 0.2);
}
.form-fine {
margin: 4px 0 0;
font-size: 0.74rem;
color: var(--muted-d);
text-align: center;
}
/* ---------- FOOTER ---------- */
.footer {
border-top: 1px solid var(--line);
padding: 40px 28px;
background: var(--charcoal-2);
}
.footer-inner {
max-width: 1180px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 6px;
align-items: center;
text-align: center;
}
.footer-brand { letter-spacing: 0.2em; }
.footer p { margin: 0; font-size: 0.84rem; color: var(--muted); }
.footer-fine { color: var(--muted-d) !important; font-size: 0.76rem !important; }
/* ---------- TOAST ---------- */
.toast {
position: fixed;
left: 50%;
bottom: 28px;
transform: translate(-50%, 24px);
z-index: 80;
padding: 13px 22px;
border-radius: 999px;
background: var(--chrome);
color: var(--ink);
font-size: 0.86rem;
font-weight: 600;
box-shadow: var(--shadow-md);
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease, transform 0.25s ease;
max-width: calc(100vw - 40px);
}
.toast.show {
opacity: 1;
transform: translate(-50%, 0);
}
/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
.register-card { grid-template-columns: 1fr; }
.register-copy, .register-form { padding: 34px; }
.hero-tower { opacity: 0.45; width: 60%; }
}
@media (max-width: 760px) {
.nav a:not(.nav-cta) { display: none; }
.floor-tool { grid-template-columns: 1fr; }
.floor-rail {
position: static;
flex-direction: row;
overflow-x: auto;
padding-bottom: 6px;
-webkit-overflow-scrolling: touch;
}
.floor-btn { flex: 0 0 auto; min-width: 150px; }
}
@media (max-width: 520px) {
.section { padding: 64px 18px; }
.hero { padding: 64px 18px 0; min-height: auto; }
.hero h1 { font-size: 2.4rem; }
.hero-stats { gap: 24px; }
.hero-stats dd { font-size: 1.35rem; }
.topbar { padding: 13px 18px; }
.ticker-label { padding: 11px 14px; font-size: 0.64rem; }
.res-grid { grid-template-columns: 1fr; }
.amen-grid { grid-template-columns: 1fr; }
.unit-row {
grid-template-columns: 50px 1fr;
grid-auto-rows: auto;
row-gap: 8px;
}
.unit-price { grid-column: 2; justify-self: start; }
.unit-status { grid-column: 2; justify-self: start; }
.register-copy, .register-form { padding: 26px 20px; }
.hero-tower { display: none; }
}
@media (prefers-reduced-motion: reduce) {
* { animation-duration: 0.001ms !important; scroll-behavior: auto; }
.ticker-track { animation: none; }
}/* Meridian Heights — Urban Condo Tower landing
Vanilla JS: floor-availability ticker, residences grid, amenities,
floor selector, register-interest form. No external libraries. */
(function () {
"use strict";
/* ---------- toast helper ---------- */
var toastEl = document.getElementById("toast");
var toastTimer = null;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("show");
}, 2600);
}
function money(n) {
return "$" + n.toLocaleString("en-US");
}
/* ---------- listing imagery via CSS gradients ---------- */
var PHOTOS = [
"linear-gradient(135deg,#2c3a45 0%,#41616f 45%,#8aa9b6 100%)",
"linear-gradient(150deg,#3a3f46 0%,#5a8fb0 60%,#cfd6dd 100%)",
"linear-gradient(120deg,#23303a 0%,#365163 50%,#9fb6c2 100%)",
"linear-gradient(160deg,#2a2e34 0%,#46758f 55%,#b9c6cf 100%)",
"linear-gradient(135deg,#1f262c 0%,#3d6b86 50%,#cfd6dd 100%)"
];
/* tiny floorplan svg generators */
function plan(kind) {
var inner = {
studio: '<rect x="3" y="3" width="34" height="34"/><line x1="3" y1="24" x2="20" y2="24"/><line x1="20" y1="24" x2="20" y2="37"/>',
one: '<rect x="3" y="3" width="34" height="34"/><line x1="20" y1="3" x2="20" y2="37"/><line x1="20" y1="20" x2="37" y2="20"/>',
two: '<rect x="3" y="3" width="34" height="34"/><line x1="3" y1="20" x2="37" y2="20"/><line x1="20" y1="3" x2="20" y2="20"/><line x1="20" y1="20" x2="20" y2="37"/>',
three: '<rect x="3" y="3" width="34" height="34"/><line x1="3" y1="16" x2="37" y2="16"/><line x1="3" y1="28" x2="37" y2="28"/><line x1="20" y1="16" x2="20" y2="37"/>',
penthouse: '<rect x="3" y="3" width="34" height="34"/><line x1="3" y1="14" x2="37" y2="14"/><line x1="14" y1="14" x2="14" y2="37"/><line x1="26" y1="14" x2="26" y2="37"/>'
};
return '<svg viewBox="0 0 40 40" aria-hidden="true">' + (inner[kind] || inner.one) + "</svg>";
}
/* ---------- residences data ---------- */
var RESIDENCES = [
{
name: "The Atrium Studio",
plan: "studio",
beds: "Studio",
bath: "1 Bath",
sqft: 512,
from: 489000,
status: "available",
statusLabel: "12 left",
desc: "Floor-to-ceiling glass, integrated kitchen, and a Juliet balcony facing the river."
},
{
name: "The Riverline One",
plan: "one",
beds: "1 Bed",
bath: "1 Bath",
sqft: 740,
from: 638000,
status: "available",
statusLabel: "21 left",
desc: "Open-plan living with a dedicated home-office nook and a private corner terrace."
},
{
name: "The Chrome Two",
plan: "two",
beds: "2 Bed",
bath: "2 Bath",
sqft: 1080,
from: 945000,
status: "low",
statusLabel: "6 left",
desc: "Split-bedroom layout, chef's island kitchen, and double-aspect skyline views."
},
{
name: "The Cantilever Three",
plan: "three",
beds: "3 Bed",
bath: "2.5 Bath",
sqft: 1465,
from: 1390000,
status: "low",
statusLabel: "3 left",
desc: "Wraparound terrace, family room, and a wine wall framed in brushed chrome."
},
{
name: "The Skyline Penthouse",
plan: "penthouse",
beds: "4 Bed",
bath: "4 Bath",
sqft: 3240,
from: 4200000,
status: "low",
statusLabel: "2 left",
desc: "Two-story crown residence with a private elevator, plunge pool, and 360° terrace."
}
];
function statusClass(s) {
return s === "low" ? "badge-status-low" : "badge-status-ok";
}
function renderResidences() {
var grid = document.getElementById("res-grid");
if (!grid) return;
grid.innerHTML = RESIDENCES.map(function (r, i) {
return (
'<article class="res-card">' +
'<div class="res-photo" style="background-image:' + PHOTOS[i % PHOTOS.length] + '">' +
'<div class="res-floorplan">' + plan(r.plan) + "</div>" +
'<div class="res-badges">' +
'<span class="badge badge-price">From ' + money(r.from) + "</span>" +
'<span class="badge ' + statusClass(r.status) + '">' + r.statusLabel + "</span>" +
"</div>" +
"</div>" +
'<div class="res-body">' +
'<h3 class="res-name">' + r.name + "</h3>" +
'<div class="res-spec">' +
"<span><b>" + r.beds + "</b></span>" +
"<span><b>" + r.bath + "</b></span>" +
"<span><b>" + r.sqft.toLocaleString() + "</b> sq ft</span>" +
"</div>" +
'<p class="res-desc">' + r.desc + "</p>" +
'<div class="res-foot">' +
'<span class="res-price">Starting at<b>' + money(r.from) + "</b></span>" +
'<button class="res-cta" type="button" data-res="' + r.name + '">View floorplan</button>' +
"</div>" +
"</div>" +
"</article>"
);
}).join("");
grid.querySelectorAll(".res-cta").forEach(function (btn) {
btn.addEventListener("click", function () {
toast("Floorplan for " + btn.getAttribute("data-res") + " sent to your sales advisor");
});
});
}
/* ---------- amenities ---------- */
var ICONS = {
rooftop: '<path d="M3 20h18"/><path d="M5 20V9l7-5 7 5v11"/><path d="M9 20v-5h6v5"/>',
gym: '<path d="M4 8v8M20 8v8M7 6v12M17 6v12M7 12h10"/>',
concierge: '<circle cx="12" cy="8" r="3"/><path d="M5 21a7 7 0 0 1 14 0"/>',
pool: '<path d="M3 18c2 0 2-1.5 4-1.5S9 18 11 18s2-1.5 4-1.5S17 18 19 18"/><path d="M3 13c2 0 2-1.5 4-1.5S9 13 11 13"/><path d="M8 16V6a2 2 0 0 1 4 0M16 16V6"/>',
lounge: '<rect x="3" y="11" width="18" height="7" rx="2"/><path d="M5 11V8a3 3 0 0 1 6 0M19 11V8a3 3 0 0 0-6 0"/>',
parking: '<rect x="4" y="4" width="16" height="16" rx="3"/><path d="M9 16V8h3a2.5 2.5 0 0 1 0 5H9"/>'
};
var AMENITIES = [
{ icon: "rooftop", title: "Sky Terrace", desc: "Rooftop garden, fire lounges, and an outdoor cinema on level 42." },
{ icon: "gym", title: "Performance Gym", desc: "2,400 sq ft of equipment with a glass-walled studio and trainers on call." },
{ icon: "concierge", title: "24/7 Concierge", desc: "Dedicated lobby team for packages, bookings, and resident requests." },
{ icon: "pool", title: "Lap Pool & Spa", desc: "Heated 20-meter infinity lane with sauna, steam, and cold plunge." },
{ icon: "lounge", title: "Residents' Lounge", desc: "Co-working bar, private dining room, and a curated library." },
{ icon: "parking", title: "Smart Parking", desc: "EV-ready spaces with app-controlled valet and secure bike storage." }
];
function renderAmenities() {
var grid = document.getElementById("amen-grid");
if (!grid) return;
grid.innerHTML = AMENITIES.map(function (a) {
return (
'<div class="amen-tile">' +
'<div class="amen-icon"><svg viewBox="0 0 24 24" aria-hidden="true">' + ICONS[a.icon] + "</svg></div>" +
"<h3>" + a.title + "</h3>" +
"<p>" + a.desc + "</p>" +
"</div>"
);
}).join("");
}
/* ---------- floor selector ---------- */
var TYPES = ["Studio", "1 Bed", "2 Bed", "3 Bed", "Penthouse"];
function buildUnits(band) {
// deterministic pseudo-random so the demo is stable per band
var seed = band.id.charCodeAt(0) + band.id.charCodeAt(band.id.length - 1);
var units = [];
for (var i = 0; i < band.units; i++) {
var n = band.lowFloor + Math.floor(i / 4);
var letter = "ABCDEF"[i % 4];
var t = TYPES[(seed + i) % TYPES.length];
var roll = (seed * 7 + i * 13) % 10;
var status = roll < 5 ? "available" : roll < 8 ? "reserved" : "sold";
var basePrice = 480000 + (TYPES.indexOf(t) * 280000) + ((n - band.lowFloor) * 14000) + band.premium;
units.push({
no: n + letter,
type: t,
sqft: 500 + TYPES.indexOf(t) * 360,
price: Math.round(basePrice / 1000) * 1000,
status: status
});
}
return units;
}
var BANDS = [
{ id: "podium", name: "Podium", lowFloor: 3, highFloor: 9, units: 14, premium: 0 },
{ id: "midrise", name: "Mid-Rise", lowFloor: 10, highFloor: 24, units: 16, premium: 90000 },
{ id: "highrise", name: "High-Rise", lowFloor: 25, highFloor: 38, units: 12, premium: 240000 },
{ id: "crown", name: "The Crown", lowFloor: 39, highFloor: 42, units: 6, premium: 620000 }
];
BANDS.forEach(function (b) { b.unitData = buildUnits(b); });
function availCount(b) {
return b.unitData.filter(function (u) { return u.status === "available"; }).length;
}
function renderFloorRail() {
var rail = document.getElementById("floor-rail");
if (!rail) return;
rail.innerHTML = BANDS.map(function (b, i) {
return (
'<button class="floor-btn" role="tab" type="button" id="tab-' + b.id + '"' +
' aria-controls="floor-panel" aria-selected="' + (i === 0 ? "true" : "false") + '"' +
' data-band="' + b.id + '">' +
"<span>" +
'<span class="fb-name">' + b.name + "</span>" +
'<span class="fb-floors">Floors ' + b.lowFloor + "–" + b.highFloor + "</span>" +
"</span>" +
'<span class="fb-count">' + availCount(b) + "</span>" +
"</button>"
);
}).join("");
rail.querySelectorAll(".floor-btn").forEach(function (btn) {
btn.addEventListener("click", function () { selectBand(btn.getAttribute("data-band")); });
btn.addEventListener("keydown", function (e) {
var btns = Array.prototype.slice.call(rail.querySelectorAll(".floor-btn"));
var idx = btns.indexOf(btn);
if (e.key === "ArrowDown" || e.key === "ArrowRight") {
e.preventDefault();
btns[(idx + 1) % btns.length].focus();
} else if (e.key === "ArrowUp" || e.key === "ArrowLeft") {
e.preventDefault();
btns[(idx - 1 + btns.length) % btns.length].focus();
}
});
});
}
var STATUS_LABEL = { available: "Available", reserved: "Reserved", sold: "Sold" };
var STATUS_CLASS = { available: "us-available", reserved: "us-reserved", sold: "us-sold" };
function selectBand(id) {
var band = BANDS.filter(function (b) { return b.id === id; })[0];
if (!band) return;
document.querySelectorAll(".floor-btn").forEach(function (b) {
b.setAttribute("aria-selected", b.getAttribute("data-band") === id ? "true" : "false");
});
var panel = document.getElementById("floor-panel");
if (!panel) return;
var avail = availCount(band);
var rows = band.unitData.map(function (u) {
var sold = u.status === "sold";
return (
'<div class="unit-row' + (sold ? " is-sold" : "") + '">' +
'<span class="unit-no">' + u.no + "</span>" +
'<span class="unit-meta">' +
'<span class="unit-type">' + u.type + "</span>" +
'<span class="unit-detail">' + u.sqft.toLocaleString() + " sq ft · Floor " + u.no.replace(/[A-F]$/, "") + "</span>" +
"</span>" +
'<span class="unit-price">' + money(u.price) + "</span>" +
'<span class="unit-status ' + STATUS_CLASS[u.status] + '">' + STATUS_LABEL[u.status] + "</span>" +
"</div>"
);
}).join("");
panel.innerHTML =
'<div class="fp-head">' +
"<div>" +
"<h3>" + band.name + "</h3>" +
'<span class="fp-sub">Floors ' + band.lowFloor + "–" + band.highFloor + " · " + avail + " of " + band.unitData.length + " available</span>" +
"</div>" +
'<span class="fp-premium">' + (band.premium ? "+" + money(band.premium) + " view premium" : "No view premium") + "</span>" +
"</div>" +
'<div class="unit-list">' + rows + "</div>";
}
/* ---------- availability ticker ---------- */
function renderTicker() {
var track = document.getElementById("ticker-track");
if (!track) return;
var items = BANDS.map(function (b) {
var avail = availCount(b);
var cls = avail === 0 ? "dot-sold" : avail <= 3 ? "dot-low" : "dot-ok";
var label = avail === 0 ? "Sold out" : avail + " available";
return '<span class="ticker-item"><span class="dot ' + cls + '"></span><b>' + b.name + "</b> · " + label + " · Floors " + b.lowFloor + "–" + b.highFloor + "</span>";
});
items.push('<span class="ticker-item"><span class="dot dot-ok"></span><b>Move-in</b> · Q3 2027</span>');
items.push('<span class="ticker-item"><span class="dot dot-low"></span><b>Penthouse</b> · 2 remaining</span>');
// duplicate for a seamless loop
track.innerHTML = items.join("") + items.join("");
}
/* ---------- register form ---------- */
function bindForm() {
var form = document.getElementById("register-form");
if (!form) return;
form.addEventListener("submit", function (e) {
e.preventDefault();
var name = document.getElementById("f-name");
var email = document.getElementById("f-email");
var ok = true;
function mark(input, valid) {
var field = input.closest(".field");
if (field) field.classList.toggle("invalid", !valid);
if (!valid) ok = false;
}
mark(name, name.value.trim().length >= 2);
mark(email, /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email.value.trim()));
if (!ok) {
toast("Please check the highlighted fields");
return;
}
var interest = document.getElementById("f-interest").value;
toast("Thanks " + name.value.trim().split(" ")[0] + " — you're on the " + interest + " priority list");
form.reset();
form.querySelectorAll(".field.invalid").forEach(function (f) { f.classList.remove("invalid"); });
});
form.querySelectorAll("input").forEach(function (input) {
input.addEventListener("input", function () {
var field = input.closest(".field");
if (field) field.classList.remove("invalid");
});
});
}
/* ---------- init ---------- */
document.addEventListener("DOMContentLoaded", function () {
renderResidences();
renderAmenities();
renderTicker();
renderFloorRail();
selectBand(BANDS[0].id);
bindForm();
});
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Meridian Heights — Urban Condo Tower</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header class="topbar">
<a class="brand" href="#top" aria-label="Meridian Heights home">
<span class="brand-mark" aria-hidden="true"></span>
<span class="brand-name">MERIDIAN<em>HEIGHTS</em></span>
</a>
<nav class="nav" aria-label="Primary">
<a href="#residences">Residences</a>
<a href="#amenities">Amenities</a>
<a href="#floors">Availability</a>
<a href="#register" class="nav-cta">Register Interest</a>
</nav>
</header>
<main id="top">
<!-- HERO -->
<section class="hero" aria-labelledby="hero-title">
<div class="hero-tower" aria-hidden="true">
<div class="tower-core"></div>
<div class="tower-glass"></div>
<div class="tower-floors"></div>
<div class="tower-glow"></div>
</div>
<div class="hero-content">
<p class="eyebrow">Now Selling · Riverline District</p>
<h1 id="hero-title">A vertical neighborhood<br />above the city.</h1>
<p class="hero-sub">
42 floors of glass and chrome. Studios to penthouses with skyline
terraces, private concierge, and a rooftop you'll never want to leave.
</p>
<div class="hero-actions">
<a href="#residences" class="btn btn-primary">View Residences</a>
<a href="#register" class="btn btn-ghost">Register Interest</a>
</div>
<dl class="hero-stats">
<div><dt>From</dt><dd>$489K</dd></div>
<div><dt>Residences</dt><dd>218</dd></div>
<div><dt>Floors</dt><dd>42</dd></div>
<div><dt>Move-in</dt><dd>Q3 2027</dd></div>
</dl>
</div>
<!-- Floor availability ticker -->
<div class="ticker" aria-label="Live floor availability">
<span class="ticker-label">Live availability</span>
<div class="ticker-track" id="ticker-track" aria-live="off"></div>
</div>
</section>
<!-- RESIDENCES -->
<section id="residences" class="section" aria-labelledby="res-title">
<div class="section-head">
<p class="kicker">The Collection</p>
<h2 id="res-title">Residences</h2>
<p class="section-lead">
Five layouts engineered for light, from compact studios to the
two-story Skyline Penthouse.
</p>
</div>
<div class="res-grid" id="res-grid"><!-- cards injected by JS --></div>
</section>
<!-- AMENITIES -->
<section id="amenities" class="section section-dark" aria-labelledby="am-title">
<div class="section-head">
<p class="kicker kicker-light">Life at Meridian</p>
<h2 id="am-title">Amenities</h2>
<p class="section-lead section-lead-light">
Twelve thousand square feet of curated indoor and rooftop space.
</p>
</div>
<div class="amen-grid" id="amen-grid"><!-- tiles injected by JS --></div>
</section>
<!-- FLOOR SELECTOR -->
<section id="floors" class="section" aria-labelledby="fl-title">
<div class="section-head">
<p class="kicker">Availability</p>
<h2 id="fl-title">Choose your floor</h2>
<p class="section-lead">
Select a floor band to see which units remain. Higher floors carry a
view premium.
</p>
</div>
<div class="floor-tool">
<div class="floor-rail" role="tablist" aria-label="Floor bands" id="floor-rail">
<!-- floor buttons injected by JS -->
</div>
<div class="floor-panel" id="floor-panel" role="tabpanel" aria-live="polite">
<!-- unit list injected by JS -->
</div>
</div>
</section>
<!-- REGISTER INTEREST -->
<section id="register" class="section register" aria-labelledby="reg-title">
<div class="register-card">
<div class="register-copy">
<p class="kicker kicker-light">Priority access</p>
<h2 id="reg-title">Register your interest</h2>
<p class="section-lead section-lead-light">
Join the priority list for floorplans, pricing, and first access to
the next release of units.
</p>
<ul class="register-perks">
<li>First look at new releases</li>
<li>Private hard-hat tour invite</li>
<li>Dedicated sales advisor</li>
</ul>
</div>
<form class="register-form" id="register-form" novalidate>
<label class="field">
<span>Full name</span>
<input type="text" name="name" id="f-name" autocomplete="name" required placeholder="Jordan Avery" />
</label>
<label class="field">
<span>Email</span>
<input type="email" name="email" id="f-email" autocomplete="email" required placeholder="[email protected]" />
</label>
<label class="field">
<span>Residence interest</span>
<select name="interest" id="f-interest">
<option value="Studio">Studio</option>
<option value="One Bedroom" selected>One Bedroom</option>
<option value="Two Bedroom">Two Bedroom</option>
<option value="Three Bedroom">Three Bedroom</option>
<option value="Penthouse">Penthouse</option>
</select>
</label>
<button type="submit" class="btn btn-primary btn-block">Request Access</button>
<p class="form-fine">No spam. Sample form — submissions are not stored.</p>
</form>
</div>
</section>
</main>
<footer class="footer">
<div class="footer-inner">
<span class="brand-name footer-brand">MERIDIAN<em>HEIGHTS</em></span>
<p>1400 Riverline Avenue · Sales Gallery open daily 10–6</p>
<p class="footer-fine">Fictional development. Illustrative UI only.</p>
</div>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Urban Condo Tower Landing
A full marketing landing page for Meridian Heights, a fictional 42-floor glass-and-chrome condo tower. The dark, modern hero pairs a gradient tower silhouette with a headline, key stats (from-price, residence count, floors, move-in), and a continuously scrolling availability ticker that reads live counts from each floor band. The aesthetic leans sleek and architectural — charcoal surfaces, glass-blue accents, chrome highlights, and tight uppercase typography in Inter.
Below the hero, a residences grid presents five layouts (Atrium Studio through the two-story Skyline Penthouse), each with a gradient “photo,” a generated SVG floorplan thumbnail, beds/baths/sq-ft specs, a price badge, and a status badge. An amenities strip of icon tiles covers the sky terrace, performance gym, 24/7 concierge, lap pool, residents’ lounge, and smart parking.
The interactive heart is the floor selector: a vertical rail of floor bands (Podium, Mid-Rise, High-Rise, The Crown) that — on click or arrow-key navigation — swaps the panel to list that band’s remaining units, each with a unit number, type, square footage, deterministic price (including a view premium for higher floors), and an available / reserved / sold status. A closing register-interest form validates name and email inline and confirms with a toast. All data and interactions run on vanilla JS with no dependencies.
Illustrative UI only — sample listings and data are fictional; not a real real-estate service.