- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- mobile-first workflow
Use of classes to separate the content and recycle them when it's necessary, making the structure cleaner and readeable.This approach not only improves code maintainability but also allows for easier updates and scalability.
<div class="recipe-preparation-time">
<h3>Preparation time</h3>
<ul class="preparation-time-list">
<li><span class="span-bold">Total:</span> Approximately 10 minutes</li>
<li><span class="span-bold">Preparation:</span> 5 minutes</li>
<li><span class="span-bold">Cooking:</span>: 5 minutes</li>
</ul>
</div>
<div class="nutrition-table">
<p>Carbs</p>
<span class="grams-table">0g</span>
</div>
<div class="nutrition-table">
<p>Protein</p>
<span class="grams-table">20g</span>
</div>
Using media queries to fit the content depending on the user's device ensures that the layout is responsive and looks good on all screen sizes. This is crucial for improving user experience on different devices.
@media (min-width: 500px) {
section{
margin: 8px 30px 8px 30px;
}
body{
padding: 50px;
}
}
For future development, I plan to focus on enhancing my skills in CSS animations to create more interactive and engaging user interfaces. Additionally, I want to delve deeper into JavaScript to add more dynamic functionalities to my web projects.
Another area for improvement is optimizing the website for better performance by minimizing CSS and JavaScript files, and ensuring images are properly compressed without losing quality.