Belem Zhang commited on
Commit
c3727ed
1 Parent(s): 3c68b16
Files changed (2) hide show
  1. assets/style.css +61 -7
  2. index.html +1 -0
assets/style.css CHANGED
@@ -1,10 +1,10 @@
1
  body {
2
  padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
  }
5
 
6
  h1 {
7
- font-size: 16px;
8
  margin-top: 0;
9
  }
10
 
@@ -16,11 +16,8 @@ p {
16
  }
17
 
18
  .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
  padding: 10px;
22
- border: 1px solid lightgray;
23
- border-radius: 10px;
24
  }
25
 
26
  .card p:last-child {
@@ -203,4 +200,61 @@ a:hover, a:focus {
203
  color: #fff;
204
  background: linear-gradient(135deg, #184fee 0%, #144acc 40%, #144acc 100%);
205
  box-shadow: 0 3px 15px -1px rgba(39, 94, 254, 0.5);
206
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
  padding: 2rem;
3
+ color: rgb(31, 41, 55);
4
  }
5
 
6
  h1 {
7
+ font-size: 22px;
8
  margin-top: 0;
9
  }
10
 
 
16
  }
17
 
18
  .card {
19
+ margin: 0 10px;
 
20
  padding: 10px;
 
 
21
  }
22
 
23
  .card p:last-child {
 
200
  color: #fff;
201
  background: linear-gradient(135deg, #184fee 0%, #144acc 40%, #144acc 100%);
202
  box-shadow: 0 3px 15px -1px rgba(39, 94, 254, 0.5);
203
+ }
204
+
205
+ footer {
206
+ margin-top: 1rem;
207
+ color: #9ca3af;
208
+ text-align: center;
209
+ }
210
+
211
+ footer:hover {
212
+ color:#184fee;
213
+ }
214
+
215
+ /* Largest devices such as desktops (1280px) */
216
+ @media only screen and (max-width: 80em) {
217
+ .card_4 {
218
+ grid-template-columns: repeat(3, 1fr);
219
+ }
220
+
221
+ .g2 {
222
+ grid-template-columns: repeat(2, 1fr);
223
+ }
224
+ }
225
+
226
+ /* Large devices such as laptops (1024px) */
227
+ @media only screen and (max-width: 64em) {
228
+ .card_4 {
229
+ grid-template-columns: repeat(2, 1fr);
230
+ }
231
+
232
+ .g2 {
233
+ grid-template-columns: repeat(2, 1fr);
234
+ }
235
+ }
236
+
237
+ /* Medium devices such as tablets (768px) */
238
+ @media only screen and (max-width: 48em) {
239
+ .card_4 {
240
+ grid-template-columns: repeat(2, 1fr);
241
+ }
242
+
243
+ .g2 {
244
+ grid-template-columns: repeat(2, 1fr);
245
+ }
246
+ }
247
+
248
+ @media only screen and (max-width: 40em) {
249
+ .card_4 {
250
+ grid-template-columns: repeat(1, 1fr);
251
+ }
252
+
253
+ .g2 {
254
+ grid-template-columns: repeat(1, 1fr);
255
+ }
256
+ }
257
+
258
+
259
+
260
+
index.html CHANGED
@@ -126,6 +126,7 @@
126
  </div>
127
  </article>
128
  </div>
 
129
  </body>
130
 
131
  </html>
 
126
  </div>
127
  </article>
128
  </div>
129
+ <footer>&copy;2024 WebNN API</footer>
130
  </body>
131
 
132
  </html>