Skip to content

Commit

Permalink
Merge pull request #39 from eksqtr/development
Browse files Browse the repository at this point in the history
Fixes on apostrophe unescape again error in pipleine build
  • Loading branch information
eksqtr authored Aug 25, 2024
2 parents 5979bbd + 95d6261 commit 4d744b2
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import { useState, useEffect, useRef, RefObject} from 'react';
import { useState, useEffect, useRef} from 'react';

// Import the Components Navigation Bar
import NavigationBar from "@/app/components/navigation/navbar";
Expand Down Expand Up @@ -33,21 +33,24 @@ export default function Home() {
{ rootMargin: "-50px", threshold: 0.2 }
);

if (aboutSectionRef.current) {
observer.observe(aboutSectionRef?.current);
}
if (techSectionRef.current) {
observer.observe(techSectionRef?.current);
}

return () => {
if (aboutSectionRef.current) {
observer.observe(aboutSectionRef?.current);
}
if (techSectionRef.current) {
observer.unobserve(techSectionRef?.current);
}
};
const aboutSection = aboutSectionRef.current;
const techSection = techSectionRef.current;

if (aboutSection) {
observer.observe(aboutSection);
}
if (techSection) {
observer.observe(techSection);
}

return () => {
if (aboutSection) {
observer.unobserve(aboutSection);
}
if (techSection) {
observer.unobserve(techSection);
}
};
}, []);
return (
<div className={isDarkMode ? "dark" : ""}>
Expand All @@ -64,7 +67,7 @@ export default function Home() {
<TechSection sectionRef={techSectionRef} />

<div className="fixed bottom-0 left-0 right-0 bg-gray-500 dark:bg-gray-800 text-white text-center py-2">
I'm building my personal website right now. Thanks for visiting and check back soon!
I&apos;m building my personal website right now. Thanks for visiting and check back soon!
</div>
</main>
</div>
Expand Down

0 comments on commit 4d744b2

Please sign in to comment.