I am currently constructing a React page to display prices. To achieve this, I have created a Card element where all the data will be placed and reused.
Here is how it appears at the moment:
https://i.stack.imgur.com/iOroS.png
Please disregard the red background, as it's just for visualizing UI placement.
The desired outcome looks like this:
https://i.stack.imgur.com/BuhVI.png
To accomplish this, I have introduced a class called PriceCard
which looks like this:
[your modified code here]
And the corresponding CSS is:
[your modified code here]
After setting up the PriceCard logic, I have included it in my page as follows:
[your modified code here]
As for the CSS styling:
[your modified code here]
I am currently exploring ways to create a fixed space between each card, ensure they are centered on the screen, and provide a smooth or linear transition when hovering over a tile.
The mechanism for transforming the style of the tile upon hover already works; however, I am facing challenges with the overall placement.
If you have any suggestions on achieving the design layout and transitioning smoothly between default and hover states, it would be greatly appreciated!