Skip to content

Commit

Permalink
Merge pull request #99 from TypedDevs/fix-logo-tilt
Browse files Browse the repository at this point in the history
Fix hero image tilt
  • Loading branch information
Chemaclass authored Sep 17, 2023
2 parents 6aba585 + a9f0baa commit 03d3438
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ h1, h2, h3, h4, h5, h6 {
--vp-home-hero-name-color: #eceeee;
}

.VPHero .VPImage {
translate: -50% -50%;
transform: none;
}

.VPFeature .VPImage {
all: unset;
background: #2e3436;
Expand All @@ -172,8 +177,3 @@ h1, h2, h3, h4, h5, h6 {
object-fit: contain;
object-position: center;
}

.VPHero .VPImage {
translate: -50% -50%;
transform: none;
}
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ features:
---

<script setup lang="ts">
import { onMounted } from 'vue';
import VanillaTilt from 'vanilla-tilt';

window.onload = () => {
onMounted(() => {
const heroImage = document.querySelector('.VPHero .VPImage');

VanillaTilt.init(heroImage, {
'full-page-listening': true,
reverse: true
});
};
});
</script>

0 comments on commit 03d3438

Please sign in to comment.