finished
This commit is contained in:
parent
5fbacbf8ae
commit
729f8d6d8b
@ -5,73 +5,124 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
|
||||
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
|
||||
<title>Frontend Mentor | Recipe page</title>
|
||||
|
||||
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
|
||||
<style>
|
||||
.attribution { font-size: 11px; text-align: center; }
|
||||
.attribution a { color: hsl(228, 45%, 44%); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Simple Omelette Recipe
|
||||
<header class="header">
|
||||
<img src="images/image-omelette.jpeg" alt="an omeletter on curved edge plate" class="header-img">
|
||||
</header>
|
||||
|
||||
An easy and quick dish, perfect for any meal. This classic omelette combines beaten eggs cooked
|
||||
to perfection, optionally filled with your choice of cheese, vegetables, or meats.
|
||||
<main class="main">
|
||||
<section class="main-intro">
|
||||
<h1 class="main-hdg-1">Simple Omelette Recipe</h1>
|
||||
<p>
|
||||
An easy and quick dish, perfect for any meal. This classic omelette combines
|
||||
beaten eggs cooked to perfection, optionally filled with your choice of
|
||||
cheese, vegetables, or meats.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
Preparation time
|
||||
<section class="main-prep">
|
||||
<h3 class="main-hdg-3">Preparation time</h2>
|
||||
|
||||
Total: Approximately 10 minutes
|
||||
Preparation: 5 minutes
|
||||
Cooking: 5 minutes
|
||||
<ul>
|
||||
<li><h4>Total</h4>: Approximately 10 minutes</li>
|
||||
<li><h4>Preparation</h4>: 5 minutes</li>
|
||||
<li><h4>Cooking</h4>: 5 minutes</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="main-ingredients">
|
||||
<h2 class="main-hdg-2">Ingredients</h2>
|
||||
|
||||
Ingredients
|
||||
<ul>
|
||||
<li>2-3 large eggs</li>
|
||||
<li>Salt, to taste</li>
|
||||
<li>Pepper, to taste</li>
|
||||
<li>1 tablespoon of butter or oil</li>
|
||||
<li>Optional fillings: cheese, diced vegetables, cooked meats, herbs</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
2-3 large eggs
|
||||
Salt, to taste
|
||||
Pepper, to taste
|
||||
1 tablespoon of butter or oil
|
||||
Optional fillings: cheese, diced vegetables, cooked meats, herbs
|
||||
<section class="main-instructions">
|
||||
<h2 class="main-hdg-2">Instructions</h2>
|
||||
|
||||
Instructions
|
||||
<ol>
|
||||
<li>
|
||||
<h4>Beat the eggs</h4>: In a bowl, beat the eggs with a pinch of salt and pepper
|
||||
until they are well mixed. You can add a tablespoon of water or milk for
|
||||
a fluffier texture.
|
||||
</li>
|
||||
|
||||
Beat the eggs: In a bowl, beat the eggs with a pinch of salt and pepper until they are well mixed.
|
||||
You can add a tablespoon of water or milk for a fluffier texture.
|
||||
<li>
|
||||
<h4>Heat the pan</h4>: Place a non-stick frying pan over medium heat and add
|
||||
butter or oil.
|
||||
</li>
|
||||
|
||||
Heat the pan: Place a non-stick frying pan over medium heat and add butter or oil.
|
||||
<li>
|
||||
<h4>Cook the omelette</h4>: Once the butter is melted and bubbling, pour in the
|
||||
eggs. Tilt the pan to ensure the eggs evenly coat the surface.
|
||||
</li>
|
||||
|
||||
Cook the omelette: Once the butter is melted and bubbling, pour in the eggs. Tilt the pan to ensure
|
||||
the eggs evenly coat the surface.
|
||||
<li>
|
||||
<h4>Add fillings (optional)</h4>: When the eggs begin to set at the edges but are
|
||||
still slightly runny in the middle, sprinkle your chosen fillings over one
|
||||
half of the omelette.
|
||||
</li>
|
||||
|
||||
Add fillings (optional): When the eggs begin to set at the edges but are still slightly runny in the
|
||||
middle, sprinkle your chosen fillings over one half of the omelette.
|
||||
<li>
|
||||
<h4>Fold and serve</h4>: As the omelette continues to cook, carefully lift one edge
|
||||
and fold it over the fillings. Let it cook for another minute, then slide
|
||||
it onto a plate.
|
||||
</li>
|
||||
|
||||
Fold and serve: As the omelette continues to cook, carefully lift one edge and fold it over the
|
||||
fillings. Let it cook for another minute, then slide it onto a plate.
|
||||
<li>
|
||||
<h4>Enjoy</h4>: Serve hot, with additional salt and pepper if needed.
|
||||
</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
Enjoy: Serve hot, with additional salt and pepper if needed.
|
||||
<section class="main-nutrition">
|
||||
<h2 class="main-hdg-2">Nutrition</h2>
|
||||
|
||||
Nutrition
|
||||
<p>
|
||||
The table below shows nutritional values per serving without the
|
||||
additional fillings.
|
||||
</p>
|
||||
|
||||
The table below shows nutritional values per serving without the additional fillings.
|
||||
<table class="main-nutrition-table">
|
||||
<tbody>
|
||||
<tr class="main-nutrition-trow">
|
||||
<td class="item">Calories</td>
|
||||
<td class="value">277kcal</td>
|
||||
</tr>
|
||||
<tr class="main-nutrition-trow">
|
||||
<td class="item">Carbs</td>
|
||||
<td class="value">0g</td>
|
||||
</tr>
|
||||
<tr class="main-nutrition-trow">
|
||||
<td class="item">Protein</td>
|
||||
<td class="value">20g</td>
|
||||
</tr>
|
||||
<tr class="main-nutrition-trow">
|
||||
<td class="item">Fat</td>
|
||||
<td class="value">22g</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
Calories
|
||||
277kcal
|
||||
|
||||
Carbs
|
||||
0g
|
||||
|
||||
Protein
|
||||
20g
|
||||
|
||||
Fat
|
||||
22g
|
||||
|
||||
<div class="attribution">
|
||||
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
|
||||
Coded by <a href="#">Your Name Here</a>.
|
||||
</div>
|
||||
<footer class="attribution">
|
||||
Challenge by <a href=""https://www.frontendmentor.io?ref=challenge"" target=""_blank"">Frontend Mentor</a>.
|
||||
<br>
|
||||
Coded by <a href=""https://github.com/fyrfli"">Camille Frantz (@fyrfli)</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
234
public/styles/main.css
Normal file
234
public/styles/main.css
Normal file
@ -0,0 +1,234 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Young+Serif&display=swap');
|
||||
|
||||
/* Style Guide */
|
||||
|
||||
/* ## Layout */
|
||||
|
||||
/* The designs were created to the following widths: */
|
||||
|
||||
/* - Mobile: 375px */
|
||||
/* - Desktop: 1440px */
|
||||
|
||||
/* ## Colors */
|
||||
|
||||
/* ### Primary */
|
||||
|
||||
/* - Nutmeg: hsl(14, 45%, 36%) */
|
||||
/* - Dark Raspberry: hsl(332, 51%, 32%) */
|
||||
|
||||
/* ### Neutral */
|
||||
|
||||
/* - White: hsl(0, 0%, 100%) */
|
||||
/* - Rose White: hsl(330, 100%, 98%) */
|
||||
/* - Eggshell: hsl(30, 54%, 90%) */
|
||||
/* - Light Grey: hsl(30, 18%, 87%) */
|
||||
/* - Wenge Brown: hsl(30, 10%, 34%) */
|
||||
/* - Dark Charcoal: hsl(24, 5%, 18%) */
|
||||
|
||||
/* ## Typography */
|
||||
|
||||
/* ### Body Copy */
|
||||
|
||||
/* - Font size (paragraph): 16px */
|
||||
|
||||
/* ### Fonts */
|
||||
|
||||
/* - Family: [Young Serif](https://fonts.google.com/specimen/Young+Serif) */
|
||||
/* - Weights: 400 */
|
||||
|
||||
/* - Family: [Outfit](https://fonts.google.com/specimen/Outfit) */
|
||||
/* - Weights: 400, 600, 700 */
|
||||
|
||||
:root {
|
||||
--nutmeg: hsl(14, 45%, 36%);
|
||||
--dark_raspberry: hsl(332, 51%, 32%);
|
||||
|
||||
--white: hsl(0, 0%, 100%);
|
||||
--rose_white: hsl(330, 100%, 98%);
|
||||
--eggshell: hsl(30, 54%, 90%);
|
||||
--light_grey: hsl(30, 18%, 87%);
|
||||
--wenge_brown: hsl(30, 10%, 34%);
|
||||
--dark_charcoal: hsl(24, 5%, 18%);
|
||||
}
|
||||
|
||||
/* @font-face { */
|
||||
/* src: url('https://fonts.googleapis.com/css2?family=Young+Serif&display=swap'); */
|
||||
/* font-family: YoungSerif; */
|
||||
/* } */
|
||||
|
||||
/* @font-face { */
|
||||
/* src: url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Young+Serif&display=swap'); */
|
||||
/* font-family: Outfit; */
|
||||
/* } */
|
||||
|
||||
|
||||
/* makes sizing simpler */
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* remove default spacing */
|
||||
/* force styling of type through styling, rather than elements */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font: inherit;
|
||||
border: 0;
|
||||
list-style: none;
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* min body height */
|
||||
body {
|
||||
min-height: 100vh;
|
||||
font-size: 16px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/* responsive images/videos */
|
||||
img,
|
||||
picture,
|
||||
svg,
|
||||
video {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.main {
|
||||
margin: 1.5rem;
|
||||
font-family: Outfit;
|
||||
color: var(--wenge_brown);
|
||||
}
|
||||
|
||||
.main-hdg-1 {
|
||||
font-size: 2rem;
|
||||
font-family: "Young Serif";
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
.main-hdg-2 {
|
||||
color: var(--dark_raspberry);
|
||||
font-size: 1.8rem;
|
||||
font-family: "Young Serif";
|
||||
}
|
||||
|
||||
.main-hdg-3 {
|
||||
color: var(--dark_raspberry);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.main-intro p {
|
||||
margin: 2rem auto;
|
||||
}
|
||||
|
||||
.main-prep {
|
||||
background-color: var(--rose_white);
|
||||
padding: 2rem;
|
||||
border-radius: 12px;
|
||||
line-height: 2rem;
|
||||
margin: 0.6rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
display: inline;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.main-prep li {
|
||||
list-style: disc inside;
|
||||
}
|
||||
|
||||
.main-ingredients {
|
||||
margin-top: 1.8rem;
|
||||
}
|
||||
|
||||
.main-ingredients ul {
|
||||
padding-left: 1.6rem;
|
||||
border-bottom: 1px solid var(--light_grey);
|
||||
}
|
||||
.main-ingredients li {
|
||||
list-style: disc outside;
|
||||
margin: 1rem auto;
|
||||
}
|
||||
|
||||
.main-instructions {
|
||||
margin-top: 2rem;
|
||||
border-bottom: 1px solid var(--light_grey);
|
||||
}
|
||||
|
||||
.main-instructions ol {
|
||||
padding-left: 1.6rem;
|
||||
}
|
||||
|
||||
.main-instructions li {
|
||||
list-style: decimal outside;
|
||||
margin: 1.2rem auto;
|
||||
}
|
||||
|
||||
.main-nutrition {
|
||||
margin-top: 1.8rem;
|
||||
}
|
||||
|
||||
.main-nutrition p {
|
||||
margin: 1.2rem auto;
|
||||
}
|
||||
|
||||
.main-nutrition-table {
|
||||
margin: 1.4rem 2rem;
|
||||
}
|
||||
|
||||
.main-nutrition-trow {
|
||||
width: 80vw;
|
||||
line-height: 2rem;
|
||||
border-bottom: 8px solid var(--light_grey);
|
||||
}
|
||||
|
||||
.item,
|
||||
.value {
|
||||
width: 30vw;
|
||||
}
|
||||
|
||||
.value {
|
||||
font-weight: 700;
|
||||
color: var(--dark_raspberry);
|
||||
}
|
||||
|
||||
|
||||
.attribution {
|
||||
margin-top: 1.2rem;
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.attribution a {
|
||||
color: hsl(228, 45%, 44%);
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 980px) {
|
||||
html {
|
||||
/* max-width: 1440px; */
|
||||
background-color: var(--eggshell);
|
||||
}
|
||||
body {
|
||||
width: 50vw;
|
||||
margin: 1rem auto;
|
||||
background-color: var(--white);
|
||||
padding: 1.4rem;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.header {
|
||||
width: 100%;
|
||||
}
|
||||
.header-img {
|
||||
border-radius: 12px;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user