|
17 | 17 | </head>
|
18 | 18 | <body>
|
19 | 19 | <div class="container" id="container">
|
20 |
| - <div class="form-container sign-up-container"> |
| 20 | + <!-- Improve Accessibility with ARIA --> |
| 21 | + <div |
| 22 | + class="form-container sign-up-container" |
| 23 | + id="sign-up-container" |
| 24 | + aria-hidden="false" |
| 25 | + > |
21 | 26 | <form>
|
22 |
| - <h1>Sign Up</h1> |
23 |
| - <div class="social-container"> |
24 |
| - <a href="#" class="social"><i class="fab fa-instagram"></i></a> |
25 |
| - <a href="#" class="social"><i class="fab fa-google"></i></a> |
26 |
| - <a href="#" class="social"><i class="fab fa-tiktok"></i></a> |
| 27 | + <!-- Refactor CSS with BEM --> |
| 28 | + <h1 class="form-container__title">Sign Up</h1> |
| 29 | + <div class="form-container__social-container"> |
| 30 | + <a href="#" class="form-container__social" |
| 31 | + ><i class="fab fa-instagram"></i |
| 32 | + ></a> |
| 33 | + <a href="#" class="form-container__social" |
| 34 | + ><i class="fab fa-google"></i |
| 35 | + ></a> |
| 36 | + <a href="#" class="form-container__social" |
| 37 | + ><i class="fab fa-tiktok"></i |
| 38 | + ></a> |
27 | 39 | </div>
|
28 |
| - <span>or use your email for registration</span> |
29 |
| - <input type="text" placeholder="Name" /> |
30 |
| - <input type="email" placeholder="Email" /> |
31 |
| - <input type="password" placeholder="Password" /> |
32 |
| - <button onclick="return false;">Sign Up</button> |
| 40 | + <span class="form-container__text" |
| 41 | + >or use your email for registration</span |
| 42 | + > |
| 43 | + <!-- Add Form Validation --> |
| 44 | + <input |
| 45 | + type="text" |
| 46 | + placeholder="Name" |
| 47 | + required |
| 48 | + class="form-container__input" |
| 49 | + /> |
| 50 | + <input |
| 51 | + type="email" |
| 52 | + placeholder="Email" |
| 53 | + required |
| 54 | + class="form-container__input" |
| 55 | + /> |
| 56 | + <!-- Implement Password Visibility Toggle --> |
| 57 | + <div class="form-container__input-group"> |
| 58 | + <input |
| 59 | + type="password" |
| 60 | + placeholder="Password" |
| 61 | + required |
| 62 | + class="form-container__input" |
| 63 | + /> |
| 64 | + <span class="form-container__toggle-password"> |
| 65 | + <i class="far fa-eye"></i> |
| 66 | + </span> |
| 67 | + </div> |
| 68 | + <button class="form-container__button">Sign Up</button> |
33 | 69 | </form>
|
34 | 70 | </div>
|
35 |
| - <div class="form-container sign-in-container"> |
| 71 | + <div |
| 72 | + class="form-container sign-in-container" |
| 73 | + id="sign-in-container" |
| 74 | + aria-hidden="true" |
| 75 | + > |
36 | 76 | <form>
|
37 |
| - <h1>Sign In</h1> |
38 |
| - <div class="social-container"> |
39 |
| - <a href="#" class="social"><i class="fab fa-instagram"></i></a> |
40 |
| - <a href="#" class="social"><i class="fab fa-google"></i></a> |
41 |
| - <a href="#" class="social"><i class="fab fa-tiktok"></i></a> |
| 77 | + <h1 class="form-container__title">Sign In</h1> |
| 78 | + <div class="form-container__social-container"> |
| 79 | + <a href="#" class="form-container__social" |
| 80 | + ><i class="fab fa-instagram"></i |
| 81 | + ></a> |
| 82 | + <a href="#" class="form-container__social" |
| 83 | + ><i class="fab fa-google"></i |
| 84 | + ></a> |
| 85 | + <a href="#" class="form-container__social" |
| 86 | + ><i class="fab fa-tiktok"></i |
| 87 | + ></a> |
| 88 | + </div> |
| 89 | + <span class="form-container__text">or use your account</span> |
| 90 | + <input |
| 91 | + type="email" |
| 92 | + placeholder="Email" |
| 93 | + required |
| 94 | + class="form-container__input" |
| 95 | + /> |
| 96 | + <div class="form-container__input-group"> |
| 97 | + <input |
| 98 | + type="password" |
| 99 | + placeholder="Password" |
| 100 | + required |
| 101 | + class="form-container__input" |
| 102 | + /> |
| 103 | + <span class="form-container__toggle-password"> |
| 104 | + <i class="far fa-eye"></i> |
| 105 | + </span> |
42 | 106 | </div>
|
43 |
| - <span>or use your account</span> |
44 |
| - <input type="email" placeholder="Email" /> |
45 |
| - <input type="password" placeholder="Password" /> |
46 |
| - <a href="#">Forgot your password?</a> |
47 |
| - <button onclick="return false;">Sign In</button> |
| 107 | + <a href="#" class="form-container__link">Forgot your password?</a> |
| 108 | + <button class="form-container__button">Sign In</button> |
48 | 109 | </form>
|
49 | 110 | </div>
|
50 | 111 | <div class="overlay-container">
|
51 | 112 | <div class="overlay">
|
52 | 113 | <div class="overlay-panel overlay-left">
|
53 |
| - <h1>Welcome Back!</h1> |
54 |
| - <p>Please login with your personal info</p> |
55 |
| - <button class="ghost" id="signIn">Sign In</button> |
| 114 | + <h1 class="overlay-panel__title">Welcome Back!</h1> |
| 115 | + <p class="overlay-panel__text"> |
| 116 | + Please login with your personal info |
| 117 | + </p> |
| 118 | + <button |
| 119 | + class="ghost overlay-panel__button" |
| 120 | + id="signIn" |
| 121 | + aria-controls="sign-in-container" |
| 122 | + > |
| 123 | + Sign In |
| 124 | + </button> |
56 | 125 | </div>
|
57 | 126 | <div class="overlay-panel overlay-right">
|
58 |
| - <h1>Hello, Friend!</h1> |
59 |
| - <p>Enter your personal details and start your journey with us</p> |
60 |
| - <button class="ghost" id="signUp">Sign Up</button> |
| 127 | + <h1 class="overlay-panel__title">Hello, Friend!</h1> |
| 128 | + <p class="overlay-panel__text"> |
| 129 | + Enter your personal details and start your journey with us |
| 130 | + </p> |
| 131 | + <button |
| 132 | + class="ghost overlay-panel__button" |
| 133 | + id="signUp" |
| 134 | + aria-controls="sign-up-container" |
| 135 | + > |
| 136 | + Sign Up |
| 137 | + </button> |
61 | 138 | </div>
|
62 | 139 | </div>
|
63 | 140 | </div>
|
|
0 commit comments