From 046b6aad7c86f4151da277a2f68f991575038017 Mon Sep 17 00:00:00 2001 From: tony Date: Thu, 20 Apr 2023 11:18:26 -0700 Subject: [PATCH] added id url to about page --- Components/Layout/ContactFormSection.jsx | 2 +- Components/Layout/section.jsx | 8 ++++++-- package-lock.json | 19 +++++++++++++++++++ package.json | 1 + pages/about.js | 22 ++++++++++++---------- tailwind.config.js | 2 ++ 6 files changed, 41 insertions(+), 13 deletions(-) diff --git a/Components/Layout/ContactFormSection.jsx b/Components/Layout/ContactFormSection.jsx index 74b9674..51f8654 100644 --- a/Components/Layout/ContactFormSection.jsx +++ b/Components/Layout/ContactFormSection.jsx @@ -7,7 +7,7 @@ const ContactFormSection = ({ }) => { return ( <> -
+
diff --git a/Components/Layout/section.jsx b/Components/Layout/section.jsx index ed9e3c9..70b2255 100644 --- a/Components/Layout/section.jsx +++ b/Components/Layout/section.jsx @@ -60,8 +60,12 @@ const Section = ({
- - {buttonTwoText} + + {buttonTwoText}
diff --git a/package-lock.json b/package-lock.json index 8533439..8041159 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,7 @@ "react-intersection-observer": "^9.4.3", "react-modal-video": "^2.0.0", "react-player": "^2.12.0", + "react-scroll": "^1.8.9", "tailwindcss": "3.3.1", "three": "^0.151.3" } @@ -6469,6 +6470,11 @@ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" }, + "node_modules/lodash.throttle": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", + "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" + }, "node_modules/lodash.zip": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.zip/-/lodash.zip-4.2.0.tgz", @@ -9062,6 +9068,19 @@ "react": ">=16.6.0" } }, + "node_modules/react-scroll": { + "version": "1.8.9", + "resolved": "https://registry.npmjs.org/react-scroll/-/react-scroll-1.8.9.tgz", + "integrity": "sha512-9m7ztraiX/l6L7erzYAD3fhnveNckei6/NkWfqwN2e0FRdoE2W6Pk4oi2Nah7mWpPCPAeIgegfaqZACTimPOwg==", + "dependencies": { + "lodash.throttle": "^4.1.1", + "prop-types": "^15.7.2" + }, + "peerDependencies": { + "react": "^15.5.4 || ^16.0.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^15.5.4 || ^16.0.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/react-transition-group": { "version": "4.4.5", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", diff --git a/package.json b/package.json index 45eab89..a85876b 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "react-intersection-observer": "^9.4.3", "react-modal-video": "^2.0.0", "react-player": "^2.12.0", + "react-scroll": "^1.8.9", "tailwindcss": "3.3.1", "three": "^0.151.3" } diff --git a/pages/about.js b/pages/about.js index b5a1659..faee22a 100644 --- a/pages/about.js +++ b/pages/about.js @@ -1,20 +1,22 @@ import React from "react"; import Navbar from "../Components/Layout/navbar.jsx"; import Section from "../Components/Layout/section.jsx"; -import SubSection from "../Components/Layout/sub-section.jsx"; import ContactFormSection from "@/Components/Layout/ContactFormSection.jsx"; export default function Home() { return ( <> -
+ +
+
); diff --git a/tailwind.config.js b/tailwind.config.js index 9bf7dca..34074a1 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -57,6 +57,8 @@ module.exports = { "text-5xl", "mx-4", "px-2", + "overflow-auto", + "overflow-hidden" ], theme: {