Sukursiu jaukų, anime stiliaus svetainės prototipą su lietuvišku tekstu! Štai HTML/CSS/JavaScript kodas jūsų draugo bernvakario atskaitinei svetainei:
html Copy code
<!DOCTYPE html>
<html lang="lt">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kawaii Bernvakario Atbulinis Skaičiavimas</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
body {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
background-color: #ffebf7;
color: #ff6eb4;
overflow-x: hidden;
background-image: url('https://i.imgur.com/8ZUMJvA.png');
background-size: 100px;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
text-align: center;
position: relative;
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
color: #ff4fa7;
text-shadow: 2px 2px 4px rgba(255, 110, 180, 0.3);
animation: pulse 2s infinite;
}
.countdown-container {
background-color: rgba(255, 255, 255, 0.8);
border-radius: 20px;
padding: 20px;
box-shadow: 0 0 20px rgba(255, 110, 180, 0.5);
margin-bottom: 30px;
position: relative;
overflow: hidden;
}
.countdown-container::before {
content: "";
position: absolute;
top: -10px;
left: -10px;
right: -10px;
bottom: -10px;
background: linear-gradient(45deg, #ff6eb4, #ffb6e5, #ff6eb4);
z-index: -1;
border-radius: 25px;
animation: border-glow 3s infinite;
}
.countdown {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}
.countdown-item {
display: flex;
flex-direction: column;
align-items: center;
}
.countdown-value {
font-size: 2.5rem;
font-weight: bold;
color: #ff4fa7;
background-color: white;
width: 70px;
height: 70px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(255, 110, 180, 0.3);
}
.countdown-label {
font-size: 0.9rem;
margin-top: 5px;
color: #ff6eb4;
}
.video-container {
margin: 30px 0;
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(255, 110, 180, 0.4);
}
.video-placeholder {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffb6e5;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: white;
}
.message {
background-color: rgba(255, 255, 255, 0.9);
border-radius: 15px;
padding: 20px;
margin-top: 30px;
box-shadow: 0 5px 15px rgba(255, 110, 180, 0.3);
position: relative;
}
.message p {
font-size: 1.1rem;
line-height: 1.6;
color: #ff4fa7;
}
.sparkle {
position: absolute;
pointer-events: none;
animation: sparkle-fade 2s forwards;
z-index: 100;
}
.character {
position: absolute;
width: 150px;
bottom: -20px;
}
.rem {
left: -80px;
transform: scaleX(-1);
}
.ram {
right: -80px;
}
.hearts {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}
.heart {
position: absolute;
animation: float-up 10s linear infinite;
opacity: 0.6;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
@keyframes border-glow {
0% { opacity: 0.5; }
50% { opacity: 1; }
100% { opacity: 0.5; }
}
@keyframes sparkle-fade {
0% { transform: scale(0); opacity: 1; }
50% { transform: scale(1); opacity: 0.8; }
100% { transform: scale(1.5); opacity: 0; }
}
@keyframes float-up {
0% {
transform: translateY(100vh) rotate(0deg);
opacity: 0.7;
}
100% {
transform: translateY(-100px) rotate(360deg);
opacity: 0;
}
}
.button {
background: linear-gradient(45deg, #ff6eb4, #ff4fa7);
color: white;
border: none;
padding: 12px 30px;
font-size: 1.1rem;
border-radius: 50px;
cursor: pointer;
margin-top: 20px;
box-shadow: 0 5px 15px rgba(255, 110, 180, 0.4);
transition: all 0.3s;
position: relative;
overflow: hidden;
}
.button:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(255, 110, 180, 0.6);
}
.button:active {
transform: translateY(0);
}
.button::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
transform: translateX(-100%);
transition: transform 0.6s;
}
.button:hover::after {
transform: translateX(100%);
}
.audio-controls {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 3px 10px rgba(255, 110, 180, 0.4);
}
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
.countdown {
gap: 10px;
}
.countdown-value {
font-size: 1.8rem;
width: 60px;
height: 60px;
}
.character {
width: 100px;
}
.rem {
left: -50px;
}
.ram {
right: -50px;
}
}
</style>
</head>
<body>
<div class="container">
<h1>✨ Kawaii Bernvakario Atbulinis Skaičiavimas ✨</h1>
<div class="countdown-container">
<h2>Iki tavo legendinio bernvakario liko:</h2>
<div class="countdown">
<div class="countdown-item">
<div class="countdown-value" id="days">00</div>
<div class="countdown-label">Dienos</div>
</div>
<div class="countdown-item">
<div class="countdown-value" id="hours">00</div>
<div class="countdown-label">Valandos</div>
</div>
<div class="countdown-item">
<div class="countdown-value" id="minutes">00</div>
<div class="countdown-label">Minutės</div>
</div>
<div class="countdown-item">
<div class="countdown-value" id="seconds">00</div>
<div class="countdown-label">Sekundės</div>
</div>
</div>
<img src="https://i.imgur.com/JqYDJVV.png" class="character rem" alt="Rem">
<img src="https://i.imgur.com/8ZXaZKA.png" class="character ram" alt="Ram">
</div>
<div class="video-container">
<div class="video-placeholder">
<h3>Ram ir Rem turi tau specialų pranešimą!</h3>
<p>Čia bus tavo asmeninis pakvietimas</p>
<button class="button" id="play-button">Žiūrėti pakvietimą</button>
</div>
</div>
<div class="message">
<h3>Sveikinu, būsimas jauniki! ✨</h3>
<p>Ram ir Rem paruošė tau nepamirštamą bernvakario nuotykį! Birželio 28d. 11:00 val. prasideda tavo legendinis bernvakaris!</p>
<p>Pasiruošk nepamirštamam nuotykiui, pilnam siurprizų ir smagių akimirkų! Nya~! ✨</p>
</div>
</div>
<div class="hearts" id="hearts-container"></div>
<div class="audio-controls" id="audio-toggle">
<span id="audio-icon">🔊</span>
</div>
<audio id="background-music" loop>
<source src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" type="audio/mp3">
</audio>
<audio id="sparkle-sound">
<source src="https://www.soundjay.com/misc/sounds/bell-ringing-05.mp3" type="audio/mp3">
</audio>
<script>
// Countdown Timer
const countdownDate = new Date("June 28, 2025 11:00:00").getTime();
function updateCountdown() {
const now = new Date().getTime();
const distance = countdownDate - now;
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById("days").innerText = days.toString().padStart(2, '0');
document.getElementById("hours").innerText = hours.toString().padStart(2, '0');
document.getElementById("minutes").innerText = minutes.toString().padStart(2, '0');
document.getElementById("seconds").innerText = seconds.toString().padStart(2, '0');
if (distance < 0) {
clearInterval(countdownInterval);
document.getElementById("days").innerText = "00";
document.getElementById("hours").innerText = "00";
document.getElementById("minutes").innerText = "00";
document.getElementById("seconds").innerText = "00";
}
}
const countdownInterval = setInterval(updateCountdown, 1000);
updateCountdown();
// Sparkle Effect
document.addEventListener('mousemove', function(e) {
if (Math.random() > 0.9) {
createSparkle(e.pageX, e.pageY);
playSparkleSound();
}
});
function createSparkle(x, y) {
const sparkle = document.createElement('div');
sparkle.className = 'sparkle';
sparkle.style.left = (x - 10) + 'px';
sparkle.style.top = (y - 10) + 'px';
sparkle.innerHTML = '✨';
sparkle.style.fontSize = (Math.random() * 20 + 10) + 'px';
document.body.appendChild(sparkle);
setTimeout(() => {
sparkle.remove();
}, 2000);
}
// Floating Hearts
function createHearts() {
const heartsContainer = document.getElementById('hearts-container');
for (let i = 0; i < 20; i++) {
const heart = document.createElement('div');
heart.className = 'heart';
heart.innerHTML = '💖';
heart.style.left = Math.random() * 100 + 'vw';
heart.style.animationDuration = (Math.random() * 15 + 5) + 's';
heart.style.fontSize = (Math.random() * 20 + 10) + 'px';
heart.style.animationDelay = (Math.random() * 5) + 's';
heartsContainer.appendChild(heart);
}
}
createHearts();
// Audio Controls
const backgroundMusic = document.getElementById('background-music');
const audioToggle = document.getElementById('audio-toggle');
const audioIcon = document.getElementById('audio-icon');
let isMusicPlaying = false;
audioToggle.addEventListener('click', function() {
if (isMusicPlaying) {
backgroundMusic.pause();
audioIcon.textContent = '🔇';
} else {
backgroundMusic.play();
audioIcon