Spaces:
Build error
Build error
File size: 4,272 Bytes
b7be07b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
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">💬</div> <!-- Text Bubble Emoji -->
<div class="icon" id="audio-icon">🎧</div> <!-- Headphone Emoji -->
<div class="icon" id="image-icon">📷</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) |