-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
223 lines (188 loc) · 8.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>The Pink Lemonade</title>
<meta property="og:title" content="The Pink Lemonade">
<meta property="og:description" content="Store opening soon">
<meta property="og:image" content="https://thepinklemonade.store/assets/lemons.png">
<meta property="og:url" content="http://thepinklemonade.store/">
<meta property="og:type" content="website">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://sibforms.com/forms/end-form/build/sib-styles.css">
<link rel="icon" type="image/png" href="assets/favico.png">
</head>
<body>
<div class="nav">
<div class="logo">
<img src="assets/TPL_logo.png" alt="The Pink Lemonade Logo" class="logo-img">
</div>
<div class="password">
<button id="passwordBtn">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px"
viewBox="0 0 512 640" style="enable-background:new 0 0 512 512;" xml:space="preserve" width="20" height="20">
<g>
<path
d="M405.333,179.712v-30.379C405.333,66.859,338.475,0,256,0S106.667,66.859,106.667,149.333v30.379 c-38.826,16.945-63.944,55.259-64,97.621v128C42.737,464.214,90.452,511.93,149.333,512h213.333 c58.881-0.07,106.596-47.786,106.667-106.667v-128C469.278,234.971,444.159,196.657,405.333,179.712z M277.333,362.667 c0,11.782-9.551,21.333-21.333,21.333c-11.782,0-21.333-9.551-21.333-21.333V320c0-11.782,9.551-21.333,21.333-21.333 c11.782,0,21.333,9.551,21.333,21.333V362.667z M362.667,170.667H149.333v-21.333c0-58.91,47.756-106.667,106.667-106.667 s106.667,47.756,106.667,106.667V170.667z" />
</g>
</svg>
Enter using password
</button>
</div>
</div>
<div class="main-content">
<div class="center-content">
<img src="assets/logo 3x3cm.png" alt="The Pink Lemonade Logo" class="logo-img">
<p class="coming-soon">The online store is opening soon.</p>
</div>
<div class="newsletter">
<p class="signup" id="desktop-signup">Sign up to be the first to access our upcoming releases</p>
<p class="signup" id="mobile-signup">Sign up to be the first
<br>to access our upcoming releases
</p>
<!-- Brevo Form starts -->
<div class="sib-form">
<div id="sib-form-container" class="sib-form-container">
<div id="sib-container" class="sib-container--large sib-container--vertical">
<form id="sib-form" method="POST"
action="https://45d51d4c.sibforms.com/serve/MUIFADqsFhYABGzCfhcLMWNnbEqqYSZhVvOR-yIQMbS8ohAo_wZi3YLN9y55-Lu_lVLi9Sw4eJVB-9rwIW6KLr9j5bkfgJYkRa76N3-MuJopHzgGglhAs1Cr_iWDMdBa869-sJkJOXYZW_5Bax5ciq1RSsaZSvnUe0K8HYL-2SS1WfzdqKHSOYrFQdzNTtojuX7jkWmKg4RQ1fo_"
data-type="subscription">
<div class="sib-input sib-form-block">
<div class="form__entry entry_block">
<div class="form__label-row ">
<div class="entry__field">
<input class="input " type="text" id="EMAIL" name="EMAIL" autocomplete="off"
placeholder="Email Address" data-required="true" required />
<button class="sib-form-block__button sib-form-block__button-with-loader" form="sib-form"
type="submit">
<svg class="icon clickable__icon progress-indicator__icon sib-hide-loader-icon"
viewBox="0 0 512 512">
<path
d="M460.116 373.846l-20.823-12.022c-5.541-3.199-7.54-10.159-4.663-15.874 30.137-59.886 28.343-131.652-5.386-189.946-33.641-58.394-94.896-95.833-161.827-99.676C261.028 55.961 256 50.751 256 44.352V20.309c0-6.904 5.808-12.337 12.703-11.982 83.556 4.306 160.163 50.864 202.11 123.677 42.063 72.696 44.079 162.316 6.031 236.832-3.14 6.148-10.75 8.461-16.728 5.01z" />
</svg>
SUBSCRIBE
</button>
</div>
</div>
<label class="entry__error entry__error--primary"></label>
</div>
</div>
<input type="text" name="email_address_check" value="" class="input--hidden">
<input type="hidden" name="locale" value="en">
</form>
</div>
<div id="error-message" class="sib-form-message-panel">
<div class="sib-form-message-panel__text sib-form-message-panel__text--center">
<span class="sib-form-message-panel__inner-text">Your subscription could not be saved. Please try
again.</span>
</div>
</div>
<div id="success-message" class="sib-form-message-panel">
<div class="sib-form-message-panel__text sib-form-message-panel__text--center">
<span class="sib-form-message-panel__inner-text">Subscription successful!</span>
</div>
</div>
</div>
</div>
<!-- Brevo Form ends -->
<p class="email-consent">By subscribing, you agree to receive email marketing from us.</p>
</div>
</div>
<div id="passwordModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<p class="signup">Enter store using password:</p>
<form class="password-form">
<div class="input-wrapper">
<input type="password" id="passwordInput" placeholder="Password" required>
<button id="enterPasswordBtn" type="button">ENTER</button>
</div>
</form>
<p id="errorMessage" class="error-message">Incorrect password. Please try again.</p>
</div>
</div>
<script>
// Password
const correctPassword = "TPL1624";
// Get the modal elements
const modal = document.getElementById("passwordModal");
const btn = document.getElementById("passwordBtn");
const span = document.getElementsByClassName("close")[0];
const enterPasswordBtn = document.getElementById("enterPasswordBtn");
const passwordInput = document.getElementById("passwordInput");
const errorMessage = document.getElementById("errorMessage");
// Open the modal on button click
btn.onclick = function () {
modal.style.display = "flex";
passwordInput.focus();
resetModalState();
}
// Close the modal when clicking X
span.onclick = function () {
closeModal();
}
// Close the modal when clicking outside
window.onclick = function (event) {
if (event.target == modal) {
closeModal();
}
}
window.ontouchstart = function (event) {
if (event.target == modal) {
closeModal();
}
}
// Handle modal close and reset
function closeModal() {
modal.style.display = "none";
resetModalState();
}
// Reset error message and password input
function resetModalState() {
errorMessage.classList.remove("visible");
errorMessage.textContent = "";
errorMessage.style.visibility = "hidden";
passwordInput.value = "";
}
// Validate password
enterPasswordBtn.onclick = function () {
const enteredPassword = passwordInput.value.trim();
// Check if the input is empty
if (enteredPassword === "") {
showErrorMessage("Please enter a password.");
return;
}
// Validate password
if (enteredPassword === correctPassword) {
window.location.href = "https://www.instagram.com/the.pinklemonade/";
} else {
showErrorMessage("Incorrect password. Please try again.");
}
}
// Show error message
function showErrorMessage(message) {
errorMessage.classList.add("visible");
errorMessage.textContent = message;
errorMessage.style.visibility = "visible";
passwordInput.value = "";
}
</script>
<script>
window.REQUIRED_CODE_ERROR_MESSAGE = 'Please choose a country code';
window.LOCALE = 'en';
window.EMAIL_INVALID_MESSAGE = window.SMS_INVALID_MESSAGE = "The information provided is invalid. ";
window.REQUIRED_ERROR_MESSAGE = "This field cannot be left blank. ";
window.GENERIC_INVALID_MESSAGE = "The information provided is invalid. ";
window.translation = {
common: {
selectedList: '{quantity} list selected',
selectedLists: '{quantity} lists selected'
}
};
var AUTOHIDE = Boolean(0);
</script>
<script defer src="https://sibforms.com/forms/end-form/build/main.js"></script>
</body>
</html>