sahilrw / portfolio

https://portfolio-sahilrw.vercel.app/
1 stars 1 forks source link

Implement button to randomly select new background shape #23

Open BjornGjorv opened 1 year ago

BjornGjorv commented 1 year ago

It would be cool to have a button where the user could get a new random background shape when clicking it. I have set up a branch named torus-action and started the implementation, but the remaining parts are missing. You must complete the implementation of the button and the shape shifting logic, as well add styling to the button. I think it could be the same as the rest of the CTA buttons for now. Alternatively, if you want, you can have the new button with out background but with an outline instead.

Mission summary, in the LandingPage.jsx component you must:

In order for the website to rerender the affected component ( the 3D model) you must use the react hook useState. Parts of it is already set up tho.

Point of attack -> LandingPage.jsx Image

BjornGjorv commented 1 year ago

secondary button type styling for inspiration (but try to make it fit the rest of the page) (hint: think about the color choices and try to make the border radius match the rest) Image