Skip to content

Commit

Permalink
Improve recipie pages
Browse files Browse the repository at this point in the history
Improved the looks of the recipe pages prep time part by using the box modelling.
  • Loading branch information
Meksandor committed Sep 15, 2023
1 parent 665a15b commit daa7e46
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 26 deletions.
16 changes: 8 additions & 8 deletions recipes/asian_beef_slaw.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ <h1>Addictive Asian Beef Slaw</h1>
</div>

<div class="timereq">
<h5></h5>
<p1>Prep Time: 20 mins</p1>
<h5></h5>
<p1>Cook Time: 11 mins</p1>
<h5></h5>
<p1>Total Time: 31 mins</p1>
<h5></h5>
<p1>Servings: 4 servings</p1>

<p1><span class="timename">Prep Time</span> 20 mins</p1>

<p1><span class="timename">Cook Time</span> 11 mins</p1>

<p1><span class="timename">Total Time</span> 31 mins</p1>

<p1><span class="timename">Servings</span> 4 servings</p1>
</div>

<div id="ingre">
Expand Down
18 changes: 10 additions & 8 deletions recipes/oyakodon.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ <h5></h5>
broth, and then finished with egg and served over rice. It's really easy, filling, and delicious.</p1>


<h5></h5>
<p1>Prep Time: 10 mins</p1>
<h5></h5>
<p1>Cook Time: 30 mins</p1>
<h5></h5>
<p1>Total Time: 40 mins</p1>
<h5></h5>
<p1>Servings: 4 servings</p1>
<div class="timereq">

<p1><span class="timename">Prep Time</span> 10 mins</p1>

<p1><span class="timename">Cook Time</span> 30 mins</p1>

<p1><span class="timename">Total Time</span> 40 mins</p1>

<p1><span class="timename">Servings</span> 4 servings</p1>
</div>

<h3>Ingredients</h3>
<ul>
Expand Down
12 changes: 12 additions & 0 deletions recipes/style1.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ ol {
list-style-type: none;
}

.timereq p1 {
display: inline-block;
margin: 10px auto 0px auto;
padding: 0px 10px 10px 10px;
background-color: #DAC0A3;
}

.timereq .timename {
display: block;
margin: 10px auto;
}

.nutri li {
display: inline-block;
background-color: aliceblue;
Expand Down
12 changes: 12 additions & 0 deletions recipes/style2.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ the whole body there is no extra code required*/
margin: 20px;
}

.timereq p1 {
display: inline-block;
margin: 10px auto 0px auto;
padding: 0px 10px 10px 10px;
background-color: #DAC0A3;
}

.timereq .timename {
display: block;
margin: 10px auto;
}

h1 {
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
Expand Down
12 changes: 12 additions & 0 deletions recipes/style3.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ the whole body there is no extra code required*/
margin: 20px;
}

.timereq p1 {
display: inline-block;
margin: 10px auto 0px auto;
padding: 0px 10px 10px 10px;
background-color: #DAC0A3;
}

.timereq .timename {
display: block;
margin: 10px auto;
}

h1 {
text-align: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
Expand Down
22 changes: 12 additions & 10 deletions recipes/summer_fruit_salad.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ <h5></h5>
can let it soak in its juices. I prefer 3 to 4 hours in the refrigerator before I serve it.</p1>


<h5></h5>
<p1>Prep Time: 25 mins</p1>
<h5></h5>
<p1>Cook Time: 5 mins</p1>
<h5></h5>
<p1>Additional Time: 3 hrs</p1>
<h5></h5>
<p1>Total Time: 3 hrs 30 mins</p1>
<h5></h5>
<p1>Servings: 10 servings</p1>
<div class="timereq">

<p1><span class="timename">Prep Time</span> 25 mins</p1>

<p1><span class="timename">Cook Time</span> 5 mins</p1>

<p1><span class="timename">Total Time</span> 3 hrs 30 mins</p1>

<p1><span class="timename">Total Time</span> 3 hrs 30 mins</p1>

<p1><span class="timename">Servings</span> 10 servings</p1>
</div>

<h3>Ingredients</h3>

Expand Down

0 comments on commit daa7e46

Please sign in to comment.