diff --git a/index.html b/index.html
index 136d709..5ea3825 100644
--- a/index.html
+++ b/index.html
@@ -3,6 +3,7 @@
+
blog
diff --git a/src/assets/background/blackwhite.jpg b/src/assets/background/blackwhite.jpg
new file mode 100644
index 0000000..92d0877
Binary files /dev/null and b/src/assets/background/blackwhite.jpg differ
diff --git a/src/assets/background/marmor.jpg b/src/assets/background/marmor.jpg
new file mode 100644
index 0000000..03a4bea
Binary files /dev/null and b/src/assets/background/marmor.jpg differ
diff --git a/src/assets/background/paper.png b/src/assets/background/paper.png
new file mode 100644
index 0000000..00410e8
Binary files /dev/null and b/src/assets/background/paper.png differ
diff --git a/src/assets/background/wall.jpg b/src/assets/background/wall.jpg
new file mode 100644
index 0000000..8786d88
Binary files /dev/null and b/src/assets/background/wall.jpg differ
diff --git a/src/components/sections/HeroSection.vue b/src/components/sections/HeroSection.vue
index b4f99b8..4e08aa3 100644
--- a/src/components/sections/HeroSection.vue
+++ b/src/components/sections/HeroSection.vue
@@ -1,66 +1,101 @@
-
-
+
+
- Welcome
- Tom Herpel
+
+
Welcome
+
to my website
+
+
+
\ No newline at end of file
diff --git a/src/components/sections/TextSection.vue b/src/components/sections/TextSection.vue
index 87de6df..687291e 100644
--- a/src/components/sections/TextSection.vue
+++ b/src/components/sections/TextSection.vue
@@ -1,40 +1,5 @@
diff --git a/src/composables/useScrollAnimations.ts b/src/composables/useScrollAnimations.ts
index e998126..d61feab 100644
--- a/src/composables/useScrollAnimations.ts
+++ b/src/composables/useScrollAnimations.ts
@@ -23,11 +23,20 @@ export function useActiveSection(sectionIds: string[]) {
end: 'bottom center',
onEnter: () => {
if (currentSection.value !== id) {
- //uiStore.currentSection = id
- console.log(`Section aktiv: ${id} (nach unten gescrollt)`)
+ currentSection.value = id
+
+ console.log(`Section aktiv: ${id} (nach unten gescrollt)`);
+ window.dispatchEvent(new CustomEvent('section:enter', {detail: id}))
}
},
- onEnterBack: () => (currentSection.value = id),
+ onEnterBack: () => {
+ if (currentSection.value !== id) {
+ currentSection.value = id
+ window.dispatchEvent(new CustomEvent('section:enter', {detail : id}))
+
+ }
+ },
+
})
})
})
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index 1695924..75c0785 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -5,6 +5,9 @@ import TextSection from '../components/sections/TextSection.vue'
import { useActiveSection } from '../composables/useScrollAnimations'
const { currentSection } = useActiveSection(['hero', 'image', 'text'])
+
+
+
@@ -15,4 +18,11 @@ const { currentSection } = useActiveSection(['hero', 'image', 'text'])
Aktuelle Section: {{ currentSection }}
-
\ No newline at end of file
+
+
+
+
+
+
\ No newline at end of file