I used pixel units, that way I could make it pixel perfect to the Figma files. Is it better to use REM/EM or other non-absolute units? then do the math to get it to match the Figma?
Good job, I would suggest you add javascript to give it life or better learn a framework when you feel with a good base of javascript and be able to handle the requirements that they ask for faster.
I invite you to see my solution to the same challenge made with ReactJS.
Hello, good job, I recommend that you review the accessibility problems and HTML validations.
At my current level of knowledge I see that the problems come from the lack of an HTML5 markup tag that wraps your main content.
Here is an official example.
Example
<html lang="en">
<head>
<title>Hello</title>
</head>
<body>
<header>This is the header</header>
<nav>This is the nav</nav>
<main>This is the main</main>
<footer>This is the footer</footer>
</body>
</html>
I emphasize that in your case it would be the <main>card-content...</main> and regarding the HTML validations I see that you have problems with the prefixes of tailwindCSS and I recommend that you take a look at the official documentation.
Hello, congratulations for complete the challenge.
I have 1 suggestion that I think you can easily solve.
Height does not fill the entire viewport of the desktop screen when searching for a country and displaying the results. One suggestion for the icons would be to use the heroicons ones ("https://heroicons.com/") so that they look very good to what the design requires for the rest.
I would like a feedback in my solution too if you can.
("https://www.frontendmentor.io/solutions/reactjs-reactrouterdom-tailwindcss-grid-and-flexbox-7vym2dCNk")