Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

NewsLetter Component Card

#tailwind-css#react
Chris-Mwiti• 100

@Chris-Mwiti

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


One of the challenges I have encountered is making the icon-succes.svg appear although it is been rendered in the DOM. Anyone with a clue on how to fix the issue ?His/her assistance will be much be appreciated.

Community feedback

Carl• 815

@CarlHumm

Posted

Hi there

The reason your SVG isn't appearing is because you're using a duplicate ID. In SVG the ID's really need to be unique.

If you look at this screenshot you can see that you have used #a to reference both your linear-gradient and main rectangle. To test this quickly you can open up dev tools and delete the main rectangle with #a and you will see your circle and gradient appear on the success page.

illustrationDesktop.jsx

<rect id="a" width={400} height={593} x={0} y={0} rx={16} />

iconSuccess.jsx

<linearGradient id="a" x1="100%" x2="0%" y1="0%" y2="100%">

Hope this helps. Good luck on your next challenge.

1

Chris-Mwiti• 100

@Chris-Mwiti

Posted

@CarlHumm Thanks for the help. Turns out changing the id of the svg solved the problem

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord