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

Advice generator with Vanilla JS and CSS

Marija H. 110

@mh1251

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


I had a little trouble with modifying the width of the svg for the divider, so for smaller screens I replaced it with just a horizontal line. If you have any suggestions please tell me, feedback is always welcome :)

Community feedback

Ola 160

@olamide203

Posted

Hi there. You did a good job, Keep up the good work

  • about the svg, you can have a div in your html and then use the svg as its background image
div. {
        background-image: url("pattern-divider-desktop.svg");
        background-repeat: no-repeat;
        height: 16px;
        background-position: center;
        background-size: contain;
    }

I hope this was helpful

Good luck and Happy coding!

Marked as helpful

1

Marija H. 110

@mh1251

Posted

@olamide203 Thanks for the feedback and for the tip, I will try it out :))!!

0
Asha 1,210

@livinglifemeaning

Posted

In addition to the method above, I have also been using the code snippet within the HTML file to accomplish responsive images.

<picture>
          <source media="(min-width: 500px)" srcset="[bigger-image]" />
          <img src=[smaller-image] alt="" />
 </picture>
1

Marija H. 110

@mh1251

Posted

@livinglifemeaning Thank you for the comment, it's really useful and I will keep this in mind for some next challenges :))!!

0

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