Create templates/index.html
Browse files- templates/index.html +73 -0
templates/index.html
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Helping Universal API</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: Arial, sans-serif;
|
| 10 |
+
background-color: #f4f4f4;
|
| 11 |
+
margin: 0;
|
| 12 |
+
padding: 0;
|
| 13 |
+
}
|
| 14 |
+
.container {
|
| 15 |
+
max-width: 800px;
|
| 16 |
+
margin: 20px auto;
|
| 17 |
+
padding: 20px;
|
| 18 |
+
background-color: #fff;
|
| 19 |
+
border-radius: 8px;
|
| 20 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
| 21 |
+
}
|
| 22 |
+
h1 {
|
| 23 |
+
text-align: center;
|
| 24 |
+
}
|
| 25 |
+
.pricing-plan {
|
| 26 |
+
margin-bottom: 20px;
|
| 27 |
+
padding: 20px;
|
| 28 |
+
border: 1px solid #ccc;
|
| 29 |
+
border-radius: 8px;
|
| 30 |
+
}
|
| 31 |
+
.pricing-plan h2 {
|
| 32 |
+
margin-top: 0;
|
| 33 |
+
}
|
| 34 |
+
.pricing-plan p {
|
| 35 |
+
margin: 10px 0;
|
| 36 |
+
}
|
| 37 |
+
.pricing-plan button {
|
| 38 |
+
background-color: #4caf50;
|
| 39 |
+
color: white;
|
| 40 |
+
padding: 10px 20px;
|
| 41 |
+
border: none;
|
| 42 |
+
border-radius: 4px;
|
| 43 |
+
cursor: pointer;
|
| 44 |
+
}
|
| 45 |
+
.pricing-plan button:hover {
|
| 46 |
+
background-color: #45a049;
|
| 47 |
+
}
|
| 48 |
+
</style>
|
| 49 |
+
</head>
|
| 50 |
+
<body>
|
| 51 |
+
<div class="container">
|
| 52 |
+
<h1>Pricing Plans</h1>
|
| 53 |
+
{% for plan, details in plans.items() %}
|
| 54 |
+
<div class="pricing-plan">
|
| 55 |
+
<h2>{{ details.name }}</h2>
|
| 56 |
+
<p>Price: {{ details.price }}</p>
|
| 57 |
+
{% if plan == 'pro' %}
|
| 58 |
+
<p>Rate Limit: Unlimited</p>
|
| 59 |
+
<p style="color: #ff0000;">{{ details.price }}</p>
|
| 60 |
+
{% else %}
|
| 61 |
+
<p>Rate Limit: {{ details.rate_limit }}/day</p>
|
| 62 |
+
<form action="/generate_key" method="post">
|
| 63 |
+
<input type="hidden" name="plan" value="{{ plan }}">
|
| 64 |
+
<label for="username">Username:</label>
|
| 65 |
+
<input type="text" id="username" name="username" required>
|
| 66 |
+
<button type="submit">Get API Key</button>
|
| 67 |
+
</form>
|
| 68 |
+
{% endif %}
|
| 69 |
+
</div>
|
| 70 |
+
{% endfor %}
|
| 71 |
+
</div>
|
| 72 |
+
</body>
|
| 73 |
+
</html>
|