Kgshop commited on
Commit
f9fdafd
·
verified ·
1 Parent(s): 5d9e3ad

Sync sites/site_4cccd09e13e1.py 2025-06-22 16:05:41

Browse files
Files changed (1) hide show
  1. sites/site_4cccd09e13e1.py +48 -0
sites/site_4cccd09e13e1.py ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import flask
2
+
3
+ app = flask.Flask(__name__)
4
+
5
+ @app.route("/")
6
+ def index():
7
+ html_content = """
8
+ <!DOCTYPE html>
9
+ <html lang="ru">
10
+ <head>
11
+ <meta charset="UTF-8">
12
+ <title>Моя визитка</title>
13
+ <style>
14
+ body {
15
+ font-family: sans-serif;
16
+ text-align: center;
17
+ margin: 50px;
18
+ }
19
+ .container {
20
+ max-width: 600px;
21
+ margin: 0 auto;
22
+ padding: 20px;
23
+ border: 1px solid #ccc;
24
+ border-radius: 5px;
25
+ }
26
+ img {
27
+ max-width: 100%;
28
+ height: auto;
29
+ border-radius: 5px;
30
+ }
31
+ </style>
32
+ </head>
33
+ <body>
34
+ <div class="container">
35
+ <h1>Ваше имя</h1>
36
+ <img src="https://via.placeholder.com/150" alt="Фото">
37
+ <p>Ваша должность</p>
38
+ <p>Ваша контактная информация: <a href="mailto:your.email@example.com">your.email@example.com</a></p>
39
+ <p>Ваш телефон: +7 (XXX) XXX-XX-XX</p>
40
+ <p>Ссылка на LinkedIn (или другую соцсеть): <a href="#">Ссылка</a></p>
41
+ </div>
42
+ </body>
43
+ </html>
44
+ """
45
+ return flask.render_template_string(html_content)
46
+
47
+ if __name__ == '__main__':
48
+ app.run(host='0.0.0.0', port={{GENERATED_APP_PORT}})