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

Notifications Page Main - SASS

#sass/scss
Fatโ€ข 850

@Fahatmah

Desktop design screenshot for the Notifications page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


I find challenging in aligning the after element on p tag of active item when it is in a mobile view or size. Still now, can't think of any solution(โยดโ—ก`โ)

Community feedback

Catalin Baniciโ€ข 260

@CatalinBanici

Posted

For the little orange dot, I basically added a <span> element in the <p> tag containing the other tags, and after the other tags inside that <span> I put a <i> tag with the font awesome icon fa-solid fa-circle, and dynamically that <span> element getting removed as onclick event. I did not use :after pseudo.

scroll to the right

 <li class="notification new-notification">
        <div>
          <a href="#"><img class="avatar" src="./assets/images/avatar-mark-webber.webp" alt="User Avatar"></a>
        </div>
        <div class="text-div">
          <p><a class="name" href="#">Mark Webber</a> reacted to your recent post <span class="link"><a href="#">My first tournament today!</a></span><span class="new-icon"><i class="fa-solid fa-circle"></i></span></p>
          <p>1m ago</p>
        </div>
      </li>

You can try replacing the :after with <i class='fa solid fa solid></i> and make it orange, I hope it helps

Marked as helpful

0

Fatโ€ข 850

@Fahatmah

Posted

@CatalinBanici Really appreciate your idea! ๐Ÿ˜Š

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