- I reerred this site for calculate time from start date.
- I know useEffect can be called only top level of the function. Ref
- When I encountered this error, I went to this site.
You're importing a component that needs useEffect. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default.
https://stackoverflow.com/questions/60362442/cant-center-absolute-position-tailwind-css
sticky top-0 max-h-screen flex-none w-1/2
https://tw-elements.com/docs/standard/components/social-buttons/
- Delete node_module folder.
- Delete pnpm lock yaml file.
- Execute
npm install
. - Reload vs code window
https://stackoverflow.com/a/69230734/21951181
- Package install such as
npm install
- Build next using
next build
command. - .env setting as needed.
https://stackoverflow.com/a/56877787/21951181
-
This is a site that made me understand how to use entries defined on
IntersectionObserver
. https://betterprogramming.pub/react-useinview-hook-intersection-observer-animations-and-multiple-refs-73c68a33b5b1 -
Finally, I couldn't manage by myself even using ChatGPT, So I asked on StackOverFlow. The important and brilliant thing to referring an element in a different component file was leveraging the use of
getElementById
. https://stackoverflow.com/questions/77615526/how-to-check-components-that-is-referred-from-anchor-elements-is-in-screen-or-no/77619361#77619361 -
Official Mozilla
https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
https://flowbite.com/docs/typography/hr/
- Official github
https://github.com/pacocoursey/next-themes - SVG ref
https://web.dev/articles/building/a-theme-switch-component - Grasping theme toggle
https://javascript.plainenglish.io/how-to-implement-dark-light-themes-in-a-next-js-app-using-context-hook-tailwindcss-336558dd4579
- Add class name
scroll-smooth
on html element https://mariogiancini.com/implementing-smooth-scroll-behavior-with-tailwind-css-and-nextjs