Sebastian Kułaga commited on
Commit
f6f93c3
1 Parent(s): deb9cdb

Nicer page

Browse files
Files changed (1) hide show
  1. static/index.html +106 -2
static/index.html CHANGED
@@ -4,7 +4,110 @@
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>Fast API 🤗 Space served with Uvicorn</title>
7
- <link rel="stylesheet" href="style.css" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  <script type="module" src="script.js"></script>
9
  </head>
10
  <body>
@@ -28,9 +131,10 @@
28
  value="Are pets allowed on flights?"
29
  />
30
  <button id="text-class-submit">Submit</button>
 
31
  <p class="text-class-output"></p>
32
  </form>
33
  </section>
34
  </main>
35
  </body>
36
- </html>
 
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>Fast API 🤗 Space served with Uvicorn</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ margin: 0;
11
+ padding: 0;
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ height: 100vh;
16
+ background-color: #f0f0f0;
17
+ }
18
+
19
+ main {
20
+ background: white;
21
+ padding: 20px;
22
+ border-radius: 8px;
23
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
24
+ max-width: 600px;
25
+ width: 100%;
26
+ box-sizing: border-box;
27
+ }
28
+
29
+ h1 {
30
+ font-size: 1.8em;
31
+ margin-bottom: 0.5em;
32
+ }
33
+
34
+ p {
35
+ font-size: 1em;
36
+ line-height: 1.5em;
37
+ }
38
+
39
+ form {
40
+ display: flex;
41
+ flex-direction: column;
42
+ }
43
+
44
+ label {
45
+ margin-bottom: 0.5em;
46
+ }
47
+
48
+ input {
49
+ padding: 10px;
50
+ font-size: 1em;
51
+ margin-bottom: 1em;
52
+ border: 1px solid #ccc;
53
+ border-radius: 4px;
54
+ }
55
+
56
+ button {
57
+ padding: 10px;
58
+ font-size: 1em;
59
+ color: white;
60
+ background-color: #007bff;
61
+ border: none;
62
+ border-radius: 4px;
63
+ cursor: pointer;
64
+ margin-bottom: 1em;
65
+ }
66
+
67
+ button:hover {
68
+ background-color: #0056b3;
69
+ }
70
+
71
+ .text-class-output {
72
+ font-size: 1em;
73
+ color: #333;
74
+ margin-top: 1em;
75
+ padding: 10px;
76
+ border: 1px solid #ccc;
77
+ border-radius: 4px;
78
+ background-color: #f9f9f9;
79
+ }
80
+
81
+ @media (max-width: 600px) {
82
+ h1 {
83
+ font-size: 1.5em;
84
+ }
85
+
86
+ input,
87
+ button {
88
+ font-size: 0.9em;
89
+ }
90
+
91
+ .text-class-output {
92
+ font-size: 0.9em;
93
+ }
94
+ }
95
+
96
+ @media (max-width: 400px) {
97
+ h1 {
98
+ font-size: 1.2em;
99
+ }
100
+
101
+ input,
102
+ button {
103
+ font-size: 0.8em;
104
+ }
105
+
106
+ .text-class-output {
107
+ font-size: 0.8em;
108
+ }
109
+ }
110
+ </style>
111
  <script type="module" src="script.js"></script>
112
  </head>
113
  <body>
 
131
  value="Are pets allowed on flights?"
132
  />
133
  <button id="text-class-submit">Submit</button>
134
+ <label for="text-class-output">Label</label>
135
  <p class="text-class-output"></p>
136
  </form>
137
  </section>
138
  </main>
139
  </body>
140
+ </html>