Latest solutions
Responsive Rest Countries with NextJS 14 server side rendering, shadcn
#accessibility#next#typescript#tailwind-cssSubmitted about 1 year agoCrowdfunding product page using TypeScript, NextJS, TailwindCSS
#accessibility#next#react#typescript#tailwind-cssSubmitted over 1 year agoResponsive four card feature section [NextJS, TypeScript, TailwindCSS]
#next#react#typescript#tailwind-cssSubmitted over 1 year ago
Latest comments
- @Jake-Oz@kennylun123
It is a very good use case of using NextJS server side component. I took a reference from your fetching too.
One question for me, how do you manage to scroll to top when every time we go into detail page? Did you do something to keep this behaviour?
- @Mazz100What are you most proud of, and what would you do differently next time?
I achieved the render of
DropDownMenu
andDialog
using ReactPortal
and referenced states withuseContext
hook.I could not implement full interaction of dialog and dropdown I think in future projects I will consider using 3rd-party to assist in creating a proper dialog with correct accessibility.
What challenges did you encounter, and how did you overcome them?useContext
was really useful for minimizing prop pass drilling but depending on a bigger project scope I could use 3rd-party plugin to store and manage states.The biggest challenge I kept facing was to properly pass the correct array value of cards and when to and not to recreate a new
.map
copy of it.I learned how to work with map in states and compare the original cards object with a copy and check for the intended conditionals.
@kennylun123Good work! Keep going :)
- @FridaWaldt@kennylun123
Hi Frida,
I hope you're doing well! I wanted to take a moment to congratulate you on completing the coding challenge. Great job! 😊
I also wanted to provide some feedback on your code:
Imagine that each of your
category-card
is a reusable component. Inside of it you just need one div forcategory-card-stats
. And you could set background image tocategory-card
(parent container). You could either set the background using in-line style or assign anid
to each component and use CSS selector as you did. After that you can finish thecategory-card-stats
.Keep up the great work! I'm looking forward to seeing what you'll create next.
Best regards,
Kenny
Marked as helpful - @kennylun123@kennylun123
Hi everyone, I've added page transition effects to have a smoother experience. By using a React animation library called
framer-motion
. I hope you enjoy it!*If you are using NextJS 13 like mine, please note that this library is compatible on client component only.
- @FrontendBy-GJ@kennylun123
Hi Garcia, do you prefer Vite or CRA? I've seen the original docs for CRA has been replaced by NextJS / Remix etc. I'm considering what should I start with on next challenge.
https://react.dev/learn/start-a-new-react-project
- @antben59@kennylun123
Congratulation on completing the challenge! It's always good to finish the mobile version first then work on the desktop or tablet version using media query. Also I saw that two of the flex item are reversed in between 500px ~ 700px width.
@media screen and (max-width: 700px) and (min-width: 500px) .newsletter-container { flex-direction: column; // Delete this should work. ** justify-content: center; }