Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

Order summary card component

bem
auriga•210
@auriga2124
A solution to the Order summary component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi guys,

In this challenge, I tried to use BEM method. But hey, I am unsure of about pricing group code area. It is block or element? I think it is element...

This is my HTML code:

<div class="article-header__card">
    <header class="article-header">
      <figure class="article-header__image">
        <img src="./images/illustration-hero.svg" alt="hero-image">
      </figure>
      
      <section class="article-header__text">
        <h2 class="article-header__text-heading">Order Summary</h2>
        <p class="article-header__text-description">You can now listen to millions of songs, audiobooks, and podcasts on any 
          device anywhere you like!</p>
  
        <div class="article-header__pricing">
          <img class="article-header__pricing-icon" src="./images/icon-music.svg" alt="icon-music">
          <div class="article-header__pricing-wrapper">
            <p class="article-header__pricing-plan">Annual Plan</p>
            <span class="article-header__pricing-tag">$59.99/year</span>
          </div>
          <a class='link-btn' href="#">Change</a>
        </div>
      
        <button class="btn btn-blue">Proceed to Payment</button>
        <button class="btn btn-transparent">Cancel Order</button>
      </section>
    </header>
  </div>

Thanks for advance.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on auriga's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License