|
10 | 10 | </head> |
11 | 11 |
|
12 | 12 | <body> |
13 | | - <main class="container my-5" style="max-width: 700px"> |
14 | | - <header class="text-center mb-5"> |
15 | | - <h1>Contact Us</h1> |
| 13 | + <main class="container pt-4" style="max-width: 700px"> |
| 14 | + <header class="text-center mb-4"> |
| 15 | + <h1 class="fw-bold mb-2">Contact Us</h1> |
16 | 16 | <p class="text-muted">If you found this project helpful, ⭐️ star the repo !</p> |
17 | 17 |
|
18 | 18 | <!-- GitHub Button (optional) --> |
19 | | - <a class="github-button" href="https://github.com/raspgot/Contact-Form-PHP" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star raspgot/Contact-Form-PHP on GitHub"> Give a star! </a> |
| 19 | + <a class="github-button" href="https://github.com/raspgot/Contact-Form-PHP" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star raspgot/Contact-Form-PHP on GitHub">Give a star !</a> |
20 | 20 | </header> |
21 | 21 |
|
22 | | - <section class="shadow rounded p-5 bg-light"> |
23 | | - <!-- Alert box for status messages --> |
| 22 | + <section class="shadow rounded p-4 bg-white"> |
| 23 | + <!-- Status --> |
24 | 24 | <div id="alert-status" class="alert d-none" role="alert" aria-live="polite"></div> |
25 | 25 |
|
26 | | - <!-- Contact Form --> |
| 26 | + <!-- Form --> |
27 | 27 | <form method="post" class="needs-validation" novalidate autocomplete="off"> |
28 | | - <!-- Name Field --> |
29 | 28 | <div class="mb-3"> |
30 | | - <label for="name" class="form-label fs-5">Name</label> |
| 29 | + <label for="name" class="form-label">Name</label> |
31 | 30 | <input type="text" class="form-control" id="name" name="name" required autocomplete="name" /> |
32 | 31 | <div class="valid-feedback">Looks good !</div> |
33 | 32 | <div class="invalid-feedback">Please enter your name.</div> |
34 | 33 | </div> |
35 | 34 |
|
36 | | - <!-- Email Field --> |
37 | 35 | <div class="mb-3"> |
38 | | - <label for="email" class="form-label fs-5">Email</label> |
| 36 | + <label for="email" class="form-label">Email</label> |
39 | 37 | <input type="email" class="form-control" id="email" name="email" required autocomplete="email" /> |
40 | 38 | <div class="form-text">Make sure to provide a valid email address.</div> |
41 | 39 | <div class="valid-feedback">Looks good !</div> |
42 | 40 | <div class="invalid-feedback">Please enter a valid email address.</div> |
43 | 41 | </div> |
44 | 42 |
|
45 | | - <!-- Subject Field --> |
46 | 43 | <div class="mb-3"> |
47 | | - <label for="subject" class="form-label fs-5">Subject</label> |
| 44 | + <label for="subject" class="form-label">Subject</label> |
48 | 45 | <input type="text" class="form-control" id="subject" name="subject" required autocomplete="off" /> |
49 | 46 | <div class="valid-feedback">Looks good !</div> |
50 | 47 | <div class="invalid-feedback">Please enter a subject.</div> |
51 | 48 | </div> |
52 | 49 |
|
53 | | - <!-- Message Field --> |
54 | 50 | <div class="mb-4"> |
55 | | - <label for="message" class="form-label fs-5">Message</label> |
56 | | - <textarea class="form-control" id="message" name="message" rows="5" required autocomplete="off"></textarea> |
| 51 | + <label for="message" class="form-label">Message</label> |
| 52 | + <textarea class="form-control" id="message" name="message" rows="6" required autocomplete="off"></textarea> |
| 53 | + <div class="form-text">Be as specific as you can.</div> |
57 | 54 | <div class="valid-feedback">Looks good !</div> |
58 | 55 | <div class="invalid-feedback">Please enter your message.</div> |
59 | 56 | </div> |
60 | 57 |
|
61 | | - <!-- Honeypot Field (hidden to humans) --> |
| 58 | + <!-- Honeypot --> |
62 | 59 | <div class="d-none"> |
63 | 60 | <label for="website">Website</label> |
64 | 61 | <input type="text" id="website" name="website" tabindex="-1" autocomplete="off" /> |
65 | 62 | </div> |
66 | 63 |
|
67 | 64 | <!-- Submit Button --> |
68 | | - <button type="submit" class="btn btn-primary px-4 btn-lg d-flex align-items-center justify-content-center gap-2"> |
| 65 | + <button type="submit" class="btn btn-primary w-100 btn-lg d-flex align-items-center justify-content-center gap-2"> |
69 | 66 | <span id="loading-spinner" class="spinner-border spinner-border-sm d-none" role="status" aria-hidden="true"></span> |
70 | 67 | <span>Submit</span> |
71 | 68 | </button> |
|
0 commit comments