diff --git a/src/App.js b/src/App.js
index 7917ae8..1593036 100644
--- a/src/App.js
+++ b/src/App.js
@@ -15,6 +15,16 @@ export default function App() {
const { width } = useWindowSize();
// console.log(width);
+ const scrollToElement = (e, id) => {
+ e.preventDefault();
+
+ window.scroll({
+ top: document.getElementById(id).getBoundingClientRect().top,
+ left: 0,
+ behavior: 'smooth',
+ });
+ };
+
return (
{width > 1000 ? (
@@ -23,6 +33,7 @@ export default function App() {
setCurrentLanguage={setCurrentLanguage}
showCookies={showCookies}
setShowCookies={setShowCookies}
+ scrollToElement={scrollToElement}
/>
) : (
)}
diff --git a/src/assets/images/pencil.gif b/src/assets/images/pencil.gif
new file mode 100644
index 0000000..9376b67
Binary files /dev/null and b/src/assets/images/pencil.gif differ
diff --git a/src/assets/images/pencil.png b/src/assets/images/pencil.png
deleted file mode 100644
index ad9c506..0000000
Binary files a/src/assets/images/pencil.png and /dev/null differ
diff --git a/src/components/Footer.js b/src/components/Footer.js
index 70c853c..6088c83 100644
--- a/src/components/Footer.js
+++ b/src/components/Footer.js
@@ -17,13 +17,13 @@ export default function Footer() {
-
+
scrollToElement(e, 'part-one')}
+ className="animate-bounce w-12 h-12 flex justify-center items-center text-4xl text-gray-200 ri-arrow-down-fill rounded-full border hover:border-white border-transparent mb-22"
>
{' '}
diff --git a/src/components/HeaderM.js b/src/components/HeaderM.js
index 9254c30..b6c9c62 100644
--- a/src/components/HeaderM.js
+++ b/src/components/HeaderM.js
@@ -3,11 +3,14 @@ import React, { useState } from 'react';
import proximity_logo from '../assets/images/proximity_logo.svg';
import backgroundVideo from '../assets/videos/video.mp4';
+import '../styles/sidebar.css';
+
export default function HeaderD({
currentLanguage,
setCurrentLanguage,
showCookies,
setShowCookies,
+ scrollToElement,
}) {
const [showSidebar, setShowSidebar] = useState(false);
@@ -15,7 +18,11 @@ export default function HeaderD({
'text-gray-900 font-avenirbook font-normal hover:underline focus:underline text-xl w-full my-1 py-2 text-center';
const sidebar = (
-
+
About
@@ -126,14 +133,15 @@ export default function HeaderD({
{showCookies && cookies}
- {showSidebar && sidebar}
+ {sidebar}