Untitled
unknown
html
a year ago
1.6 kB
10
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI-Powered Website</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>AI Assistant</h1>
<div id="chatbox">
<div id="messages"></div>
</div>
<input type="text" id="userInput" placeholder="Ask me anything..." autocomplete="off">
<button id="sendBtn">Send</button>
</div>
<script src="script.js"></script>
</body>
</html>
body {
font-family: Arial, sans-serif;
background-color: #1e1e2f;
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
width: 400px;
padding: 20px;
background-color: #2b2b3c;
border-radius: 10px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
text-align: center;
}
#chatbox {
height: 300px;
overflow-y: auto;
background-color: #1e1e2f;
border: 1px solid #444;
border-radius: 5px;
padding: 10px;
margin-bottom: 10px;
}
#messages {
display: flex;
flex-direction: column;
gap: 10px;
}
.message {
padding: 8px;
border-radius: 5px;
}
.user {
align-self: flex-end;
background-color: #4caf50;
}
.ai {
align-self: flex-start;
background-color: #444;
}
#userInput {
width: calc(100% - 60px);
padding: 10px;
border-radius: 5px;
border: 1px solid #444;
}
#sendBtn {
width: 50px;
padding: 10px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
#sendBtn:hover {
background-color: #45a049;
}
Editor is loading...
Leave a Comment