body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
text-align: center;
}
nav li {
display: inline;
margin-right: 10px;
}
main {
max-width: 800px;
margin: 20px auto;
padding: 20px;
}
.blog-post {
background-color: #fff;
margin-bottom: 20px;
padding: 10px;
border-radius: 5px;
}
.post-meta {
color: #666;
font-size: 0.8em;
}
#search-container, #chat-container {
max-width: 600px;
margin: 20px auto;
background-color: #fff;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
input, button {
padding: 10px;
margin: 5px;
}
#chat-log {
height: 200px;
overflow-y: auto;
border: 1px solid #ccc;
padding: 10px;
margin-bottom: 10px;
}
Web Tools
Post Title 1
This is the content of the blog post. It can include text, images, and more.
Post Title 2
This is another blog post with different content.
Search
Chat
function performSearch() {
const searchInput = document.getElementById('search-input').value;
alert(`Performing search: ${searchInput}`);
}
function sendMessage() {
const chatInput = document.getElementById('chat-input').value;
const chatLog = document.getElementById('chat-log');
const response = `You: ${chatInput}
ChatGPT: Hello! How can I assist you?`;
chatLog.innerText += response + '
';
document.getElementById('chat-input').value = '';
}
0 Comments