Skip to content

Commit

Permalink
feat: updated whats new messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleySuira committed Jun 18, 2024
1 parent 0b2f267 commit 9334004
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions src/components/WhatsNewModal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<template>
<Modal v-if="open" @close="close" body-class="" type="modal-lg" isFullHeight :closeId="'wats_new_close_btn'">
<Modal
v-if="open"
@close="close"
body-class=""
type="modal-lg"
isFullHeight
:closeId="'wats_new_close_btn'"
>
<template #header>
<Logo />
</template>
Expand Down Expand Up @@ -27,16 +34,29 @@
<template #footer v-if="whatsNewModalContent.length > 1">
<div class="footer">
<div class="carousel">
<span v-for="(line, index) in carouselLines" :key="line" class="carousel-line"
:class="index + 1 == currentView ? 'active' : ''" @click="currentView = index + 1"></span>
<span
v-for="(line, index) in carouselLines"
:key="line"
class="carousel-line"
:class="index + 1 == currentView ? 'active' : ''"
@click="currentView = index + 1"
></span>
</div>
<div class="footer-buttons">
<button class="icon-wrapper" :class="currentView === whatsNewModalContent.length ? 'active' : ''"
@click="currentView -= 1" :disabled="currentView === 1">
<button
class="icon-wrapper"
:class="currentView === whatsNewModalContent.length ? 'active' : ''"
@click="currentView -= 1"
:disabled="currentView === 1"
>
<ArrowLeftIcon />
</button>
<button class="icon-wrapper" :class="currentView < whatsNewModalContent.length ? 'active' : ''"
@click="currentView += 1" :disabled="currentView === whatsNewModalContent.length">
<button
class="icon-wrapper"
:class="currentView < whatsNewModalContent.length ? 'active' : ''"
@click="currentView += 1"
:disabled="currentView === whatsNewModalContent.length"
>
<ArrowRightIcon />
</button>
</div>
Expand Down Expand Up @@ -180,7 +200,7 @@ ul {
border: 1px solid #9742fb;
svg {
>path {
> path {
fill: #fff;
}
}
Expand Down

0 comments on commit 9334004

Please sign in to comment.