Front End Lab 4

This commit is contained in:
2025-10-24 20:59:10 -04:00
parent d3d77666c9
commit 13c7cac19f
8 changed files with 36 additions and 12 deletions

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -1,12 +1,12 @@
/* Beginner elements */ /* Beginner elements */
* { * {
font-size: 62.5%;
padding: 0;
margin: 0; margin: 0;
} }
body { body {
background: url(../images/squares_bg.png); background: url(../images/squares_bg.png);
font-family: Helvetica, sans-serif;
font-size: 1rem;
} }
/* Header and logo */ /* Header and logo */
@@ -20,13 +20,13 @@ h1,
h2 { h2 {
font-family: "Dancing Script", cursive; font-family: "Dancing Script", cursive;
color: teal; color: teal;
font-size: 3rem; font-size: 2rem;
text-shadow: 2px 2px 4px grey; text-shadow: 2px 2px 4px grey;
margin: 2rem auto; margin-left: 1.2rem;
} }
.main-heading { .main-heading {
font-size: 4rem; font-size: 2.2rem;
text-align: center; text-align: center;
} }
@@ -38,8 +38,9 @@ nav {
margin: 2rem 0; margin: 2rem 0;
} }
ul,
a { a {
font-size: 2rem; font-size: 1rem;
text-decoration: none; text-decoration: none;
list-style: none; list-style: none;
display: block; display: block;
@@ -53,8 +54,7 @@ a {
/* Recipe card styling */ /* Recipe card styling */
.recipe-card { .recipe-card {
margin: 2rem 1rem; margin: 2rem 1rem;
font-size: 3rem; font-size: 1rem;
font-family: Helvetica, sans-serif;
border: 2px solid grey; border: 2px solid grey;
background-color: white; background-color: white;
border-radius: 5px; border-radius: 5px;
@@ -71,32 +71,56 @@ a {
text-align: left; text-align: left;
line-height: 25px; line-height: 25px;
margin: 2rem; margin: 2rem;
color: grey;
font-weight: bold;
font-family: Helvetica, sans-serif;
} }
.author { .author {
text-align: right; text-align: right;
margin-right: 1rem;
color: grey;
} }
.publish-date { .publish-date {
text-align: right; text-align: right;
color: rgba(75, 75, 75, 0.507);
margin-right: 1rem;
} }
/* About section styling */ /* About section styling */
.about-sandy { .about-sandy {
background-color: grey; background-color: grey;
background-image: url(../images/squares_bg.png); background-image: url(../images/squares_bg.png);
padding-bottom: 1rem;
margin-bottom: 0.3rem;
}
.about-sandy p {
text-align: left;
line-height: 1.6rem;
margin: 2rem;
color: lightgrey;
font-weight: bold;
}
.about-sandy h2 {
color: white;
font-size: 3rem;
text-shadow: 2px 2px 4px black;
} }
/* Footer styling */ /* Footer styling */
footer { footer {
background: teal; background: teal;
border-top: 2px solid white; font-size: 1rem;
font-size: 2rem;
color: lightgrey; color: lightgrey;
margin: 2rem auto; padding: 2rem;
text-align: center;
line-height: 1.6;
} }
footer strong { footer strong {
color: white; color: white;
font-size: 2rem;
} }