From 94bd9aab61e5cc3552d24d754aac5f6c1462073d Mon Sep 17 00:00:00 2001 From: Bob Vandevliet Date: Mon, 7 Jul 2025 13:09:23 +0200 Subject: [PATCH] Adding dedicated contact page (WIP). --- public/contact.html | 36 ++++++++++++++++++++++++++++++++++++ public/includes/footer.html | 5 ++--- public/includes/nav.html | 2 +- public/index.html | 2 +- src/js/scripts.js | 23 ----------------------- 5 files changed, 40 insertions(+), 28 deletions(-) create mode 100644 public/contact.html diff --git a/public/contact.html b/public/contact.html new file mode 100644 index 0000000..e244165 --- /dev/null +++ b/public/contact.html @@ -0,0 +1,36 @@ + + + + + + + Vandevliet Aerial Shots + + + + + + + + + + + +
+ +
+ +
+
+

+ Stuur mij gerust een mailtje voor een vrijblijvend gesprek :) +

+
+ + +
+ + + + + \ No newline at end of file diff --git a/public/includes/footer.html b/public/includes/footer.html index f624eae..3ccd912 100644 --- a/public/includes/footer.html +++ b/public/includes/footer.html @@ -5,14 +5,13 @@
-

Contact

-

Bob Vandevliet

+

Bob Vandevliet

Gecertificeerd FPV-dronepiloot

bob@vandevliet-aerialshots.com -
Arnhem, Gelderland

+

Vandevliet Aerial Shots

KvK: 94567255
diff --git a/public/includes/nav.html b/public/includes/nav.html index 0b10f1b..d427637 100644 --- a/public/includes/nav.html +++ b/public/includes/nav.html @@ -18,7 +18,7 @@ Over mij

diff --git a/src/js/scripts.js b/src/js/scripts.js index 08bae19..245d017 100644 --- a/src/js/scripts.js +++ b/src/js/scripts.js @@ -1,24 +1,3 @@ -const highlightSectionFromHash = () => -{ - const { hash } = window.location; - - if (hash === '#contact') - { - const section = document.getElementById(hash.substring(1))?.parentElement;// .closest('section'); - - if (section) - { - setTimeout(() => - { - section.classList.add('scrollto-highlight'); - setTimeout(() => section.classList.remove('scrollto-highlight'), 1000); - }, 500); - } - } -}; - -window.addEventListener('hashchange', highlightSectionFromHash); - window.addEventListener('pageshow', () => { /** @@ -45,8 +24,6 @@ window.addEventListener('pageshow', () => refreshScrollLinkedPositioningEffect(); window.addEventListener('scroll', refreshScrollLinkedPositioningEffect); - - highlightSectionFromHash(); }); document.addEventListener('DOMContentLoaded', () =>