Skip to content

Commit 8adc6fa

Browse files
committed
update article background colour
1 parent c19f4d4 commit 8adc6fa

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

Wireframe/index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<head>
44
<meta charset="UTF-8" >
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
6+
<link rel="preconnect" href="https://fonts.googleapis.com">
7+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
8+
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
69
<title>Wireframe</title>
710
<link rel="stylesheet" href="style.css" >
811
</head>
@@ -17,7 +20,7 @@ <h2>The power of legumes</h2>
1720
<p>
1821
Legumes, a diverse group including beans, lentils, peas, and chickpeas, are nutritional powerhouses that offer significant benefits for human health ...
1922
</p>
20-
<a href="">Read more</a>
23+
<a href="legumes.html" target="_blank">Read more</a>
2124
</article>
2225

2326
<article>
@@ -26,7 +29,7 @@ <h2>Lentils</h2>
2629
<p>
2730
Lentils are often called a superfood, and for good reason. These small, lens-shaped legumes pack a powerful nutritional punch, making them an excellent addition to any diet ...
2831
</p>
29-
<a href="">Read more</a>
32+
<a href="lentils.html" target="_blank">Read more</a>
3033
</article>
3134

3235
<article>
@@ -35,7 +38,7 @@ <h2>Chickpeas</h2>
3538
<p>
3639
Chickpeas, also known as garbanzo beans, are tiny legumes with big nutritional benefits, earning them the title of a superfood. Packed with plant-based protein, chickpeas are excellent for muscle repair ...
3740
</p>
38-
<a href="">Read more</a>
41+
<a href="chickpeas.html" target="_blank">Read more</a>
3942
</article>
4043

4144
</main>

Wireframe/legumes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h2>Legumes: A Nutritional Powerhouse for Human Health</h2>
2929
Another compelling reason to include legumes in the diet is their low glycemic index, which helps maintain steady energy levels and improves blood sugar management. This property, combined with their high fibre and protein content, makes legumes particularly beneficial for weight control and metabolic health.
3030
</p>
3131
<p>
32-
Legumes are also incredibly versatile in culinary applications. They can be added to soups, stews, salads, curries, dips, or even blended into spreads like hummus. Their mild flavor and ability to absorb seasonings make them adaptable to a wide variety of cuisines, helping people increase their nutrient intake without compromising taste.
32+
Legumes are also incredibly versatile in culinary applications. They can be added to soups, stews, salads, curries, dips, or even blended into spreads like hummus. Their mild flavour and ability to absorb seasonings make them adaptable to a wide variety of cuisines, helping people increase their nutrient intake without compromising taste.
3333
</p>
3434
<p>
3535
In addition to human health benefits, legumes contribute to environmental sustainability. As nitrogen-fixing plants, they enrich the soil, reducing the need for chemical fertilizers. They also require less water and produce fewer greenhouse gases compared to most animal-based protein sources, making them a responsible choice for both personal health and the planet.

Wireframe/style.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ As well as useful links to learn more */
1717
https://scrimba.com/learn-css-variables-c026
1818
====== Design Palette ====== */
1919
:root {
20+
--font-primary: "Roboto", sans-serif;
21+
--clr-primary: #f5f5f5;
2022
--paper: oklch(7 0 0);
2123
--ink: color-mix(in oklab, var(--color) 5%, black);
2224
--font: 100%/1.5 system-ui;
2325
--space: clamp(6px, 6px + 2vw, 15px);
24-
--line: 1px solid grey;
26+
--line: 1px solid #F5F5F5;
2527
--container: 1280px;
2628
}
2729
/* ====== Base Elements ======
@@ -32,7 +34,7 @@ body {
3234
min-height: 100vh;
3335
background: var(--paper);
3436
color: var(--ink);
35-
font: var(--font);
37+
font-family: var(--font-primary);
3638
}
3739
a {
3840
padding: var(--space);
@@ -88,6 +90,7 @@ Keeping things orderly and separate is the key to good, simple CSS.
8890
article {
8991
border: var(--line);
9092
padding-bottom: var(--space);
93+
background-color: var(--clr-primary);
9194
margin-bottom: 1rem;
9295
text-align: left;
9396
display: grid;

0 commit comments

Comments
 (0)