-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
234 lines (202 loc) · 6.05 KB
/
index.html
File metadata and controls
234 lines (202 loc) · 6.05 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Aevis</title>
<link rel="icon" type="image/png" href="assets/favicon.png" />
<style>
/* Reset default margins and paddings */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Prevent scrolling outside the carousel */
html,
body {
height: 100%;
overflow: hidden;
}
/* Floating logo styling */
.floating-logo {
position: fixed;
top: 10px;
left: 10px;
z-index: 1;
}
.floating-logo img {
height: 25px;
/* Adjust as needed */
width: auto;
}
/* Download button styling */
.download-btn {
position: fixed;
top: 20px;
right: 20px;
z-index: 1;
padding: 6px 10px;
border-radius: 50px;
overflow: hidden;
border: 1px solid #FF6D50;
cursor: pointer;
color: #FF6D50;
font-size: 12px;
font-family: "Manrope", sans-serif;
font-weight: 550;
text-decoration: none;
}
.download-btn:hover {
background-color: #FF6D5010;
}
/* Carousel container takes up the full viewport */
.carousel-container {
position: relative;
height: 100%;
width: 100%;
overflow: hidden;
}
/* Carousel slides wrapper that will be translated vertically */
.carousel-slides {
height: 100%;
width: 100%;
transition: transform 0.8s ease;
}
/* Each slide fills the entire viewport */
.slide {
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
/* Ensure the image covers the slide */
.slide img {
width: 100%;
height: 100%;
object-fit: contain;
}
</style>
</head>
<body>
<div class="floating-logo" id="logo">
<img src="assets/logo.png" alt="Aevis Logo" />
</div>
<a href="assets/aevis.pdf" download class="download-btn">Download PDF</a>
<div class="carousel-container">
<div class="carousel-slides">
<div class="slide"><img src="assets/1.png" alt="Slide 1"></div>
<div class="slide"><img src="assets/2.png" alt="Slide 2"></div>
<div class="slide"><img src="assets/3.png" alt="Slide 3"></div>
<div class="slide"><img src="assets/4.png" alt="Slide 4"></div>
<div class="slide"><img src="assets/5.png" alt="Slide 5"></div>
<div class="slide"><img src="assets/6.png" alt="Slide 6"></div>
<div class="slide"><img src="assets/7.png" alt="Slide 7"></div>
<div class="slide"><img src="assets/8.png" alt="Slide 8"></div>
<div class="slide"><img src="assets/9.png" alt="Slide 9"></div>
<div class="slide"><img src="assets/10.png" alt="Slide 10"></div>
<div class="slide"><img src="assets/11.png" alt="Slide 11"></div>
<div class="slide"><img src="assets/12.png" alt="Slide 12"></div>
<div class="slide"><img src="assets/13.png" alt="Slide 13"></div>
</div>
</div>
<!-- <script>window.location.replace("https://aevis.io");</script> -->
<script>
const slidesContainer = document.querySelector('.carousel-slides');
const slides = document.querySelectorAll('.slide');
const totalSlides = slides.length;
let currentIndex = 0;
let isScrolling = false;
function updateCarousel() {
const translateY = -currentIndex * window.innerHeight;
slidesContainer.style.transform = `translateY(${translateY}px)`;
const aspectRatio = window.innerWidth / window.innerHeight;
if (aspectRatio > 1.6) {
const height = window.innerHeight;
const width1 = height * aspectRatio;
const width2 = height * 1.6;
const diff = (width1 - width2) / 2;
const logo = document.getElementById('logo');
logo.style.left = `${diff + 10}px`;
} else if (aspectRatio < 1.6) {
const width = window.innerWidth;
const height1 = width / aspectRatio;
const height2 = width / 1.6;
const diff = (height1 - height2) / 2;
const logo = document.getElementById('logo');
logo.style.top = `${diff + 10}px`;
}
}
window.addEventListener('wheel', (e) => {
if (isScrolling) return;
if (e.deltaY > 0) {
if (currentIndex < totalSlides - 1) currentIndex = currentIndex + 1;
} else {
if (currentIndex > 0) currentIndex = currentIndex - 1;
}
updateCarousel();
isScrolling = true;
setTimeout(() => {
isScrolling = false;
}, 800);
});
let touchStartY = 0;
let touchEndY = 0;
window.addEventListener('touchstart', (e) => {
touchStartY = e.touches[0].clientY;
});
window.addEventListener('touchend', (e) => {
touchEndY = e.changedTouches[0].clientY;
handleSwipe();
});
function handleSwipe() {
// Determine the distance of the swipe
const swipeDistance = touchStartY - touchEndY;
// Set a threshold to detect a valid swipe
const swipeThreshold = 50;
if (Math.abs(swipeDistance) > swipeThreshold) {
if (swipeDistance > 0) {
// Swiped up, go to next slide if available
if (currentIndex < totalSlides - 1) {
currentIndex++;
}
} else {
// Swiped down, go to previous slide if available
if (currentIndex > 0) {
currentIndex--;
}
}
updateCarousel();
}
}
window.addEventListener('resize', updateCarousel);
updateCarousel();
</script>
<script>
const APP_ID = "56da9f7c852a8dd1";
window.AevisSettings = {
app_id: APP_ID,
user_id: "anonymous",
user_hash: "54323d0f9b3f28aa6b8923f1aa0beaa8c4519271a1af5891975ac48f23f3df35",
};
</script>
<script>
!function(){var w=window,t=w.Aevis&&w.Aevis.init;if("function"==typeof t)t();else{var n=document,f=function(){var e=n.createElement("script");e.type="text/javascript",e.defer=!0,e.src="https://aevis-codenet.cruv.dev/copilot/?app_id="+APP_ID,e.onload=function(){"undefined"!=typeof Aevis&&Aevis.init()};var t=n.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)};"complete"===n.readyState?f():w.attachEvent?w.attachEvent("onload",f):w.addEventListener("load",f,!1)}}();
</script>
</body>
</html>
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Redirecting...</title>
<script>
window.location.replace("https://aevis.io");
</script>
</head>
<body>
<noscript>Please enable JavaScript to be redirected.</noscript>
</body>
</html>
-->