-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
236 lines (232 loc) · 9.67 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<title>Base Apparel coming soon page</title>
<style>
*{
margin: 0;
padding: 0;
border: 0;
box-sizing: border-box;
}
.container
{
display:flex;
width: 100vw;
flex-wrap: wrap-reverse !important;
height: 100vh;
}
.content
{
width: 60%;
height: 100%;
display: flex;
background-image: url("./images/bg-pattern-desktop.svg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
justify-content: center;
}
.content > div
{
display: flex;
flex-direction: column;
width: 50%;
margin-right: 10%;
height: 100%;
}
#svg
{
height: 20%;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
}
.img
{
width: 40%;
height: 100%;
background-repeat: no-repeat;
background-size: cover;
background-image: url("./images/hero-desktop.jpg");
}
.text-content h1:first-child , .text-content p{
color:hsl(0, 36%, 70%);
}
.text-content p
{
margin-top:10%;
}
.text-content h1 {
font-size:4rem;
letter-spacing: 8px;
text-transform:uppercase;
}
.text-content
{
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
height: 100%;
}
.text-content div:last-child{
display: flex;
width: 100%;
align-items: center;
height: 20%;
}
.text-content input:hover
{
opacity: 1;
}
.text-content input
{
width: 90%;
opacity: 0.5;
border-radius: 50px;
outline: none;
border: 1px solid hsl(0, 93%, 68%);
padding-left: 25px;
height: 60px;
}
.text-content button:hover
{
opacity: 0.7;
}
.text-content button
{
position: relative;
top: 0%;
right: 9%;
background-image:linear-gradient(hsl(0, 80%, 86%), hsl(0, 74%, 74%));
border-radius: 30px;
width: 80px;
height: 60px;
}
#error-icn
{
position: relative;
top: 0%;
right: 38%;
}
@media (max-width: 900px)
{
.container
{
background-image: url("./images/bg-pattern-desktop.svg");
}
.content
{
width: 100%;
height: 50%;
display: flex;
background-image: url("") !important;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
justify-content: center;
}
.content > div
{
display: flex;
flex-direction: column;
width: 70%;
text-align: center;
margin-right: 0%;
height: 100%;
}
#svg
{
position: absolute;
top: 0;
left: 7%;
height: 10%;
display: flex;
width: 80%;
}
.img
{
width: 100%;
height: 30%;
background-image: url("./images/hero-mobile.jpg");
}
.text-content h1 {
font-size:2rem;
letter-spacing: 8px;
text-transform:uppercase;
}
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<div>
<div id="svg">
<svg xmlns="http://www.w3.org/2000/svg" width="158" height="33"><defs><linearGradient id="a" x1="0%" y1="0%" y2="100%"><stop offset="0%" stop-color="#F8BFBF"/><stop offset="100%" stop-color="#EE8B8B"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="#423A3A" fill-rule="nonzero" d="M53.699 10.2c0 .571-.11 1.071-.33 1.5-.221.428-.537.786-.947 1.071-.411.286-.905.5-1.483.643a7.997 7.997 0 0 1-1.92.215h-5.947V1.126h5.804c1.286 0 2.295.292 3.028.875.732.584 1.098 1.37 1.098 2.358v.036c0 .357-.045.673-.134.946a2.846 2.846 0 0 1-.875 1.322 3.49 3.49 0 0 1-.634.429c.726.274 1.298.646 1.714 1.116.417.47.626 1.122.626 1.956v.035zm-3.43-5.34v-.037c0-.416-.154-.735-.464-.955-.31-.22-.756-.33-1.34-.33h-2.714V6.18h2.536c.607 0 1.09-.104 1.447-.313.357-.208.535-.544.535-1.009zm.697 5v-.036c0-.416-.16-.747-.482-.99-.322-.245-.84-.367-1.554-.367h-3.18v2.75h3.27c.606 0 1.083-.11 1.428-.33.345-.22.518-.563.518-1.027zm21.945 3.769h-2.876l-1.143-2.804h-5.287l-1.143 2.804h-2.804l5.358-12.592h2.536l5.359 12.592zM67.91 8.396L66.249 4.34l-1.661 4.055h3.322zm20.73 1.536c0 .619-.113 1.17-.34 1.652a3.393 3.393 0 0 1-.946 1.214 4.277 4.277 0 0 1-1.447.75 6.281 6.281 0 0 1-1.858.26 8.28 8.28 0 0 1-2.804-.492 7.422 7.422 0 0 1-2.5-1.51L80.37 9.86a8.16 8.16 0 0 0 1.76 1.107c.6.274 1.259.411 1.973.411.572 0 1.015-.104 1.33-.312a.984.984 0 0 0 .474-.867v-.035c0-.179-.033-.337-.098-.474-.066-.137-.19-.265-.375-.384a3.928 3.928 0 0 0-.768-.357 13.29 13.29 0 0 0-1.277-.375 15.566 15.566 0 0 1-1.715-.518 4.83 4.83 0 0 1-1.304-.705 2.853 2.853 0 0 1-.83-1.045c-.197-.417-.295-.935-.295-1.554v-.036c0-.571.107-1.086.322-1.545.214-.458.514-.854.901-1.187a4.06 4.06 0 0 1 1.385-.768A5.564 5.564 0 0 1 83.62.948c.917 0 1.76.137 2.527.41a7.326 7.326 0 0 1 2.117 1.18l-1.43 2.071a9.057 9.057 0 0 0-1.642-.902 4.2 4.2 0 0 0-1.608-.33c-.536 0-.938.104-1.205.312-.268.209-.402.468-.402.777v.036c0 .202.038.378.116.527.077.149.217.283.42.402.202.119.479.232.83.339.351.107.795.232 1.33.375.632.167 1.194.354 1.688.563.495.208.911.458 1.25.75.34.292.596.634.769 1.027.172.393.259.863.259 1.41v.037zm16.76 3.331h-9.52V.761h9.43v2.447h-6.698v2.536h5.894V8.19h-5.894v2.625h6.787v2.447zm-50.148 19h-2.875l-1.143-2.804h-5.287l-1.143 2.804H42l5.358-12.592h2.536l5.358 12.592zm-5-5.233l-1.661-4.054-1.662 4.054h3.323zm21.587-2.911c0 .726-.131 1.363-.393 1.91a3.9 3.9 0 0 1-1.08 1.376c-.459.37-.995.646-1.608.83a6.816 6.816 0 0 1-1.974.277h-2.09v3.751h-2.75V19.761h5.108c.75 0 1.42.104 2.01.312.589.209 1.09.503 1.5.884.41.381.726.837.946 1.367.22.53.33 1.116.33 1.759v.036zm-2.786.053v-.035c0-.62-.2-1.09-.599-1.411-.399-.322-.943-.483-1.634-.483h-2.125v3.822h2.179c.69 0 1.226-.181 1.607-.544.381-.363.572-.813.572-1.349zm19.48-.053c0 .726-.132 1.363-.393 1.91a3.9 3.9 0 0 1-1.081 1.376c-.458.37-.994.646-1.607.83a6.816 6.816 0 0 1-1.974.277h-2.09v3.751h-2.75V19.761h5.108c.75 0 1.42.104 2.01.312.589.209 1.089.503 1.5.884.41.381.726.837.946 1.367.22.53.33 1.116.33 1.759v.036zm-2.787.053v-.035c0-.62-.2-1.09-.598-1.411-.399-.322-.944-.483-1.634-.483h-2.126v3.822h2.18c.69 0 1.226-.181 1.607-.544.38-.363.571-.813.571-1.349zm21.766 8.091h-2.875l-1.143-2.804h-5.287l-1.143 2.804H94.26l5.358-12.592h2.536l5.358 12.592zm-5-5.233l-1.662-4.054-1.66 4.054h3.321zm22.497 5.233h-3.214l-2.68-4h-2.16v4h-2.751V19.761h5.715c1.489 0 2.647.363 3.474 1.09.828.726 1.241 1.738 1.241 3.036v.035c0 1.012-.247 1.837-.74 2.474a4.295 4.295 0 0 1-1.939 1.402l3.054 4.465zm-3.16-8.198v-.036c0-.595-.191-1.041-.572-1.34-.381-.297-.911-.446-1.59-.446h-2.733v3.59h2.787c.678 0 1.2-.16 1.562-.482.364-.321.545-.75.545-1.286zm19.55 8.198h-9.52V19.761h9.431v2.447h-6.698v2.536h5.894v2.447h-5.894v2.625h6.787v2.447zm16.194 0h-8.984V19.761h2.75v10.002h6.234v2.5z"/><path fill="url(#a)" d="M15.5 32.088c-8.56 0-15.5-6.94-15.5-15.5 0-8.56 6.94-15.5 15.5-15.5 8.56 0 15.5 6.94 15.5 15.5 0 8.56-6.94 15.5-15.5 15.5zm0-3.5c6.904 0 12.5-5.373 12.5-12s-5.596-12-12.5-12S3 9.961 3 16.588s5.596 12 12.5 12z" transform="translate(0 -.088)"/></g></svg>
</div>
<div class="text-content">
<h1>We're</h1>
<h1>coming soon</h1>
<p>Hello fellow shoppers! We're currently building our new fashion store.
Add your email below to stay up-to-date with announcements and our launch deals.
</p>
<div>
<input type="email" name="Email" id="input" placeholder="Email Address">
<button id="btn"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="20"><path fill="none" stroke="#FFF" stroke-width="2" d="M1 1l8.836 8.836L1 18.671"/></svg></button>
<svg id="error-icn" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><g fill="none" fill-rule="evenodd"><circle cx="12" cy="12" r="12" fill="#F96464"/><path fill="#FFF" fill-rule="nonzero" d="M13.256 6v9.056h-2V6h2zm-.944 12.464c-.384 0-.699-.104-.944-.312a1.027 1.027 0 0 1-.368-.824c0-.33.125-.608.376-.832.25-.224.563-.336.936-.336.373 0 .68.112.92.336.24.224.36.501.36.832 0 .341-.117.616-.352.824-.235.208-.544.312-.928.312z"/></g></svg>
</div>
</div>
</div>
</div>
<div class="img">
</div>
</div>
<script>
const body=document.querySelector("body");
const error_icn=document.getElementById("error-icn");
const input=document.getElementById("input");
const btn=document.getElementById("btn");
error_icn.style.display="none";
let f = e =>
{
if (input.value==="" && error_icn.style.display=="")
error_icn.style.display="none";
if(e.keyCode===13 && input.value!=="")
{
if (emailValidation(input.value))
window.location("http://awaisoem.netlify.app/");
else
{
error_icn.style.display="";
input.style.borderColor="red";
}
}
}
body.addEventListener("keypress",e => f(e));
btn.addEventListener("click",e => f(e));
let emailValidation = (s)=>
{
if(s.indexOf("@")!==-1 && s.indexOf(".")!==-1 && s.indexOf("@.")===-1 && s[0]!=='.' && s[s.length - 1]!=='.')
{
let j= 0;
let k= 0;
for (let i = 0; i < s.length; i++) {
if (s[i] === "." )
j++;
if (s[i] === "@" )
k++;
}
if (j<2 && k<2)
return true;
}
return false;
}
</script>
</body>
</html>