File size: 16,328 Bytes
ef1ad9e |
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 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 |
<script>
import { onMount } from "svelte";
import { gsap } from "gsap/dist/gsap.js";
import { ScrollTrigger } from "gsap/dist/ScrollTrigger.js";
import { ICONS } from "$constants/imageUrls.js";
import CardSlider from "../CardSliderv2/CardSlider.svelte";
const cards = [
{
image: ICONS.CARD_IMAGE_1,
title: "Streamlining Mortgage Processing",
tag: "Ai-Assitant",
text: "Automate and enhance your lending process with MIRA’s AI,integrating seamlessly for a faster, error-free mortgage journey.",
},
{
image: ICONS.CARD_IMAGE_2,
tag: "CRM Evolution",
title: "AI-Powered Borrower Relations",
text: "MIRA’s AI CRM solutions transform lender-borrower interactions, ensuring personalized, efficient communication and service.",
},
{
image: ICONS.CARD_IMAGE_3,
title: "Tailored Loan Experiences",
tag: "Borrower-Centric AI",
text: "MIRA uses AI to analyze borrower data, delivering customized loan options and a simplified application process.",
},
{
image: ICONS.CARD_IMAGE_4,
title: "Optimizing Loan Offers",
tag: "Dynamic AI Pricing",
text: "Leverage MIRA’s AI for real-time, competitive loan pricing, tailored to market data and borrower profiles.",
},
{
image: ICONS.CARD_IMAGE_5,
title: "Empowering Loan Officers",
tag: "Insightful AI",
text: "Equip loan officers with MIRA’s AI insights for smarter decisions and superior loan options that win borrower trust.",
},
];
let isSmallScreen = false; // Default assumption for SSR
onMount(() => {
// Ensure that GSAP and ScrollTrigger are loaded
gsap.registerPlugin(ScrollTrigger);
isSmallScreen = window.innerWidth <= 600;
const container = document.querySelector(".container212");
const sections = gsap.utils.toArray(".container212 section");
const texts = gsap.utils.toArray(".anim212");
const mask = document.querySelector(".mask212");
let scrollTween = gsap.to(sections, {
xPercent: -8.5 * (sections.length - 1),
ease: "none",
scrollTrigger: {
trigger: ".container212",
pin: true,
scrub: 1,
start: "top 50px", // Adjusted start position
end: "+=2000",
markers: false, // Set markers to100vw false to remove the markers
},
});
// Progress bar animation
gsap.to(mask, {
width: "100%",
scrollTrigger: {
trigger: ".wrapper212",
start: "top 100px",
scrub: 1,
},
});
// Whizz around the sections
sections.forEach((section) => {
// Grab the scoped text
let text = section.querySelectorAll(".anim212");
// Bump out if there's no items to animate
if (text.length === 0) return;
// Do a little stagger
gsap.from(text, {
y: -130,
opacity: 0,
duration: 2,
ease: "elastic",
stagger: 0.1,
scrollTrigger: {
trigger: section,
containerAnimation: scrollTween,
start: "left center",
markers: false, // Set markers to false to remove the markers
},
});
});
});
</script>
{#if isSmallScreen}
<CardSlider {cards} />
{:else}
<div class="wrapper">
<div class="container212 scrollx">
<section
style="padding: 50px 50px; height: 665px; display: flex; gap: 50px "
class="sec1 pin"
>
<section
style="padding: 50px 50px; height: 600px "
class="containerugh"
>
<div
style="
position: absolute;
border-radius: 999px;
height: 579px;
width: 539px;
left: 0%;
top: -10%;
background-image: radial-gradient(
circle at center,
#e9ceff,
#dbe8ee00 80%
);
opacity: 0.3;
z-index: -100;
"
></div>
<div class="image-sectionugh">
<img
loading="lazy"
src={ICONS.CARD_IMAGE_1}
alt="Descriptive alt text here"
class="main-imageugh"
/>
</div>
<div class="highlightugh">AI Precision</div>
<h2 class="headlineugh">Streamlining Mortgage Processing</h2>
<p class="descriptionugh" style="margin: 0">
Automate and enhance your lending process with MIRA’s AI,
integrating seamlessly for a faster, error-free mortgage journey.
</p>
</section>
<section style="padding: 50px 50px; height: 600px" class="containerugh">
<div
style="
position: absolute;
border-radius: 999px;
height: 579px;
width: 539px;
left: 0%;
top: -10%;
background-image: radial-gradient(
circle at center,
#5e7dff,
#dbe8ee00 70%
);
opacity: 0.2;
z-index: -100;
"
></div>
<div class="image-sectionugh">
<img
loading="lazy"
src={ICONS.CARD_IMAGE_2}
alt="Descriptive alt text here"
class="main-imageugh2"
/>
</div>
<div class="highlightughb">CRM Evolution</div>
<h2 class="headlineugh">AI-Powered Borrower Relations</h2>
<p class="descriptionugh" style="margin: 0">
MIRA’s AI CRM solutions transform lender-borrower interactions,
ensuring personalized, efficient communication and service.
</p>
</section>
<section style="padding: 50px 50px; height: 600px" class="containerugh">
<div
style="
position: absolute;
border-radius: 999px;
height: 579px;
width: 539px;
left: 0%;
top: -10%;
background-image: radial-gradient(
circle at center,
#6E5AFF,
#dbe8ee00 70%
);
opacity: 0.2;
z-index: -100;
"
></div>
<div class="image-sectionugh">
<img
loading="lazy"
src={ICONS.CARD_IMAGE_3}
alt="Descriptive alt text here"
class="main-imageugh2"
/>
</div>
<div class="highlightughbpzz">Borrower-Centric AI</div>
<h2 class="headlineugh">Tailored Loan Experiences</h2>
<p class="descriptionugh" style="margin: 0">
MIRA uses AI to analyze borrower data, delivering customized loan
options and a simplified application process.
</p>
</section>
<section style="padding: 50px 50px; height: 600px" class="containerugh">
<div
style="
position: absolute;
border-radius: 999px;
height: 579px;
width: 539px;
left: 0%;
top: -10%;
background-image: radial-gradient(
circle at center,
#5e7dff,
#dbe8ee00 70%
);
opacity: 0.2;
z-index: -100;
"
></div>
<div class="image-sectionugh">
<img
loading="lazy"
src={ICONS.CARD_IMAGE_4}
alt="Descriptive alt text here"
class="main-imageugh2"
/>
</div>
<div class="highlightughbjj">Dynamic AI Pricing</div>
<h2 class="headlineugh">Optimizing Loan Offers</h2>
<p class="descriptionugh" style="margin: 0">
Leverage MIRA’s AI for real-time, competitive loan pricing, tailored
to market data and borrower profiles.
</p>
</section>
<section style="padding: 50px 50px; height: 600px" class="containerugh">
<div
style="
position: absolute;
border-radius: 999px;
height: 579px;
width: 479px;
left: 0%;
top: -10%;
background-image: radial-gradient(
circle at center,
#e9ceff,
#dbe8ee00 70%
);
opacity: 0.5;
z-index: -100;
"
></div>
<div class="image-sectionugh">
<img
loading="lazy"
src={ICONS.CARD_IMAGE_5}
alt="Descriptive alt text here"
class="main-imageugh2"
/>
</div>
<div class="highlightugh">Insightful AI</div>
<h2 class="headlineugh">Empowering Loan Officers</h2>
<p class="descriptionugh" style="margin: 0">
Equip loan officers with MIRA’s AI insights for smarter decisions
and superior loan options that win borrower trust.
</p>
</section>
</section>
</div>
</div>
{/if}
<style>
@media (max-width: 600px) {
.wrapper {
display: none !important;
}
}
:global(body) {
overflow: -moz-scrollbars-horizontal;
/* overflow-y: hidden; */
overflow-x: hidden;
width: 100vw;
}
:root::-webkit-scrollbar {
display: none;
}
:root {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
html {
width: 100vw;
}
.wrapper {
position: relative;
}
* {
box-sizing: border-box;
}
.container212 > span {
overflow: hidden; /* Hide both scrollbars */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}
.container212 > span::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
svg {
position: absolute;
top: 12em;
left: 10vw;
width: 50vw;
}
svg .mask212 {
width: 0;
}
.container212 {
display: flex;
width: 100vw;
overflow-y: hidden;
scrollbar-width: none !important;
/* margin-top: 150px; */
}
.container212 .col {
display: flex;
gap: 3em;
}
.container212 .col p {
font-size: 0.8rem;
}
.container212 section {
width: fit-content;
padding: 20vw 10vw;
}
.container212 section h1 {
font-size: 3rem;
margin: 0;
}
.container212 section p {
font-size: 1.2rem;
}
.container212 section ul {
list-style-type: none;
display: flex;
gap: 3em;
width: 100%;
height: 300px;
padding: 0;
}
.container212 section ul li {
background: white;
border-radius: 0.3em;
flex-grow: 1;
}
/* */
.containerugh {
border-radius: 15px;
box-shadow:
30px 42px 14px 0px rgba(128, 128, 128, 0),
19px 27px 13px 0px rgba(128, 128, 128, 0.01),
11px 15px 11px 0px rgba(128, 128, 128, 0.05),
5px 7px 8px 0px rgba(128, 128, 128, 0.09),
1px 2px 5px 0px rgba(128, 128, 128, 0.1);
border: 2px solid rgba(209, 220, 229, 0.83);
background-color: #fff;
display: flex;
max-width: 580px;
flex-direction: column;
padding: 75px 62px;
}
@media (max-width: 991px) {
.containerugh {
padding: 0 20px;
}
.containerugh {
max-width: 380px;
}
.headlineugh {
font-size: 22px !important;
}
.descriptionugh {
font-size: 18px !important;
}
}
.image-sectionugh {
align-self: center;
display: flex;
margin-top: 30px;
width: 382px;
max-width: 100%;
align-items: center;
justify-content: center;
}
.main-imageugh {
object-fit: auto;
object-position: center;
width: 90%;
box-shadow:
0px 170px 48px 0px rgba(0, 0, 0, 0),
0px 109px 43px 0px rgba(0, 0, 0, 0.01),
0px 61px 37px 0px rgba(0, 0, 0, 0.05),
0px 27px 27px 0px rgba(0, 0, 0, 0.09),
0px 7px 15px 0px rgba(0, 0, 0, 0.1);
align-self: start;
}
.main-imageugh2 {
object-fit: auto;
object-position: center;
width: 90%;
align-self: start;
}
.bar-chartugh {
border-radius: 14px;
background-color: #f8fafe;
align-self: end;
display: flex;
margin-top: 60px;
align-items: end;
gap: 19px;
width: 173px;
height: 173px;
padding: 29px 27px;
}
@media (max-width: 991px) {
.bar-chartugh {
margin-top: 40px;
padding: 0 20px;
}
}
.barugh {
border-radius: 11px;
background-color: #eeeff4;
}
.bar-1ugh {
margin-top: 51px;
width: 15px;
height: 67px;
}
@media (max-width: 991px) {
.bar-1ugh {
margin-top: 40px;
}
}
.bar-2ugh {
margin-top: 75px;
width: 15px;
height: 43px;
}
@media (max-width: 991px) {
.bar-2ugh {
margin-top: 40px;
}
}
.bar-3ugh {
background-color: #7d9ce6;
align-self: start;
width: 15px;
height: 118px;
}
.bar-4ugh {
margin-top: 32px;
width: 15px;
height: 86px;
}
.highlightugh {
border-radius: 13px;
background-color: #f7effe;
align-self: start;
margin-top: 40px;
justify-content: center;
color: #ad50f6;
padding: 6px 19px;
font:
700 12px Satoshi,
sans-serif;
}
.highlightughb {
border-radius: 13px;
background-color: #f1f3ff;
align-self: start;
margin-top: 40px;
color: #365dff;
justify-content: center;
padding: 6px 19px;
font:
700 12px Satoshi,
sans-serif;
}
.highlightughb {
border-radius: 13px;
background-color: #f1f3ff;
align-self: start;
margin-top: 10px;
color: #365dff;
justify-content: center;
padding: 6px 19px;
font:
700 12px Satoshi,
sans-serif;
}
.highlightughbjj {
border-radius: 13px;
background-color: #f1f3ff;
align-self: start;
margin-top: 50px;
color: #365dff;
justify-content: center;
padding: 6px 19px;
font:
700 12px Satoshi,
sans-serif;
}
.highlightughbp {
border-radius: 13px;
background-color: #f1f3ff;
align-self: start;
margin-top: 40px;
color: #6e5aff;
justify-content: center;
padding: 6px 19px;
font:
700 12px Satoshi,
sans-serif;
}
.highlightughbpzz {
border-radius: 13px;
background-color: #f1f3ff;
align-self: start;
margin-top: 55px;
color: #6e5aff;
justify-content: center;
padding: 6px 19px;
font:
700 12px Satoshi,
sans-serif;
}
.highlightughb2 {
border-radius: 13px;
background-color: #f1f3ff;
align-self: start;
margin-top: 10px;
color: #6e5aff;
justify-content: center;
padding: 6px 19px;
font:
700 12px Satoshi,
sans-serif;
}
.highlightughc {
border-radius: 13px;
background-color: #f1f3ff;
align-self: start;
margin-top: 87px;
color: #365dff;
justify-content: center;
padding: 6px 19px;
font:
700 12px Satoshi,
sans-serif;
}
@media (max-width: 991px) {
.highlightugh {
margin-top: 40px;
}
}
.headlineugh {
color: var(--Navbar-primary, #333);
margin: 0;
margin-top: 20px;
font:
700 23px Satoshi,
sans-serif;
}
@media (max-width: 991px) {
.headlineugh {
max-width: 100%;
}
}
.descriptionugh {
color: var(--Navbar-primary, #333);
margin-top: 22px;
font:
400 20px/35px Satoshi,
sans-serif;
}
@media (max-width: 991px) {
.descriptionugh {
max-width: 100%;
}
}
</style>
|