make me a modern, glossly, amazing, new example website
- User
make me a modern, glossly, amazing, new example website
Assistant
make me a modern, glossly, amazing, new example website
Here is a single-file, drop-in example of a “modern, glossy, amazing” landing page.
Copy everything into a file called index.html, open it in any browser, and you’ll see:
• glass-morphic hero
• animated gradient background
• glossy 3-D cards with hover tilt
• subtle scroll-triggered fades
• dark-mode toggle
• fully responsive
No build tools, no images—just pure HTML + CSS + a few lines of vanilla JS.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Glossy Future</title>
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet"/>
<style>
:root {
--bg: #0f0f0f;
--text: #ffffff;
--accent: #00f5ff;
--card-bg: rgba(255,255,255,.08);
--card-border: rgba(255,255,255,.15);
}
[data-theme="light"] {
--bg: #f5f5f5;
--text: #111;
--accent: #0066ff;
--card-bg: rgba(0,0,0,.05);
--card-border: rgba(0,0,0,.1);
}
*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif}
body{
background:var(--bg);
color:var(--text);
overflow-x:hidden;
transition:background .4s;
}
/* animated gradient background */
body::before{
content:'';
position:fixed;
inset:0;
z-index:-1;
background:linear-gradient(-45deg,#0f0f0f,#1a1a2e,#16213e,#0f3460);
background-size:400% 400%;
animation:gradient 15s ease infinite;
}
[data-theme="light"] body::before{
background:linear-gradient(-45deg,#f5f5f5,#e0e0e0,#ffffff,#e0e0e0);
}
@keyframes gradient{
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
header{
position:fixed;
top:0;
width:100%;
padding:1.2rem 2rem;
display:flex;
justify-content:space-between;
align-items:center;
backdrop-filter:blur(12px);
background:rgba(255,255,255,.05);
border-bottom:1px solid var(--card-border);
z-index:1000;
}
header h1{font-weight:600;font-size:1.4rem}
#themeToggle{
cursor:pointer;
background:none;
border:none;
color:var(--text);
font-size:1.3rem;
}
section{
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
padding:6rem 2rem;
}
.hero{
flex-direction:column;
text-align:center;
}
.hero h2{
font-size:clamp(2.5rem,5vw,4rem);
margin-bottom:.5rem;
background:linear-gradient(90deg,var(--accent),#ff00ff);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
.hero p{
max-width:600px;
opacity:.8;
margin-bottom:2rem;
}
.cta{
padding:.9rem 2.2rem;
border:none;
border-radius:50px;
background:linear-gradient(90deg,var(--accent),#ff00ff);
color:#fff;
font-weight:600;
cursor:pointer;
transition:transform .3s;
}
.cta:hover{transform:scale(1.05)}
/* glossy cards */
.cards{
display:grid;
gap:2rem;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
max-width:1200px;
width:100%;
}
.card{
position:relative;
padding:2.5rem 2rem;
border-radius:24px;
background:var(--card-bg);
border:1px solid var(--card-border);
backdrop-filter:blur(20px);
box-shadow:0 8px 32px rgba(0,0,0,.4);
transform-style:preserve-3d;
transition:transform .3s;
}
.card:hover{transform:rotateX(8deg) rotateY(-8deg) translateZ(20px)}
.card h3{margin-bottom:.8rem;font-size:1.4rem}
.card p{opacity:.7;font-size:.95rem}
/* scroll reveal */
.reveal{
opacity:0;
transform:translateY(40px);
transition:all .8s ease;
}
.reveal.active{
opacity:1;
transform:translateY(0);
}
footer{
text-align:center;
padding:2rem 1rem;
font-size:.9rem;
opacity:.5;
}
</style>
</head>
<body>
<header>
<h1>Glossy Future</h1>
<button id="themeToggle" aria-label="Toggle theme">🌙</button>
</header>
<section class="hero">
<h2>Experience Tomorrow, Today</h2>
<p>Ultra-gloss interfaces, buttery animations, and glass-morphic delight—all in one tiny file.</p>
<button class="cta">Get Started</button>
</section>
<section>
<div class="cards reveal">
<div class="card">
<h3>Glass Cards</h3>
<p>Subtle transparency, backdrop blur, and soft shadows create depth without clutter.</p>
</div>
<div class="card">
<h3>Live Gradient</h3>
<p>A slow-moving gradient keeps the page alive without stealing focus.</p>
</div>
<div class="card">
<h3>Dark / Light</h3>
<p>One click flips the palette—CSS variables make theming effortless.</p>
</div>
</div>
</section>
<footer>
© 2024 Glossy Future — Built with pure HTML & CSS.
</footer>
<script>
/* Dark / Light toggle */
const toggle = document.getElementById('themeToggle');
const html = document.documentElement;
toggle.addEventListener('click', () => {
const isDark = html.getAttribute('data-theme') !== 'light';
html.setAttribute('data-theme', isDark ? 'light' : 'dark');
toggle.textContent = isDark ? '☀️' : '🌙';
});
/* Scroll reveal */
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) entry.target.classList.add('active');
});
}, { threshold: 0.3 });
document.querySelectorAll('.reveal').forEach(el => observer.observe(el));
</script>
</body>
</html>
Enjoy the shine!