Open melissamcewen opened 6 years ago
If you notice design patterns you can create rules that then apply to multiple contains. Like here I created a .flex-container
.flex-container { display: flex; justify-content: center; flex-wrap: wrap; }
which I re-used on multiple design components
<!-- Mission Section --> <div id="mission" class="flex-container"> <div class="content"> <h2>Our Mission</h2> <h4>Handpicked, Artisanally Curated, Free Range, Sustainable, Small Batch, Fair Trade, Organic Tea</h4> </div> </div> <!-- Store Section --> <div id="store"> <h2>Tea of the Month</h2> <h4>What's Steeping at The Tea Cozy?</h4> <div class="flex-container items"> <div class="item"> <img src="https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-berryblitz.jpg" /> <span>Fall Berry Blitz Tea</span> </div> <div class="item"> <img src="https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-spiced-rum.jpg" /> <span>Spiced Rum Tea</span> </div> <div class="item"> <img src="https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-donut.jpg" /> <span>Seasonal Donuts</span> </div> <div class="item"> <img src="https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-donut.jpg" /> <span>Myrtle Ave Tea</span> </div> <div class="item"> <img src="https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-bedford-bizarre.jpg" /> <span>Bedford Bizarre Tea</span> </div> </div> </div> <!-- Locations Section --> <div id="locations"> <h2>Locations</h2> <div class="flex-container locations"> <div class="location"> <h3>Downtown</h3> <p>384 West 4th St</p> <p>Suite 108</p> <p>Portland, Maine</p> </div> <div class="location"> <h3>East Bayside</h3> <p>3433 Phisherman's Avenue</p> <p>(Northwest Corner)</p> <p>Portland, Maine</p> </div> <div class="location"> <h3>Oakdale</h3> <p>515 Crescent Avenue</p> <p>Second Floor</p> <p>Portland, Maine</p> </div> </div> </div> </div>
This is a bit advanced but something to think about
Thank you for the review. This last comment is very useful
If you notice design patterns you can create rules that then apply to multiple contains. Like here I created a .flex-container
which I re-used on multiple design components
This is a bit advanced but something to think about