slim landing page

This commit is contained in:
T-A-H-prog
2026-08-12 19:49:45 +02:00
parent eef972c8d5
commit 02fcc75790
14 changed files with 1181 additions and 176 deletions

35
src/views/HomeSlime.vue Normal file
View File

@@ -0,0 +1,35 @@
<script setup lang="ts">
import Main from "../components/slim/Main.vue";
import AboutMe from "../components/slim/AboutMe.vue";
import { onMounted, nextTick } from "vue";
import gsap from "gsap";
import ScrollTrigger from "gsap/ScrollTrigger";
import ScrollSmoother from "gsap/ScrollSmoother";
gsap.registerPlugin(ScrollTrigger, ScrollSmoother);
onMounted(async () => {
await nextTick();
ScrollSmoother.create({
wrapper: "#smooth-wrapper",
content: "#smooth-content",
smooth: 0.2,
effects: true,
});
ScrollTrigger.refresh();
});
</script>
<template>
<div id="smooth-wrapper">
<div id="smooth-content">
<Main id="welcome" />
<AboutMe id="me" />
</div>
</div>
</template>
<style lang="css" scoped></style>