Skip to content

Commit 167e47a

Browse files
committed
Fix readability on desktop
1 parent 6fa942f commit 167e47a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/HeroImage.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
function reveal(event: any) {
33
;(event.target as HTMLElement).classList.toggle('opacity-0')
4+
;(event.target as HTMLElement).classList.add('opacity-80')
45
}
56
</script>
67

@@ -24,7 +25,7 @@ function reveal(event: any) {
2425
<source srcset="/cosmos-h.69935d14.avif" type="image/avif" />
2526
<source srcset="/cosmos-h.69935d14.webp" type="image/webp" />
2627
<img
27-
class="h-full max-h-full w-full object-cover opacity-0"
28+
class="h-full max-h-full w-full object-cover opacity-0 transition"
2829
src="/cosmos-h.69935d14.jpg"
2930
loading="lazy"
3031
decoding="async"

src/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import SlugblasterText from '~/components/SlugblasterText.vue'
1717
</div>
1818
</div>
1919

20-
<div class="fixed -top-[6vw] w-full">
20+
<div class="fixed -top-[6vw] w-full md:-top-[13vw]">
2121
<slugblaster-text />
2222
</div>
2323
<div

0 commit comments

Comments
 (0)