-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
166 lines (164 loc) · 7.22 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="./images/favicon.ico" />
<title>Form Validation</title>
<link rel="stylesheet" href="css/formValidation.css" />
<link rel="stylesheet" href="css/carousel.css" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/@splidejs/[email protected]/dist/js/splide.min.js"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@splidejs/[email protected]/dist/css/splide.min.css"
/>
<style type="text/tailwindcss">
@layer utilities {
.form__inputs {
@apply w-full p-1.5 md:p-2 lg:p-2.5 text-sm lg:text-base text-gray-900 bg-gray-50 border border-gray-300 focus:border-blue-500 outline-none rounded-lg focus:ring-blue-500 transition;
}
.form__links {
@apply text-sm lg:text-base text-blue-500 hover:text-blue-600 underline transition cursor-not-allowed;
}
}
</style>
</head>
<body>
<main class="flex gap-10 w-full h-svh p-5">
<section class="splide hidden md:block w-1/2" role="group">
<ul
class="splide__pagination splide__pagination--custom flex gap-1"
></ul>
<div class="splide__track h-full rounded-lg">
<ul class="splide__list">
<li class="splide__slide">
<img
src="images/image1.jpg"
alt="image1"
class="object-cover h-full"
/>
</li>
<li class="splide__slide">
<img
src="images/image2.jpg"
alt="image2"
class="object-cover h-full"
/>
</li>
<li class="splide__slide">
<img
src="images/image3.jpg"
alt="image3"
class="object-cover h-full"
/>
</li>
</ul>
</div>
<a
href="#"
class="absolute top-5 right-5 px-3 py-1 text-sm text-white bg-gray-50/20 rounded-xl cursor-not-allowed"
>
Back to website ➜
</a>
</section>
<section
class="grid content-center gap-4 xl:gap-6 w-full md:w-1/2 container mx-auto md:px-10"
>
<div
class="grid sm:flex sm:justify-between sm:items-center gap-1 sm:gap-0"
>
<div class="flex items-center gap-1">
<img
src="images/generallogoblue.png"
alt="logo"
class="w-7 lg:w-10"
/>
<span
class="text-base lg:text-lg text-[#0096FF] font-semibold"
>Form Validation</span
>
</div>
<a href="#" class="form__links">Learn more</a>
</div>
<h1 class="text-3xl lg:text-4xl xl:text-5xl">
Create an account
</h1>
<p class="text-sm lg:text-base">
Already have an account?
<a href="#" class="form__links">Log in</a>
</p>
<form class="grid gap-3" novalidate>
<div class="form-validation__wrapper">
<input
type="text"
name="form-validation__username"
autofocus
autocomplete="username"
class="form__inputs"
placeholder="Username"
/>
</div>
<div class="form-validation__wrapper">
<input
type="email"
name="form-validation__email"
autocomplete="email"
class="form__inputs"
placeholder="Email"
/>
</div>
<div class="form-validation__wrapper">
<input
type="tel"
name="form-validation__tel"
autocomplete="tel"
class="form__inputs"
placeholder="Phone number"
/>
</div>
<div class="form-validation__wrapper">
<input
type="password"
name="form-validation__password"
autocomplete="current-password"
class="form__inputs"
placeholder="Enter your password"
/>
</div>
<div class="form-validation__wrapper">
<input
type="password"
name="form-validation__password--confirm"
autocomplete="current-password"
class="form__inputs"
placeholder="Confirm your password"
/>
</div>
<div class="form-validation__wrapper">
<div class="form-validation__input--wrapper">
<label for="terms-and-conditions">
<input
type="checkbox"
name="form-validation__required-checkbox"
id="terms-and-conditions"
/>
I agree to the
<a href="#" class="form__links"
>Terms & Conditions</a
></label
>
</div>
</div>
<input
type="submit"
value="Create account"
class="mt-4 px-3 md:px-4 lg:px-5 py-2 lg:py-2.5 text-sm text-white font-medium bg-blue-500 hover:bg-blue-600 focus:ring-4 focus:ring-blue-300 rounded-lg focus:outline-none transition cursor-pointer"
/>
</form>
</section>
</main>
<script src="js/carousel.js"></script>
<script src="js/formValidation.js"></script>
</body>
</html>