def home():
keywords = [
"Placeholder Text",
"Typography",
"Mockup",
"Design Layout",
"Content Strategy",
"User Interface (UI)",
"User Experience (UX)",
"Responsive Design",
"Prototyping",
"Wireframe"
]
return render_template('index.html', keywords=keywords)
if _name_ == '_main_':
app.run(debug=True)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Design Keywords</title>
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
<div class="container">
<h1>Design Keywords</h1>
<ul>
{% for keyword in keywords %}
<li>{{ keyword }}</li>
{% endfor %}
</ul>
</div>
</body>
</html>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
}
.container {
max-width: 600px;
margin: auto;
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
ul {
list-style: none;
padding: 0;
}
li {
background: #007bff;
color: white;
margin: 10px 0;
padding: 10px;
border-radius: 4px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Simple Webpage</title>
</head>
<body>
<h1>Welcome to My Simple Webpage!</h1>
<p>This is a basic webpage created with Python.</p>
</body>
</html>
import http.server
import socketserver
PORT = 8000
Handler = http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print(f"Serving at port {PORT}")
httpd.serve_forever()