Sijuade's picture
Upload 6 files
b7be07b verified
def get_html():
html_string = """
<div id="banner">
<div id="particles-js"></div>
<h1>Multimodal Chatbot</h1>
<p>A chatbot that accepts text, audio, and images.</p>
<div class="icons">
<div class="icon" id="text-icon">&#128172;</div> <!-- Text Bubble Emoji -->
<div class="icon" id="audio-icon">&#127911;</div> <!-- Headphone Emoji -->
<div class="icon" id="image-icon">&#128247;</div> <!-- Camera Emoji -->
</div>
</div>
<style>
#banner {
background: linear-gradient(270deg, #6c5ce7, #a29bfe, #fd79a8);
background-size: 600% 600%;
color: white;
text-align: center;
padding: 30px;
border-radius: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
position: relative;
overflow: hidden;
animation: AnimatedGradient 15s ease infinite;
}
#particles-js {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 1;
}
#banner > * {
position: relative;
z-index: 2;
}
#banner h1 {
font-size: 2.8em;
margin-bottom: 10px;
animation: fadeInDown 1.5s ease-in-out;
}
#banner p {
font-size: 1.3em;
animation: fadeInUp 1.5s ease-in-out;
}
.icons {
display: flex;
justify-content: center;
margin-top: 20px;
}
.icon {
font-size: 2em;
margin: 0 10px;
animation: bounce 2s infinite;
transition: transform 0.2s;
}
.icon:hover {
transform: scale(1.1);
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
@keyframes AnimatedGradient {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
</style>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
particlesJS("particles-js", {
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#ffffff"
},
"shape": {
"type": "circle",
"stroke": {
"width": 0,
"color": "#000000"
},
"polygon": {
"nb_sides": 5
}
},
"opacity": {
"value": 0.5,
"random": false,
"anim": {
"enable": false,
"speed": 1,
"opacity_min": 0.1,
"sync": false
}
},
"size": {
"value": 3,
"random": true,
"anim": {
"enable": false,
"speed": 40,
"size_min": 0.1,
"sync": false
}
},
"line_linked": {
"enable
"""
return(html_string)