Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-swipe-animation
Browse files Browse the repository at this point in the history
  • Loading branch information
midudev authored May 29, 2024
2 parents f00b599 + a411c04 commit 5c4f344
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
13 changes: 1 addition & 12 deletions src/components/Boxers/Gallery.astro
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ const { id, name } = Astro.props
</div>
</section>

<style>
#lightbox img.boxer-gallery-img {
view-transition-name: lightbox-image;
}
</style>

<script>
import { $ } from "@/lib/dom-selector"

Expand Down Expand Up @@ -246,12 +240,7 @@ const { id, name } = Astro.props
link.setAttribute("data-current", "true")

// update de image before show lightbox
if ($lightbox.open && document.startViewTransition) {
document.startViewTransition(() => {
updateImg(link)
})
return
} else {
if ($lightbox.open) {
updateImg(link)
}

Expand Down
6 changes: 3 additions & 3 deletions src/sections/Promotions.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Typography from "@/components/Typography.astro"
</Typography>
<div class="mt-10 flex flex-col gap-y-10">
<a
class="mx-auto w-full transition hover:scale-105 hover:contrast-125"
class="mx-auto w-full transition-[0.6s] hover:scale-105 hover:contrast-125"
href="https://www.instagram.com/ganasdevicio"
target="_blank"
rel="noopener"
Expand All @@ -22,7 +22,7 @@ import Typography from "@/components/Typography.astro"
/>
</a>
<a
class="mx-auto w-full transition hover:scale-105 hover:contrast-125"
class="mx-auto w-full transition-[0.6s] hover:scale-105 hover:contrast-125"
href="https://revolut.onelink.me/qn5U/velada"
target="_blank"
rel="noopener"
Expand All @@ -36,7 +36,7 @@ import Typography from "@/components/Typography.astro"
/>
</a>
<a
class="mx-auto w-full transition hover:scale-105 hover:contrast-125"
class="mx-auto w-full transition-[0.6s] hover:scale-105 hover:contrast-125"
href="https://bit.ly/4ap0ibz"
target="_blank"
rel="noopener"
Expand Down

0 comments on commit 5c4f344

Please sign in to comment.