Update templates/index.html
Browse files- templates/index.html +114 -0
templates/index.html
CHANGED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Code Snippets API</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
10 |
+
margin: 0;
|
11 |
+
padding: 20px;
|
12 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
13 |
+
min-height: 100vh;
|
14 |
+
color: white;
|
15 |
+
}
|
16 |
+
.container {
|
17 |
+
max-width: 800px;
|
18 |
+
margin: 0 auto;
|
19 |
+
background: rgba(255, 255, 255, 0.1);
|
20 |
+
padding: 30px;
|
21 |
+
border-radius: 15px;
|
22 |
+
backdrop-filter: blur(10px);
|
23 |
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
24 |
+
}
|
25 |
+
h1 {
|
26 |
+
text-align: center;
|
27 |
+
margin-bottom: 30px;
|
28 |
+
font-size: 2.5em;
|
29 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
30 |
+
}
|
31 |
+
.endpoints {
|
32 |
+
display: grid;
|
33 |
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
34 |
+
gap: 20px;
|
35 |
+
margin-bottom: 30px;
|
36 |
+
}
|
37 |
+
.endpoint-card {
|
38 |
+
background: rgba(255, 255, 255, 0.15);
|
39 |
+
padding: 20px;
|
40 |
+
border-radius: 10px;
|
41 |
+
text-align: center;
|
42 |
+
transition: transform 0.3s ease;
|
43 |
+
}
|
44 |
+
.endpoint-card:hover {
|
45 |
+
transform: translateY(-5px);
|
46 |
+
background: rgba(255, 255, 255, 0.2);
|
47 |
+
}
|
48 |
+
.endpoint-link {
|
49 |
+
color: #fff;
|
50 |
+
text-decoration: none;
|
51 |
+
font-weight: bold;
|
52 |
+
font-size: 1.2em;
|
53 |
+
}
|
54 |
+
.admin-section {
|
55 |
+
text-align: center;
|
56 |
+
margin-top: 40px;
|
57 |
+
padding-top: 30px;
|
58 |
+
border-top: 2px solid rgba(255, 255, 255, 0.3);
|
59 |
+
}
|
60 |
+
.admin-btn {
|
61 |
+
background: rgba(255, 255, 255, 0.2);
|
62 |
+
color: white;
|
63 |
+
padding: 15px 30px;
|
64 |
+
border: 2px solid rgba(255, 255, 255, 0.3);
|
65 |
+
border-radius: 25px;
|
66 |
+
text-decoration: none;
|
67 |
+
font-weight: bold;
|
68 |
+
transition: all 0.3s ease;
|
69 |
+
display: inline-block;
|
70 |
+
}
|
71 |
+
.admin-btn:hover {
|
72 |
+
background: rgba(255, 255, 255, 0.3);
|
73 |
+
border-color: rgba(255, 255, 255, 0.5);
|
74 |
+
transform: scale(1.05);
|
75 |
+
}
|
76 |
+
.description {
|
77 |
+
text-align: center;
|
78 |
+
margin-bottom: 30px;
|
79 |
+
font-size: 1.1em;
|
80 |
+
opacity: 0.9;
|
81 |
+
}
|
82 |
+
</style>
|
83 |
+
</head>
|
84 |
+
<body>
|
85 |
+
<div class="container">
|
86 |
+
<h1>🚀 Code Snippets API</h1>
|
87 |
+
<p class="description">Access your code snippets through these endpoints:</p>
|
88 |
+
|
89 |
+
<div class="endpoints">
|
90 |
+
<div class="endpoint-card">
|
91 |
+
<h3>NAVN Endpoints</h3>
|
92 |
+
<p><a href="/navn1" class="endpoint-link">/navn1</a></p>
|
93 |
+
<p><a href="/navn2" class="endpoint-link">/navn2</a></p>
|
94 |
+
<p><a href="/navn3" class="endpoint-link">/navn3</a></p>
|
95 |
+
<p><a href="/navn4" class="endpoint-link">/navn4</a></p>
|
96 |
+
</div>
|
97 |
+
|
98 |
+
<div class="endpoint-card">
|
99 |
+
<h3>CHIKU Endpoints</h3>
|
100 |
+
<p><a href="/chiku1" class="endpoint-link">/chiku1</a></p>
|
101 |
+
<p><a href="/chiku2" class="endpoint-link">/chiku2</a></p>
|
102 |
+
<p><a href="/chiku3" class="endpoint-link">/chiku3</a></p>
|
103 |
+
<p><a href="/chiku4" class="endpoint-link">/chiku4</a></p>
|
104 |
+
</div>
|
105 |
+
</div>
|
106 |
+
|
107 |
+
<div class="admin-section">
|
108 |
+
<h3>Manage Your Snippets</h3>
|
109 |
+
<p>Update and edit your code snippets</p>
|
110 |
+
<a href="/admin" class="admin-btn">🛠️ Admin Panel</a>
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
</body>
|
114 |
+
</html>
|