Home with Light
About this app
A single page web app showcasing a home in a night scene with lights.
Home with Light
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Home with Light</title>
<meta name="description" content="A single page web app showcasing a home in a night scene with lights.">
<meta name="keywords" content="home, light, night, scene, web app">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.2/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #0d0d0d;
font-family: 'Arial', sans-serif;
}
#main-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.home {
position: relative;
width: 300px;
height: 300px;
background-color: #292929;
border-radius: 10px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.roof {
position: absolute;
top: -40px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 150px solid transparent;
border-right: 150px solid transparent;
border-bottom: 40px solid #292929;
}
.wall {
position: absolute;
top: -10px;
left: 0;
width: 100%;
height: calc(100% + 10px);
background-color: #292929;
}
.window {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 70px;
height: 70px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.light {
position: absolute;
top: calc(50% - 10px);
left: calc(50% - 10px);
width: 20px;
height: 20px;
background-color: #f9c22e;
border-radius: 50%;
box-shadow: 0 0 20px rgba(249, 194, 46, 0.8);
animation: flicker 0.5s infinite alternate;
}
.light:nth-child(2) {
animation-delay: 0.1s;
}
.light:nth-child(3) {
animation-delay: 0.2s;
}
.light:nth-child(4) {
animation-delay: 0.3s;
}
.light:nth-child(5) {
animation-delay: 0.4s;
}
@keyframes flicker {
from {
opacity: 1;
}
to {
opacity: 0.8;
}
}
</style>
</head>
<body>
<div id="main-container" class="container">
<div class="home">
<div class="roof"></div>
<div class="wall"></div>
<div class="window">
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
</div>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!