Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAurelian Spodarec
10,801 PointsHow would you do this?
HI,
How would you refactor this code with BEM and SMACSS?
<!-- MY OFFERS
================================================== -->
<section class="l-section l-section--special" id="services-section">
<h2 class="highlighted header-alternative text-center">
<span>MOJA OFERTA</span>
</h2>
<div class="l-grid-fluid">
<div class="col-np xs-1 small-1 medium-1 large-3-5">
<div class="m-offer--primary">
<div class="m-offer--equal-height">
<a href="" class="overlay-link"></a>
<i class="fa fa-desktop" aria-hidden="true"></i>
<h2 class="header-special">Front-end development</h2>
<div class="m-offer__content">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut
</div>
<p>
<a href="">Find out more</a>
</p>
</div>
</div><!-- /m-offer-primary -->
</div><!-- /col -->
<div class="col-np xs-1 small-1 medium-1 large-2-5">
<div class="m-offer--secondary">
<div class="m-offer--equal-height">
<div class="l-grid-fluid">
<div class="col-np all-1">
<div class="wrap">
<a href="" class="overlay-link"></a>
<i class="fa fa-desktop" aria-hidden="true"></i>
<h2 class="header-special">Front-end development</h2>
<div class="m-offer__content">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut
</div>
<p>
<a href="">Find out more</a>
</p>
</div>
</div><!-- /col -->
<div class="col-np all-1">
<div class="wrap">
<a href="" class="overlay-link"></a>
<i class="fa fa-desktop" aria-hidden="true"></i>
<h2 class="header-special">Front-end development</h2>
<div class="m-offer__content">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut
</div>
<p>
<a href="">Find out more</a>
</p>
</div>
</div><!-- /col -->
</div><!-- /l-grid -->
</div>
</div><!-- m-offer-secondary -->
</div><!-- /col -->
</div><!-- /l-grid-fluid -->
</section>
This is Home page, and would the styels go in folder-> pages->home->home.scss ?
Aurelian Spodarec
10,801 PointsI put that in modules, in page-headers, as I'm going to have this on other pages, but they will be the same, apart form thsi one.
Aurelian Spodarec
10,801 PointsAurelian Spodarec
10,801 PointsAdn that's how it looks https://aurelianspodarec.github.io/hcOriginalAurePortfolio/
And this is github https://github.com/AurelianSpodarec/hcOriginalAurePortfolio/tree/gh-pages