Overall, the code is well-written and follows the basic principles of web development. There is a slight difference in design in the desktop version with the dropdown window, specifically regarding the arrow. Here is my implementation example:
<div class="share-button">
<div id="socialIcons" class="social-icons">
<p>Share</p>
<a href="#" target="_blank"><img src="images/icon-facebook.svg" alt="Facebook"</a>
<a href="#" target="_blank"><img src="images/icon-twitter.svg" alt="Twitter"></a>
<a href="#" target="_blank"><img src="images/icon-pinterest.svg" alt="Pinterest"></a>
</div>
<button id="shareArrow">
<img class="icon-share" src="images/icon-share.svg" alt="">
</button>
</div>
.social-icons {
display: none;
position: absolute;
top: -12rem;
right: -4.5rem;
transform: translateY(-50%);
background-color: hsl(217, 19%, 35%);
padding: 1.5rem;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 1rem;
}
.social-icons::before {
content: "";
position: absolute;
top: 98%;
left: 57%;
transform: translateX(-50%);
border-width: 1rem 1rem 0 1rem; /* Triangle dimensions */
border-style: solid;
border-color: hsl(217, 19%, 35%) transparent transparent transparent;
}