|
1 | | -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8" /> |
|
8 | 8 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
9 | 9 | <link |
10 | 10 | href="https://fonts.googleapis.com/css2?family=Tsukimi+Rounded&display=swap" |
11 | | - rel="stylesheet" |
12 | | - /> |
13 | | - <link rel="stylesheet" href="./src/style.css" /> |
14 | | - <script |
15 | | - src="https://kit.fontawesome.com/ebc3e386e0.js" |
16 | | - crossorigin="anonymous" |
17 | | - ></script> |
| 11 | + rel="stylesheet" /> |
| 12 | + <link href="./src/output.css" rel="stylesheet" /> |
| 13 | + |
18 | 14 | <script type="module" src="./src/api/postsServices.js" defer></script> |
19 | 15 | </head> |
20 | 16 | <body> |
21 | 17 | <header id="desktop-header" class="desktop-header"></header> |
22 | | - <h1 class="create-heading tsukimi-rounded-regular">Create a post</h1> |
23 | | - <form id="create-form"> |
24 | | - <label for="title">Title*</label> |
25 | | - <input name="title" id="title" required class="create-title" /> |
26 | | - <label for="url">Image URL</label> |
27 | | - <input type="url" name="url" id="url" class="create-url" /> |
28 | | - <textarea |
29 | | - name="body" |
30 | | - id="body" |
31 | | - cols="25" |
32 | | - rows="5" |
33 | | - placeholder="Caption your Still photo" |
34 | | - class="create-textarea" |
35 | | - ></textarea> |
36 | | - <button class="create-button">Create post</button> |
37 | | - </form> |
| 18 | + <section class="flex flex-col items-center gap-10 mx-auto max-w-100"> |
| 19 | + <h1 class="font-tsukimi text-3xl">Create a post</h1> |
| 20 | + <form |
| 21 | + id="create-form" |
| 22 | + class="flex flex-col items-center justify-items-center text-left gap-5 w-[40%]"> |
| 23 | + ¨ |
| 24 | + <div class="flex flex-col items-center w-full"> |
| 25 | + <label for="title" class="self-start">Title</label> |
| 26 | + <input |
| 27 | + name="title" |
| 28 | + id="title" |
| 29 | + required |
| 30 | + class="border rounded-sm pl-2 w-full" /> |
| 31 | + </div> |
| 32 | + <div class="flex flex-col items-center w-full"> |
| 33 | + <label for="url" class="self-start">Image URL</label> |
| 34 | + <input |
| 35 | + type="url" |
| 36 | + name="url" |
| 37 | + id="url" |
| 38 | + class="border rounded-sm pl-2 w-full" /> |
| 39 | + </div> |
| 40 | + |
| 41 | + <textarea |
| 42 | + name="body" |
| 43 | + id="body" |
| 44 | + cols="25" |
| 45 | + rows="5" |
| 46 | + placeholder="Caption your Still photo" |
| 47 | + class="border rounded-sm pl-2 w-full"></textarea> |
| 48 | + <button class="border-2 px-4 py-2 hover:bg-black hover:text-white"> |
| 49 | + Create post |
| 50 | + </button> |
| 51 | + </form> |
| 52 | + </section> |
38 | 53 | </body> |
39 | 54 | </html> |
0 commit comments