Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions lol
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
from flask import Flask, render_template_string

app = Flask(__name__)

html_template = """
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mi P谩gina Web</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
max-width: 600px;
text-align: center;
}
h1 {
color: #667eea;
margin-bottom: 20px;
}
p {
color: #555;
line-height: 1.6;
margin-bottom: 30px;
}
.btn {
background: #667eea;
color: white;
padding: 12px 30px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
text-decoration: none;
display: inline-block;
}
.btn:hover {
background: #764ba2;
}
</style>
</head>
<body>
<div class="container">
<h1>隆Bienvenido a mi p谩gina web!</h1>
<p>Esta es una p谩gina web sencilla creada con Python y Flask.</p>
<p>Puedes personalizarla como desees agregando m谩s contenido, estilos o funcionalidades.</p>
<a href="#" class="btn">Comenzar</a>
</div>
</body>
</html>
"""

@app.route('/')
def home():
return render_template_string(html_template)

if __name__ == '__main__':
app.run(debug=True)