This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
241 lines (220 loc) · 6.36 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
237
238
239
240
241
---
layout: index
title: Wellcome
---
<style>
:root {
--ion-safe-area-top: 20px;
--ion-safe-area-bottom: 22px;
}
ion-header, ion-footer{display: none !important;}
.slideOutLeft {
-webkit-animation-name: slideOutLeft;
animation-name: slideOutLeft;
-webkit-animation-duration: 4s;
animation-duration: 6s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
@-webkit-keyframes slideOutLeft {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
100% {
visibility: hidden;
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
}
@keyframes slideOutLeft {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
100% {
visibility: hidden;
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
}
.lightSpeedIn {
-webkit-animation-name: lightSpeedIn;
animation-name: lightSpeedIn;
-webkit-animation-timing-function: ease-out;
animation-timing-function: ease-out;
-webkit-animation-duration: 4s;
animation-duration: 5s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
@-webkit-keyframes lightSpeedIn {
0% {
-webkit-transform: translate3d(50%, 0, 0) skewX(-30deg);
transform: translate3d(50%, 0, 0) skewX(-30deg);
opacity: 0;
}
60% {
-webkit-transform: skewX(20deg);
transform: skewX(20deg);
opacity: 1;
}
80% {
-webkit-transform: skewX(-5deg);
transform: skewX(-5deg);
opacity: 1;
}
50% {
-webkit-transform: none;
transform: none;
opacity: 1;
}
}
@keyframes lightSpeedIn {
0% {
-webkit-transform: translate3d(50%, 0, 0) skewX(-30deg);
transform: translate3d(50%, 0, 0) skewX(-30deg);
opacity: 0;
}
10% {
-webkit-transform: skewX(20deg);
transform: skewX(20deg);
opacity: 1;
}
30% {
-webkit-transform: skewX(-5deg);
transform: skewX(-5deg);
opacity: 1;
}
50% {
-webkit-transform: none;
transform: none;
opacity: 1;
}
}
.preloader{display:none!important}
</style>
</head>
<body>
<ion-app>
<ion-content fullscreen class="ion-padding" scroll-y="false">
<ion-note id="WelcomeMessage"></ion-note>
<ion-slides>
<ion-slide>
<div class="slide">
<img src="assets/images/logo/plus62.webp" style="border-radius: 100%;"/>
<h2>Selamat Datang</h2>
<p>
WebShop <b>Plus62store</b> menawarkan berbagai macam jenis masker bordir yang aman dan nyaman dipakai sehari-hari.
</p>
<p class="slideOutLeft" style="margin-top:20px;">
<ion-chip disabled="true"><ion-icon color="dark" name="arrow-back-outline"></ion-icon><ion-label> Geser</ion-label></ion-chip>
</p>
</div>
</ion-slide>
<ion-slide>
<img src="assets/images/logo/WhatsApp.webp" />
<h2>Order mudah! via WhatsApp.</h2>
<p>
<b>Instant Checkout</b> dengan Form Contact WhatsApp,
mempermudah siapa saja melakukan orderan.
</p>
</ion-slide>
<ion-slide>
<img src="assets/images/logo/24jam.webp" />
<h2>Online 1x24 Jam!</h2>
<p>
<b>CS (Customer Service)</b> kami akan dengan senang hati untuk melayani 24 Jam :)
</p>
</ion-slide>
<ion-slide>
<img src="https://img.freepik.com/free-icon/google_318-278809.jpg" />
<h2>Sign In dengan Google</h2>
<p>Untuk melanjutkan silahkan sign in dengan google anda.</p>
<ion-button id="sign-in-button" color="primary" style="margin-top:10px;"><ion-icon slot="start" name="logo-google"></ion-icon> Sign In</ion-button>
<script type="module">
const firebaseConfig = {
apiKey: "{{ site.env.API_KEY }}",
authDomain: "{{ site.env.AUTH_DOMAIN }}",
databaseURL: "{{ site.env.DATABASE_URL }}",
projectId: "{{ site.env.PROJECT_ID }}",
storageBucket: "{{ site.env.STORAGE_BUCKET }}",
messagingSenderId: "{{ site.env.SENDER_ID }}",
appId: "{{ site.env.APP_ID }}",
measurementId: "{{ site.env.MEASUREMENT_ID }}"
};
firebase.initializeApp(firebaseConfig);
const auth = firebase.auth();
const userSignedInDiv = document.getElementById('user-signed-in');
const signInButton = document.getElementById('sign-in-button');
function toggleUI() {
if (auth.currentUser) {
location.href = "{{site.baseurl}}/product";
} else {
}
}
signInButton.addEventListener('click', () => {
const provider = new firebase.auth.GoogleAuthProvider();
auth.signInWithPopup(provider);
});
auth.onAuthStateChanged(user => {
toggleUI();
});
</script>
</ion-slide>
</ion-slides>
</ion-content>
</ion-app>
<style>
ion-slides {
height: 100%;
}
.swiper-slide {
display: block;
}
.swiper-slide h2 {
margin-top: 2.8rem;
}
.swiper-slide img {
width: 192px;
max-height: 50%;
max-width: 80%;
margin: 60px 0 40px;
pointer-events: none;
}
b {
font-weight: 500;
}
p {
padding: 0 40px;
font-size: 14px;
line-height: 1.5;
color: var(--ion-color-step-600, #60646b);
}
p b {
color: var(--ion-text-color, #000000);
}
</style>
<script>
function myProduct() {
location.replace('/product')
}
</script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script>
var slides = document.querySelector('ion-slides');
slides.options = {
initialSlide: 0,
speed: 500
}
</script>
<script src="{{ '/assets/js/script.js' | prepend: site.baseurl }}"></script>
<script type="text/javascript">
var Messages = new Date,
Jams = Messages.getHours();
document.getElementById("WelcomeMessage").innerHTML = 5 <= Jams && Jams <= 11 ? "Selamat Pagi" : 12 <= Jams && Jams <= 15 ? "Selamat Siang" : 15 <= Jams && Jams <= 17 ? "Selamat Sore" : 18 <= Jams && Jams <= 23 ? "Selamat malam" : "Selamat malam menjelang pagi";
</script>