Update index.html
Browse files12345678910111213141516171819123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100<!doctype html><html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>My static Space</title> <link rel="stylesheet" href="style.css" /> </head> <body> <div class="card"> <h1>Welcome to your static Space!</h1> <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p> <p> Also don't forget to check the <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>. </p> </div> </body></html><!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Let Talk</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body { margin: 0; font-family: Arial; background: #0f0f0f; color: white; }
header { background: #ff1a1a; padding: 15px; text-align: center; font-size: 24px; font-weight: bold; }
.container { padding: 20px; }
.post-box { background: #1c1c1c; padding: 15px; border-radius: 10px; margin-bottom: 20px; }
input, textarea { width: 100%; padding: 10px; margin-top: 10px; border-radius: 5px; border: none; }
button { margin-top: 10px; padding: 10px; background: #ff1a1a; color: white; border: none; border-radius: 5px; cursor: pointer; }
.post { background: #262626; padding: 10px; border-radius: 8px; margin-top: 10px; } </style></head>
<body>
<header>🔥 Let Talk</header>
<div class="container">
<div class="post-box"> <h3>Create Post</h3> <input type="text" id="username" placeholder="Your name"> <textarea id="content" placeholder="What's on your mind?"></textarea> <button onclick="addPost()">Post</button> </div>
<div id="feed"></div>
</div>
<script> function addPost() { const username = document.getElementById("username").value; const content = document.getElementById("content").value;
if (!username || !content) { alert("Fill all fields!"); return; }
const post = document.createElement("div"); post.className = "post"; post.innerHTML = "<b>" + username + "</b><p>" + content + "</p>";
document.getElementById("feed").prepend(post);
document.getElementById("content").value = ""; }</script>
</body></html>index.html+100-19