JSFiddle - React, Tailwind, and code Playground
by graphettion
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Elite Properties | Luxury Real Estate</title>
<style>
:root {
--primary: #2a3f54;
--secondary: #e2b887;
--light: #f9f9f9;
--dark: #333;
--shadow: 0 4px 12px rgba(0,0,0,0.1);
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background: var(--light);
color: var(--dark);
line-height: 1.6;
}
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 100;
background: rgba(255,255,255,0.95);
box-shadow: var(--shadow);
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 5%;
}
.logo-container {
display: flex;
align-items: center;
gap: 20px;
}
.logo {
font-size: 24px;
font-weight: 700;
color: var(--primary);
text-decoration: none;
}
.profile {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--secondary);
}
nav ul {
display: flex;
list-style: none;
gap: 30px;
}
nav a {
text-decoration: none;
color: var(--dark);
font-weight: 500;
transition: var(--transition);
}
nav a:hover {
color: var(--secondary);
}
.hero {
height: 100vh;
position: relative;
overflow: hidden;
}
.slider {
height: 100%;
position: absolute;
width: 500%;
display: flex;
transition: transform 1s ease;
}
.slide {
width: 20%;
height: 100%;
position: relative;
}
.slide img {
width: 100%;
height: 100%;
...