ttest / index.html
Stevensayer7's picture
Add 3 files
ae25daf verified
Raw
History Blame Contribute Delete
11.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Test Page</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gradient-bg {
background: linear-gradient(135deg, #6e8efb, #a777e3);
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.wave-shape {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
overflow: hidden;
line-height: 0;
}
.wave-shape svg {
position: relative;
display: block;
width: calc(100% + 1.3px);
height: 150px;
}
.wave-shape .shape-fill {
fill: #FFFFFF;
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
.floating {
animation: float 3s ease-in-out infinite;
}
</style>
</head>
<body class="min-h-screen gradient-bg text-white">
<div class="wave-shape">
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none">
<path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" class="shape-fill"></path>
</svg>
</div>
<div class="container mx-auto px-4 py-16">
<div class="text-center mb-16">
<h1 class="text-4xl md:text-5xl font-bold mb-4">Interactive Test Page</h1>
<p class="text-xl opacity-90 max-w-2xl mx-auto">Explore this beautiful UI with interactive elements built with TailwindCSS</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-16">
<!-- Card 1 -->
<div class="bg-white bg-opacity-10 backdrop-filter backdrop-blur-lg rounded-xl p-6 card-hover border border-white border-opacity-20">
<div class="text-center mb-4">
<div class="inline-flex items-center justify-center w-16 h-16 bg-white bg-opacity-20 rounded-full mb-4">
<i class="fas fa-rocket text-2xl"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Feature One</h3>
<p class="text-white text-opacity-80">Experience smooth animations and transitions that make your interface come alive.</p>
</div>
<button onclick="showAlert('Feature One clicked!')" class="w-full py-2 px-4 bg-white bg-opacity-20 hover:bg-opacity-30 rounded-lg transition duration-300">
Try It
</button>
</div>
<!-- Card 2 -->
<div class="bg-white bg-opacity-10 backdrop-filter backdrop-blur-lg rounded-xl p-6 card-hover border border-white border-opacity-20">
<div class="text-center mb-4">
<div class="inline-flex items-center justify-center w-16 h-16 bg-white bg-opacity-20 rounded-full mb-4">
<i class="fas fa-palette text-2xl"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Feature Two</h3>
<p class="text-white text-opacity-80">Beautiful color gradients and modern design elements that catch the eye.</p>
</div>
<button onclick="changeTheme()" class="w-full py-2 px-4 bg-white bg-opacity-20 hover:bg-opacity-30 rounded-lg transition duration-300">
Change Theme
</button>
</div>
<!-- Card 3 -->
<div class="bg-white bg-opacity-10 backdrop-filter backdrop-blur-lg rounded-xl p-6 card-hover border border-white border-opacity-20">
<div class="text-center mb-4">
<div class="inline-flex items-center justify-center w-16 h-16 bg-white bg-opacity-20 rounded-full mb-4 floating">
<i class="fas fa-magic text-2xl"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Feature Three</h3>
<p class="text-white text-opacity-80">Interactive elements that respond to user actions with delightful feedback.</p>
</div>
<button onclick="toggleAnimation()" class="w-full py-2 px-4 bg-white bg-opacity-20 hover:bg-opacity-30 rounded-lg transition duration-300">
Toggle Animation
</button>
</div>
</div>
<div class="max-w-2xl mx-auto bg-white bg-opacity-10 backdrop-filter backdrop-blur-lg rounded-xl p-8 border border-white border-opacity-20">
<h2 class="text-2xl font-bold mb-6 text-center">Test Form</h2>
<form id="testForm" class="space-y-4">
<div>
<label for="name" class="block mb-2">Your Name</label>
<input type="text" id="name" class="w-full px-4 py-2 bg-white bg-opacity-20 border border-white border-opacity-30 rounded-lg focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50 placeholder-white placeholder-opacity-70" placeholder="Enter your name">
</div>
<div>
<label for="email" class="block mb-2">Email Address</label>
<input type="email" id="email" class="w-full px-4 py-2 bg-white bg-opacity-20 border border-white border-opacity-30 rounded-lg focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50 placeholder-white placeholder-opacity-70" placeholder="Enter your email">
</div>
<div>
<label for="message" class="block mb-2">Your Message</label>
<textarea id="message" rows="4" class="w-full px-4 py-2 bg-white bg-opacity-20 border border-white border-opacity-30 rounded-lg focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50 placeholder-white placeholder-opacity-70" placeholder="Type your message here"></textarea>
</div>
<div class="flex items-center">
<input type="checkbox" id="agree" class="w-4 h-4 bg-white bg-opacity-20 border border-white border-opacity-30 rounded focus:ring-white focus:ring-opacity-50">
<label for="agree" class="ml-2">I agree to the terms and conditions</label>
</div>
<button type="submit" class="w-full py-3 px-6 bg-white bg-opacity-30 hover:bg-opacity-40 rounded-lg font-medium transition duration-300 flex items-center justify-center">
<i class="fas fa-paper-plane mr-2"></i> Submit Form
</button>
</form>
</div>
<div class="text-center mt-16">
<div class="inline-flex space-x-4">
<a href="#" class="w-10 h-10 flex items-center justify-center bg-white bg-opacity-20 hover:bg-opacity-30 rounded-full transition duration-300">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="w-10 h-10 flex items-center justify-center bg-white bg-opacity-20 hover:bg-opacity-30 rounded-full transition duration-300">
<i class="fab fa-github"></i>
</a>
<a href="#" class="w-10 h-10 flex items-center justify-center bg-white bg-opacity-20 hover:bg-opacity-30 rounded-full transition duration-300">
<i class="fab fa-linkedin-in"></i>
</a>
<a href="#" class="w-10 h-10 flex items-center justify-center bg-white bg-opacity-20 hover:bg-opacity-30 rounded-full transition duration-300">
<i class="fab fa-instagram"></i>
</a>
</div>
<p class="mt-6 opacity-80">© 2023 Interactive Test Page. All rights reserved.</p>
</div>
</div>
<script>
// Form submission handler
document.getElementById('testForm').addEventListener('submit', function(e) {
e.preventDefault();
const name = document.getElementById('name').value;
showAlert(`Form submitted successfully, ${name || 'Anonymous'}!`);
this.reset();
});
// Show alert function
function showAlert(message) {
const alertDiv = document.createElement('div');
alertDiv.className = 'fixed top-4 right-4 bg-green-500 text-white px-6 py-3 rounded-lg shadow-lg flex items-center animate-fade-in';
alertDiv.innerHTML = `
<i class="fas fa-check-circle mr-2"></i>
<span>${message}</span>
`;
document.body.appendChild(alertDiv);
setTimeout(() => {
alertDiv.classList.add('opacity-0', 'transition-opacity', 'duration-300');
setTimeout(() => alertDiv.remove(), 300);
}, 3000);
}
// Change theme function
function changeTheme() {
const colors = [
'linear-gradient(135deg, #6e8efb, #a777e3)',
'linear-gradient(135deg, #f093fb, #f5576c)',
'linear-gradient(135deg, #5ee7df, #b490ca)',
'linear-gradient(135deg, #d299c2, #fef9d7)',
'linear-gradient(135deg, #43e97b, #38f9d7)'
];
const randomColor = colors[Math.floor(Math.random() * colors.length)];
document.body.style.background = randomColor;
}
// Toggle animation function
function toggleAnimation() {
const floatingElement = document.querySelector('.floating');
if (floatingElement.style.animationPlayState === 'paused') {
floatingElement.style.animationPlayState = 'running';
showAlert('Animation resumed!');
} else {
floatingElement.style.animationPlayState = 'paused';
showAlert('Animation paused!');
}
}
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Stevensayer7/ttest" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>