Flawless work as always!
Here's the answer to your question:
Since the circle image are only for some design purpose, instead of having them as HTML elements, you could set it as the background images of the body
element.
Here how I set them and it turn out perfectly:
body {
background-color: var(--dark-cyan); /* or the code of that blue color */
/* first, set the images... */
background-image: url('./images/bg-pattern-top.svg'),
url("./images/bg-pattern-bottom.svg");
/* second, position them according to the element... */
background-position: top -50vw left -50vw,
bottom -50vw right -50vw;
/* prevent the images from repeating... */
background-repeat: no-repeat, no-repeat;
/* change the size to match the design */
background-size: 120%, 120%;
}
- And then for desktop, change the sizes only:
@media (min-width: 30em) {
body {
background-size: 70%, 70%;
background-position: top -30vw left -20vw,
bottom -40vw right -20vw;
}
}
That is definitely going to work, for more clarity you could check out my solution for this challenge too.
😁😁😁