Spaces:
Build error
Build error
Create index.html
Browse files- templates/index.html +53 -0
templates/index.html
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Welcome to My FastAPI App</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
background-color: #f2f2f2;
|
11 |
+
margin: 0;
|
12 |
+
padding: 0;
|
13 |
+
display: flex;
|
14 |
+
justify-content: center;
|
15 |
+
align-items: center;
|
16 |
+
height: 100vh;
|
17 |
+
}
|
18 |
+
.container {
|
19 |
+
background-color: #fff;
|
20 |
+
padding: 20px;
|
21 |
+
border-radius: 8px;
|
22 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
23 |
+
max-width: 400px;
|
24 |
+
}
|
25 |
+
h1 {
|
26 |
+
color: #333;
|
27 |
+
text-align: center;
|
28 |
+
margin-bottom: 20px;
|
29 |
+
}
|
30 |
+
p {
|
31 |
+
color: #666;
|
32 |
+
text-align: center;
|
33 |
+
}
|
34 |
+
a {
|
35 |
+
display: block;
|
36 |
+
text-align: center;
|
37 |
+
margin-top: 20px;
|
38 |
+
color: #007BFF;
|
39 |
+
text-decoration: none;
|
40 |
+
}
|
41 |
+
a:hover {
|
42 |
+
text-decoration: underline;
|
43 |
+
}
|
44 |
+
</style>
|
45 |
+
</head>
|
46 |
+
<body>
|
47 |
+
<div class="container">
|
48 |
+
<h1>Welcome to My FastAPI App</h1>
|
49 |
+
<p>This is the root page of the FastAPI app. You can start exploring the API by using the provided endpoints.</p>
|
50 |
+
<a href="/docs">API Documentation</a>
|
51 |
+
</div>
|
52 |
+
</body>
|
53 |
+
</html>
|