Liveweave: Generative AI Web Editor & HTML/CSS/JS Playground
Initializing
Liveweave
Web
expand_more
home
Home
Palette
Color Explorer
arrow_outward
Polyline
Graphics Editor
arrow_outward
frame_source
Python Playground
arrow_outward
build
Tools
expand_more
restart_alt
Load "Hello Weaver!"
post_add
Generate Lorem ipsum...
code
Format HTML
code_blocks
Format CSS
data_object
Format JavaScript
library_add
Library
expand_more
A
Algolia JS
Animate CSS
Apex Charts JS
B
Bulma CSS
Bootstrap
C
Chart JS
Chartist
Create JS
D
D3
Dojo
F
Foundation
Fullpage JS
G
Granim JS
Google Charts
H
Halfmoon
J
jQuery
M
Materialize
Moment JS
Masonry JS
Milligram CSS
P
Pure CSS
Primer CSS
Popper JS
Pattern CSS
Picnic CSS
R
React JS
Raphael JS
Raisin CSS
S
Semantic UI
Skeleton CSS
Spectre CSS
Tachyons CSS
T
Tailwind
Three JS
U
UI Kit
Vis JS
W
Water CSS
download
Download
expand_more
developer_mode
Download as HTML
folder_zip
Download as .ZIP
cloud_upload
Fork
account_circle
Login
settings
Settings
expand_more
Editor font
14
px
A
A
Night mode
Line number
Mini map
Word wrap
sync_alt
Reset Settings
smart_display
Run
left_panel_close
AI Assistant
dashboard
All
HTML
CSS
JS
visibility
Preview
bolt
Live Preview
terminal
JS Console
<!DOCTYPE html> <html> <head> <title>Photography portfolio template</title> </head> <body> <!-- Start your code here --> <div class="frame-site"> <header class="nav"> <a class="wordmark" href="#">F<span>R</span>AME<span class="period">.</span></a> <nav> <a href="#work">Work</a> <a href="#about">About</a> <a href="#contact">Contact</a> </nav> <a class="availability" href="#contact"><i></i> AVAILABLE FOR PROJECTS</a> </header> <main> <section class="hero"> <div class="hero-copy"> <div class="eyebrow"><span>01</span> PHOTOGRAPHER & VISUAL STORYTELLER</div> <h1>Seeing the<br>world <em>differently.</em></h1> <p>Capturing fleeting moments, beautiful places, and the little details that make life extraordinary.</p> <a href="#work" class="explore-link">EXPLORE SELECTED WORK <span>↘</span></a> </div> <div class="hero-photo"> <img src="https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1500&q=85" alt="Mountain landscape reflected in a still lake"> <div class="photo-caption"><span>46° 51' N — THE DOLOMITES</span><span>01 / 06</span></div> <div class="hero-stamp">THE<br>ART OF<br>NOTICING.</div> </div> <div class="hero-bottom"><span>BASED IN THE PACIFIC NORTHWEST</span><span>SCROLL TO DISCOVER ↓</span></div> </section> <section class="work-section" id="work"> <div class="section-top"> <div> <div class="eyebrow"><span>02</span> A COLLECTION OF MOMENTS</div> <h2>Selected <em>work.</em></h2> </div> <p>A few frames from places I've been<br>and stories I've had the privilege to tell.</p> </div> <div class="filters"> <button class="filter active" data-filter="all">ALL WORK <sup>06</sup></button> <button class="filter" data-filter="landscape">LANDSCAPE</button> <button class="filter" data-filter="architecture">ARCHITECTURE</button> <button class="filter" data-filter="travel">TRAVEL</button> </div> <div class="gallery"> <article class="photo-card tall" data-category="landscape" data-title="Quiet Horizons" data-location="Dolomites, Italy" data-description="A moment of stillness in the mountains, just after sunrise."> <button class="photo-button" aria-label="View Quiet Horizons photograph"> <img src="https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=1000&q=85" alt="Golden sunrise over a misty mountain landscape"> <span class="photo-overlay"><span>VIEW PHOTOGRAPH ↗</span></span> </button> <div class="photo-meta"><div><h3>Quiet Horizons</h3><p>DOLOMITES, ITALY</p></div><span>01</span></div> </article> <article class="photo-card" data-category="architecture" data-title="Concrete Poetry" data-location="Copenhagen, Denmark" data-description="The geometry of modern architecture meets soft natural light."> <button class="photo-button" aria-label="View Concrete Poetry photograph"> <img src="https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1000&q=85" alt="Minimal modern architectural building"> <span class="photo-overlay"><span>VIEW PHOTOGRAPH ↗</span></span> </button> <div class="photo-meta"><div><h3>Concrete Poetry</h3><p>COPENHAGEN, DENMARK</p></div><span>02</span></div> </article> <article class="photo-card" data-category="travel" data-title="Into the Blue" data-location="Atlantic Coast" data-description="The ocean, the horizon, and the feeling of having nowhere else to be."> <button class="photo-button" aria-label="View Into the Blue photograph"> <img src="https://images.unsplash.com/photo-1518837695005-2083093ee35b?auto=format&fit=crop&w=1000&q=85" alt="Ocean waves and blue water"> <span class="photo-overlay"><span>VIEW PHOTOGRAPH ↗</span></span> </button> <div class="photo-meta"><div><h3>Into the Blue</h3><p>ATLANTIC COAST</p></div><span>03</span></div> </article> <article class="photo-card" data-category="landscape" data-title="Wild & Free" data-location="Swiss Alps" data-description="A wide-open landscape with mountains stretching into the distance."> <button class="photo-button" aria-label="View Wild and Free photograph"> <img src="https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1000&q=85" alt="Dramatic snow-capped mountain peaks"> <span class="photo-overlay"><span>VIEW PHOTOGRAPH ↗</span></span> </button> <div class="photo-meta"><div><h3>Wild & Free</h3><p>SWISS ALPS</p></div><span>04</span></div> </article> <article class="photo-card tall" data-category="travel" data-title="Golden Hour" data-location="Somewhere in the countryside" data-description="The last light of the day painting the landscape in warm tones."> <button class="photo-button" aria-label="View Golden Hour photograph"> <img src="https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1000&q=85" alt="Sunlit natural landscape"> <span class="photo-overlay"><span>VIEW PHOTOGRAPH ↗</span></span> </button> <div class="photo-meta"><div><h3>Golden Hour</h3><p>THE COUNTRYSIDE</p></div><span>05</span></div> </article> <article class="photo-card" data-category="architecture" data-title="Lines & Light" data-location="Modern city" data-description="An exploration of structure, rhythm, and the interplay of light and shadow."> <button class="photo-button" aria-label="View Lines and Light photograph"> <img src="https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1000&q=85" alt="Geometric modern architecture"> <span class="photo-overlay"><span>VIEW PHOTOGRAPH ↗</span></span> </button> <div class="photo-meta"><div><h3>Lines & Light</h3><p>URBAN STUDIES</p></div><span>06</span></div> </article> </div> <div class="gallery-footer"><span>END OF COLLECTION</span><span>MORE STORIES COMING SOON ↗</span></div> </section> <section class="about-section" id="about"> <div class="about-image"> <img src="https://images.unsplash.com/photo-1472396961693-142e6e269027?auto=format&fit=crop&w=1000&q=85" alt="Deer standing in a peaceful forest"> <span>BEHIND THE LENS</span> </div> <div class="about-copy"> <div class="eyebrow"><span>03</span> A LITTLE ABOUT ME</div> <h2>Curiosity is<br>my favorite <em>lens.</em></h2> <p>I'm Alex, a photographer drawn to the unexpected beauty of everyday life. From quiet landscapes to bold architecture, I look for the stories hiding in plain sight.</p> <p>My approach is simple: slow down, pay attention, and make photographs that invite you to feel something.</p> <a class="explore-link" href="#contact">LET'S CREATE SOMETHING <span>↗</span></a> <div class="signature">Alex Morgan<span>PHOTOGRAPHER</span></div> </div> </section> <section class="contact-section" id="contact"> <div class="eyebrow"><span>04</span> HAVE A STORY IN MIND?</div> <h2>Let's make<br>something <em>beautiful.</em></h2> <p>For collaborations, commissions, or just to say hello.</p> <a href="mailto:hello@example.com" class="contact-link">HELLO@EXAMPLE.COM <span>↗</span></a> </section> </main> <footer class="footer"> <a class="wordmark" href="#">F<span>R</span>AME<span class="period">.</span></a> <span>© 2026 ALEX MORGAN — PHOTOGRAPHY PORTFOLIO</span> <a href="https://unsplash.com" target="_blank" rel="noopener">IMAGE SOURCES: UNSPLASH ↗</a> </footer> <div class="lightbox" id="lightbox" aria-hidden="true"> <button class="lightbox-close" id="lightbox-close" aria-label="Close image">×</button> <button class="lightbox-prev" id="lightbox-prev" aria-label="Previous image">←</button> <div class="lightbox-content"> <img id="lightbox-image" src="" alt=""> <div class="lightbox-caption"><div><h3 id="lightbox-title"></h3><p id="lightbox-location"></p></div><span id="lightbox-index"></span></div> <p id="lightbox-description" class="lightbox-description"></p> </div> <button class="lightbox-next" id="lightbox-next" aria-label="Next image">→</button> </div> </div> <!-- End your code here --> </body> </html>
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap'); :root { --bg: #151513; --surface: #1d1d1a; --text: #f0eee8; --muted: #898981; --line: #33332e; --accent: #d4b88a; } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; } a { color: inherit; text-decoration: none; } button { font: inherit; } .frame-site { max-width: 1240px; margin: auto; padding: 0 42px; } .nav { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); } .wordmark { font: 800 26px 'DM Sans', sans-serif; letter-spacing: -2px; } .wordmark > span:first-child { color: var(--accent); } .wordmark .period { color: var(--accent); } .nav nav { display: flex; gap: 33px; } .nav nav a { font-size: 11px; color: #c1bfb5; transition: color .2s; } .nav nav a:hover { color: var(--accent); } .availability { display: flex; align-items: center; gap: 9px; color: #aaa99e; font: 9px 'DM Mono', monospace; letter-spacing: .8px; } .availability i { width: 6px; height: 6px; border-radius: 50%; background: #a9c58d; box-shadow: 0 0 8px #a9c58d; } .hero { position: relative; padding: 66px 0 23px; } .hero-copy { position: relative; z-index: 2; max-width: 580px; } .eyebrow { color: #8c8b81; font: 9px 'DM Mono', monospace; letter-spacing: 1.4px; } .eyebrow > span { color: var(--accent); margin-right: 12px; } .hero h1 { font: 500 clamp(55px, 7vw, 88px)/.99 'Playfair Display', serif; letter-spacing: -3px; margin: 24px 0 18px; } h1 em, h2 em { color: var(--accent); font-weight: 500; } .hero-copy > p { max-width: 370px; color: #aaa99f; font-size: 12px; line-height: 1.9; } .explore-link { display: inline-flex; align-items: center; gap: 23px; margin-top: 20px; padding-bottom: 8px; border-bottom: 1px solid #8b795c; color: #e4d4b9; font: 9px 'DM Mono', monospace; letter-spacing: 1px; } .explore-link span { font-size: 15px; transition: transform .2s; } .explore-link:hover span { transform: translate(4px, 4px); } .hero-photo { position: relative; height: 390px; margin: -40px 0 0 27%; overflow: hidden; background: #292923; } .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; display: block; filter: brightness(.8); } .photo-caption { position: absolute; left: 20px; right: 20px; bottom: 17px; display: flex; justify-content: space-between; color: #fff; font: 8px 'DM Mono', monospace; letter-spacing: 1px; text-shadow: 0 1px 5px #000; } .hero-stamp { position: absolute; right: 28px; top: 27px; padding: 14px 17px; border: 1px solid #ffffff88; color: white; font: 9px/1.6 'DM Mono', monospace; letter-spacing: 1px; transform: rotate(5deg); } .hero-bottom { display: flex; justify-content: space-between; margin-top: 17px; color: #77776e; font: 8px 'DM Mono', monospace; letter-spacing: 1px; } .work-section { padding: 105px 0 80px; } .section-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 27px; } .section-top h2, .about-copy h2 { font: 500 53px/.98 'Playfair Display', serif; letter-spacing: -1.7px; margin: 16px 0 0; } .section-top > p { color: #94938a; font-size: 11px; line-height: 1.8; margin: 0 0 5px; } .filters { display: flex; gap: 23px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 26px; overflow-x: auto; } .filter { flex: 0 0 auto; border: 0; background: transparent; padding: 0; color: #828279; cursor: pointer; font: 9px 'DM Mono', monospace; letter-spacing: 1px; transition: color .2s; } .filter:hover, .filter.active { color: var(--accent); } .filter sup { font-size: 7px; margin-left: 3px; } .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 17px; align-items: start; } .photo-card { min-width: 0; } .photo-card.tall { grid-row: span 2; } .photo-button { position: relative; display: block; width: 100%; height: 235px; overflow: hidden; padding: 0; border: 0; background: #24241f; cursor: zoom-in; } .photo-card.tall .photo-button { height: 510px; } .photo-button img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; } .photo-button:hover img { transform: scale(1.045); filter: brightness(.72); } .photo-overlay { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; background: #0002; } .photo-button:hover .photo-overlay { opacity: 1; } .photo-overlay span { border: 1px solid #fff9; padding: 12px 16px; color: white; font: 8px 'DM Mono', monospace; letter-spacing: 1px; } .photo-meta { display: flex; justify-content: space-between; align-items: start; padding-top: 12px; } .photo-meta h3 { font: 500 17px 'Playfair Display', serif; margin: 0 0 5px; } .photo-meta p { font: 8px 'DM Mono', monospace; color: #89887e; letter-spacing: .9px; margin: 0; } .photo-meta > span { color: #77776d; font: 9px 'DM Mono', monospace; padding-top: 3px; } .photo-card.hidden-card { display: none; } .gallery-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 16px; color: #77776e; font: 8px 'DM Mono', monospace; letter-spacing: 1px; } .about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: center; border-top: 1px solid var(--line); padding: 90px 0; } .about-image { height: 440px; position: relative; } .about-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.75); } .about-image > span { position: absolute; left: 15px; bottom: 15px; background: #151513d9; padding: 10px 12px; font: 8px 'DM Mono', monospace; letter-spacing: 1px; } .about-copy h2 { font-size: 54px; margin-bottom: 25px; } .about-copy > p { max-width: 410px; color: #a6a59b; font-size: 11px; line-height: 2; margin: 0 0 15px; } .about-copy .explore-link { margin-top: 13px; } .signature { margin-top: 35px; font: italic 28px 'Playfair Display', serif; color: var(--accent); } .signature span { display: block; margin-top: 6px; font: 8px 'DM Mono', monospace; letter-spacing: 1.4px; color: #77776d; } .contact-section { position: relative; padding: 75px 0 85px; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse at center, #29271f 0%, transparent 70%); } .contact-section h2 { font: 500 clamp(44px, 6vw, 68px)/1.05 'Playfair Display', serif; margin: 21px 0 14px; letter-spacing: -2px; } .contact-section > p { font-size: 11px; color: #9c9b91; } .contact-link { display: inline-flex; gap: 24px; align-items: center; margin-top: 23px; border-bottom: 1px solid var(--accent); padding-bottom: 10px; color: var(--accent); font: 10px 'DM Mono', monospace; letter-spacing: 1px; } .contact-link span { font-size: 16px; } .footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 19px 0 25px; color: #77776d; font: 8px 'DM Mono', monospace; letter-spacing: .5px; } .footer .wordmark { font-size: 20px; color: var(--text); } .footer a:last-child { color: var(--accent); } .lightbox { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 55px 70px; background: #080807f2; backdrop-filter: blur(9px); } .lightbox.open { display: flex; } .lightbox-content { width: min(900px, 100%); max-height: 100%; } .lightbox-content img { display: block; max-width: 100%; max-height: 72vh; margin: auto; object-fit: contain; } .lightbox-caption { display: flex; align-items: start; justify-content: space-between; padding-top: 14px; } .lightbox-caption h3 { font: 500 21px 'Playfair Display', serif; margin: 0; } .lightbox-caption p, .lightbox-description { color: #929187; font: 9px 'DM Mono', monospace; letter-spacing: .5px; margin: 5px 0 0; } .lightbox-caption > span { color: var(--accent); font: 10px 'DM Mono', monospace; } .lightbox-description { line-height: 1.7; } .lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; border: 1px solid #ffffff33; background: #ffffff0a; color: white; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; font-size: 20px; transition: .2s; } .lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: #ffffff22; } .lightbox-close { top: 25px; right: 30px; } .lightbox-prev { left: 22px; top: 50%; } .lightbox-next { right: 22px; top: 50%; } @media (max-width: 760px) { .frame-site { padding: 0 22px; } .nav { height: 70px; } .nav nav { gap: 17px; } .availability { display: none; } .hero { padding-top: 55px; } .hero-photo { margin: -10px 0 0 12%; height: 330px; } .hero h1 { font-size: 68px; } .work-section { padding: 75px 0 60px; } .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .photo-card.tall .photo-button { height: 390px; } .photo-button { height: 210px; } .about-section { gap: 35px; padding: 65px 0; } .about-image { height: 350px; } .about-copy h2 { font-size: 43px; } } @media (max-width: 500px) { .frame-site { padding: 0 15px; } .wordmark { font-size: 22px; } .nav nav { gap: 12px; } .nav nav a { font-size: 10px; } .hero h1 { font-size: 54px; } .hero-copy > p { max-width: 280px; } .hero-photo { margin: 25px 0 0; height: 280px; } .hero-stamp { right: 14px; top: 14px; } .hero-bottom { font-size: 7px; } .section-top { display: block; } .section-top h2 { font-size: 45px; } .section-top > p { margin-top: 15px; } .filters { gap: 17px; } .gallery { grid-template-columns: 1fr 1fr; gap: 25px 10px; } .photo-card.tall .photo-button { height: 280px; } .photo-button { height: 160px; } .photo-meta h3 { font-size: 14px; } .photo-meta p { font-size: 7px; } .photo-meta > span { font-size: 8px; } .about-section { grid-template-columns: 1fr; gap: 28px; padding: 55px 0; } .about-image { height: 300px; } .about-copy h2 { font-size: 46px; } .contact-section { padding: 60px 0; } .footer { flex-wrap: wrap; } .footer > span { order: 3; width: 100%; } .lightbox { padding: 55px 35px; } .lightbox-prev { left: 5px; } .lightbox-next { right: 5px; } }
const cards = [...document.querySelectorAll(".photo-card")]; const filters = document.querySelectorAll(".filter"); const lightbox = document.getElementById("lightbox"); const lightboxImage = document.getElementById("lightbox-image"); let currentIndex = 0; let visibleCards = cards; function updateVisibleCards(category) { visibleCards = cards.filter(card => category === "all" || card.dataset.category === category ); cards.forEach(card => { card.classList.toggle("hidden-card", !visibleCards.includes(card)); }); } // Gallery filters filters.forEach(button => { button.addEventListener("click", () => { filters.forEach(item => item.classList.remove("active")); button.classList.add("active"); updateVisibleCards(button.dataset.filter); }); }); function openLightbox(index) { if (!visibleCards.length) return; currentIndex = (index + visibleCards.length) % visibleCards.length; const card = visibleCards[currentIndex]; const image = card.querySelector("img"); lightboxImage.src = image.src; lightboxImage.alt = image.alt; document.getElementById("lightbox-title").textContent = card.dataset.title; document.getElementById("lightbox-location").textContent = card.dataset.location; document.getElementById("lightbox-description").textContent = card.dataset.description; document.getElementById("lightbox-index").textContent = String(currentIndex + 1).padStart(2, "0") + " / " + String(visibleCards.length).padStart(2, "0"); lightbox.classList.add("open"); lightbox.setAttribute("aria-hidden", "false"); document.body.style.overflow = "hidden"; } function closeLightbox() { lightbox.classList.remove("open"); lightbox.setAttribute("aria-hidden", "true"); document.body.style.overflow = ""; } function moveLightbox(direction) { openLightbox(currentIndex + direction); } cards.forEach(card => { card.querySelector(".photo-button").addEventListener("click", () => { const index = visibleCards.indexOf(card); if (index !== -1) openLightbox(index); }); }); document.getElementById("lightbox-close") .addEventListener("click", closeLightbox); document.getElementById("lightbox-prev") .addEventListener("click", () => moveLightbox(-1)); document.getElementById("lightbox-next") .addEventListener("click", () => moveLightbox(1)); lightbox.addEventListener("click", event => { if (event.target === lightbox) closeLightbox(); }); document.addEventListener("keydown", event => { if (!lightbox.classList.contains("open")) return; if (event.key === "Escape") closeLightbox(); if (event.key === "ArrowRight") moveLightbox(1); if (event.key === "ArrowLeft") moveLightbox(-1); }); // Smooth reveal as sections enter the viewport. const revealTargets = document.querySelectorAll( ".photo-card, .about-image, .about-copy, .contact-section" ); if ("IntersectionObserver" in window) { const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add("revealed"); observer.unobserve(entry.target); } }); }, { threshold: 0.08 }); revealTargets.forEach(element => observer.observe(element)); }
terminal
JavaScript Console
Preview
Clear
close
›
Run