askmesomething / index.html
clem's picture
clem HF Staff
Add 2 files
027e7ee verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ask Me Something</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}
body {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
perspective: 1000px;
overflow: hidden;
}
.container {
text-align: center;
position: relative;
}
.question-box {
background: white;
padding: 40px;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
width: 400px;
max-width: 90vw;
position: relative;
transform-style: preserve-3d;
transition: all 0.5s ease;
}
.question-box:hover {
transform: translateY(-5px) rotateX(5deg);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
h1 {
font-size: 2.5rem;
color: #333;
margin-bottom: 30px;
background: linear-gradient(to right, #3498db, #9b59b6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
position: relative;
display: inline-block;
}
h1::after {
content: '';
position: absolute;
bottom: -10px;
left: 0;
width: 100%;
height: 3px;
background: linear-gradient(to right, #3498db, #9b59b6);
border-radius: 3px;
}
.question-mark {
font-size: 3rem;
color: #3498db;
margin-bottom: 20px;
display: inline-block;
animation: pulse 2s infinite;
transform-origin: center;
}
.input-container {
margin-top: 20px;
position: relative;
}
input {
width: 100%;
padding: 15px 20px;
border: 2px solid #eee;
border-radius: 50px;
font-size: 1rem;
transition: all 0.3s;
outline: none;
}
input:focus {
border-color: #9b59b6;
box-shadow: 0 5px 15px rgba(155, 89, 182, 0.2);
}
button {
background: linear-gradient(to right, #3498db, #9b59b6);
color: white;
border: none;
padding: 15px 30px;
border-radius: 50px;
font-size: 1rem;
font-weight: bold;
margin-top: 20px;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.decoration {
position: absolute;
width: 100px;
height: 100px;
background: rgba(155, 89, 182, 0.1);
border-radius: 20px;
z-index: -1;
animation: float 15s infinite linear;
}
.decoration:nth-child(1) {
top: 10%;
left: 10%;
}
.decoration:nth-child(2) {
bottom: 15%;
right: 10%;
animation-delay: 3s;
background: rgba(52, 152, 219, 0.1);
}
.decoration:nth-child(3) {
top: 50%;
right: 20%;
width: 60px;
height: 60px;
animation-delay: 6s;
background: rgba(231, 76, 60, 0.1);
}
.decoration:nth-child(4) {
bottom: 25%;
left: 20%;
width: 80px;
height: 80px;
animation-delay: 9s;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@keyframes float {
0% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
100% { transform: translateY(0) rotate(360deg); }
}
.typing-text {
border-right: 2px solid #3498db;
animation: blink 0.7s infinite;
}
@keyframes blink {
0%, 100% { border-color: transparent; }
50% { border-color: #3498db; }
}
</style>
</head>
<body>
<div class="decoration"></div>
<div class="decoration"></div>
<div class="decoration"></div>
<div class="decoration"></div>
<div class="container">
<div class="question-box">
<div class="question-mark">
<i class="fas fa-question-circle"></i>
</div>
<h1 id="typing-text"></h1>
<div class="input-container">
<input type="text" placeholder="Type your question here...">
<button>Ask Me <i class="fas fa-paper-plane"></i></button>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const text = "Ask me something";
const typingText = document.getElementById('typing-text');
let i = 0;
function typeWriter() {
if (i < text.length) {
typingText.innerHTML += text.charAt(i);
i++;
setTimeout(typeWriter, 100);
} else {
typingText.classList.add('typing-text');
}
}
typeWriter();
// Add click animation to the question box
const questionBox = document.querySelector('.question-box');
questionBox.addEventListener('click', function() {
this.style.transform = 'translateY(-5px) rotateX(10deg)';
setTimeout(() => {
this.style.transform = 'translateY(-5px) rotateX(5deg)';
}, 300);
});
});
</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 <a href="https://enzostvs-deepsite.hf.space" style="color: #fff;" target="_blank" >DeepSite</a> <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;"></p></body>
</html>