-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
283 lines (273 loc) · 8.58 KB
/
Copy pathmain.py
File metadata and controls
283 lines (273 loc) · 8.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
from flask import Flask, render_template_string, request
app = Flask(__name__)
HTML = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>flaviotraq – Smart Table Tennis Balls</title>
<style>
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background: #0f172a;
color: #e5e7eb;
}
header {
background: linear-gradient(135deg, #22c55e, #3b82f6);
padding: 40px 20px;
text-align: center;
color: white;
}
header h1 {
font-size: 3rem;
margin-bottom: 10px;
}
header p {
font-size: 1.2rem;
max-width: 700px;
margin: 0 auto;
}
nav {
background: #020617;
padding: 10px 20px;
text-align: center;
}
nav a {
color: #e5e7eb;
text-decoration: none;
margin: 0 15px;
font-weight: bold;
}
nav a:hover {
color: #22c55e;
}
.container {
max-width: 1100px;
margin: 0 auto;
padding: 60px 20px;
}
.hero {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 40px;
align-items: center;
}
.hero h2 {
font-size: 2.5rem;
margin-bottom: 20px;
}
.hero p {
font-size: 1.1rem;
line-height: 1.6;
}
.cta-btn {
display: inline-block;
margin-top: 25px;
padding: 14px 28px;
background: #22c55e;
color: #020617;
border-radius: 999px;
font-weight: bold;
text-decoration: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
margin-top: 60px;
}
.feature {
background: #020617;
padding: 30px;
border-radius: 16px;
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.feature h3 {
margin-top: 0;
color: #22c55e;
}
.feature p {
line-height: 1.5;
}
.product {
margin-top: 80px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 40px;
align-items: center;
}
.product img {
width: 100%;
max-width: 400px;
border-radius: 16px;
background: #020617;
}
.product-details h2 {
font-size: 2.2rem;
margin-bottom: 20px;
}
.product-details ul {
list-style: none;
padding: 0;
}
.product-details li {
margin-bottom: 10px;
}
.product-details li::before {
content: "✓ ";
color: #22c55e;
font-weight: bold;
}
.contact {
margin-top: 100px;
background: #020617;
padding: 60px 20px;
border-radius: 24px;
}
.contact h2 {
text-align: center;
margin-bottom: 30px;
}
form {
max-width: 600px;
margin: 0 auto;
display: grid;
gap: 20px;
}
input, textarea {
width: 100%;
padding: 14px;
border-radius: 10px;
border: none;
font-size: 1rem;
}
textarea {
resize: vertical;
min-height: 120px;
}
button {
padding: 14px;
border-radius: 999px;
border: none;
font-size: 1rem;
font-weight: bold;
background: #3b82f6;
color: white;
cursor: pointer;
}
button:hover {
background: #2563eb;
}
footer {
margin-top: 100px;
padding: 30px 20px;
text-align: center;
color: #9ca3af;
}
.success {
background: #14532d;
color: #bbf7d0;
padding: 15px;
border-radius: 10px;
text-align: center;
}
</style>
</head>
<body>
<header>
<h1>flaviotraq</h1>
<p>Smart table tennis balls that track real-time speed, spin, and performance — bringing pro-level analytics to every player.</p>
</header>
<nav>
<a href="#home">Home</a>
<a href="#features">Features</a>
<a href="#product">Product</a>
<a href="#contact">Contact</a>
</nav>
<section class="container hero" id="home">
<div>
<h2>Revolutionizing Table Tennis Performance</h2>
<p>
flaviotraq combines advanced sensor technology with elite sports engineering to create the world's smartest table tennis ball. Track speed, improve consistency, and elevate your game with data-driven insights.
</p>
<a href="#contact" class="cta-btn">Get Early Access</a>
</div>
<div>
<img src="https://upload.wikimedia.org/wikipedia/commons/5/5e/Table_tennis_ball_40mm.jpg" alt="Smart Table Tennis Ball">
</div>
</section>
<section class="container" id="features">
<h2 style="text-align:center; font-size:2.2rem;">Why flaviotraq?</h2>
<div class="features">
<div class="feature">
<h3>Real-Time Speed Tracking</h3>
<p>Measure ball speed instantly with millisecond precision — perfect for training, coaching, and competitive play.</p>
</div>
<div class="feature">
<h3>Pro-Level Analytics</h3>
<p>Sync your data to our app and visualize performance trends, shot consistency, and match stats.</p>
</div>
<div class="feature">
<h3>Tournament Legal Design</h3>
<p>Built to official size, weight, and bounce standards, so you can use it in real match conditions.</p>
</div>
<div class="feature">
<h3>Long Battery Life</h3>
<p>Optimized power usage ensures extended sessions without interruption.</p>
</div>
</div>
</section>
<section class="container product" id="product">
<div>
<img src="https://upload.wikimedia.org/wikipedia/commons/5/5e/Table_tennis_ball_40mm.jpg" alt="flaviotraq Ball">
</div>
<div class="product-details">
<h2>flaviotraq Smart Ball</h2>
<p>The future of table tennis training — packed into a regulation ball.</p>
<ul>
<li>High-precision speed sensors</li>
<li>Bluetooth connectivity</li>
<li>Mobile & desktop analytics dashboard</li>
<li>Rechargeable via wireless dock</li>
<li>Durable tournament-grade shell</li>
</ul>
<a href="#contact" class="cta-btn">Join the Waitlist</a>
</div>
</section>
<section class="container contact" id="contact">
<h2>Contact flaviotraq</h2>
{% if success %}
<div class="success">Thanks! Your message has been sent.</div>
{% endif %}
<form method="POST">
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea name="message" placeholder="Tell us what you're interested in..." required></textarea>
<button type="submit">Send Message</button>
</form>
</section>
<footer>
<p>© 2026 flaviotraq. All rights reserved.</p>
</footer>
</body>
</html>
"""
@app.route("/", methods=["GET", "POST"])
def home():
success = False
if request.method == "POST":
name = request.form.get("name")
email = request.form.get("email")
message = request.form.get("message")
print(f"New contact: {name} | {email} | {message}")
success = True
return render_template_string(HTML, success=success)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)