foru
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v5View latest version
Be My Valentine π
body {
margin: 0;
height: 100vh;
background: linear-gradient(#ffb6c1, #ffc0cb);
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
text-align: center;
}
h1 {
margin-bottom: 20px;
}
img {
width: 180px;
border-radius: 20px;
margin-bottom: 20px;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
#buttons {
position: relative;
width: 100%;
height: 220px;
}
button {
font-size: 22px;
padding: 12px 25px;
cursor: pointer;
border: none;
border-radius: 12px;
}
#yes {
background: #ff4d6d;
color: white;
transition: transform 0.2s;
}
#no {
position: absolute;
background: #555;
color: white;
}
.shake {
animation: shake 0.3s;
}
@keyframes shake {
0% { transform: translateX(0); }
25% { transform: translateX(-5px); }
50% { transform: translateX(5px); }
75% { transform: translateX(-5px); }
100% { transform: translateX(0); }
}
Yes π
No π