Hello, this is my code for the Dasmoto’s Arts and Crafts Project. I also posted it on GitHub here:
https://easonvora.github.io/dasmoto-arts-and-craft/
I didn’t put a footer nor add a description to the header since they weren’t requested/specified by the spec sheet. I previously had an id for the header (#header), but I removed it since there will only be one h1 element on the page.
Additionally, I attached the background image directly to the h1 element instead of the header so I could put it with the same rulesets for the h1 element.
I did this using VSCode.
(I am 10% completed for the Front End Engineer Skill Path.)
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dasmoto's Arts & Crafts</title>
<link rel="stylesheet" href="./resources/css/index.css">
</head>
<body>
<!-- Header -->
<header>
<h1 class="bold">Dasmoto's Arts & Crafts</h1>
</header>
<!-- Start of Brushes -->
<div class="brushes">
<h2 class="bold">Brushes</h2>
<img src="https://content.codecademy.com/courses/freelance-1/unit-2/hacksaw.jpeg" alt="Hacksaw Brushes">
<h3>Hacksaw Brushes</h3>
<p>Made of the highest quality oak, Hacksaw brushes are known for their weight and ability to hold paint in large amounts. Available in different sizes. <span class="prices bold">Starting at $3.00 / brush.</span></p>
</div>
<!-- End of Brushes -->
<!-- Start of Frames -->
<div class="frames">
<h2 class="bold">Frames</h2>
<img src="https://content.codecademy.com/courses/freelance-1/unit-2/frames.jpeg" alt="Painting Frames">
<h3>Art Frames (assorted)</h3>
<p>Assorted frames made of different material, including MDF, birchwood, and PDE. Select frames can be sanded and painted according to your needs. <span class="prices bold">Starting at $2.00 / frame.<span></p>
</div>
<!-- End of Frames -->
<!-- Start of Paint -->
<div class="paint">
<h2 class="bold">Paint</h2>
<img src="https://content.codecademy.com/courses/freelance-1/unit-2/finnish.jpeg" alt="Paint Tubes">
<h3>Clean Finnish Paint</h3>
<p>Imported paint from Finland. Over 256 colors available in-store, varying in quantity (1 oz. to 8 oz.). Clean Finnish paint microbinds to canvas, increasing the finish and longevity of any artwork. <span class="prices bold">Starting at $5.00 / tube.</span></p>
</div>
<!-- End of Paint -->
</body>
</html>
CSS:
* {
font-family: Helvetica;
}
h1 {
font-size: 100px;
color: khaki;
text-align: center;
background-image: url("https://content.codecademy.com/courses/freelance-1/unit-2/pattern.jpeg");
}
.prices {
color: blue;
}
.bold {
font-weight: bold;
}
/* Body's h2 elements */
h2 {
font-size: 32px;
color: white;
}
.brushes h2 {
background-color: mediumspringgreen;
}
.frames h2 {
background-color: lightcoral;
}
.paint h2 {
background-color: skyblue;
}
/* End of Body's h2 elements */
This is a link to the project directions
https://www.codecademy.com/paths/front-end-engineer-career-path/tracks/fecp-22-developing-websites-locally/modules/wdcp-22-developing-with-css/projects/dasmoto?authuser=0