Unit 4 ยท Seasonal Calendar
Stage 2 of 7
Unit 4 ยท Stage 2
Your four-column grid from Stage 1 is your starting code. In this stage you will give each season its own name and its own background color, using Ojibwe and Dakota seasonal words. The calendar is about to start looking like something real. Play in the editor, or press ๐ Type it with me to be guided. (pause on a highlighted word to see what it does)
.calendar-grid with four .season cards. In CSS an element can carry more than one class, and that is the trick you will use next to color each card on its own.Before you code, meet the seasons you are about to name. Tribal nations across this region hold rich seasonal knowledge, and the words below are a starting point you can build on.
Right now all four cards share one class, .season. Add a second class to each card so you can style them one at a time.
class="season spring".season and .spring..season.spring, .summer, .fall, .winter<div class="season"> cards, add a second class: spring, summer, fall, then winter. Use the example below, then press โถ Run.<div class="calendar-grid"> <div class="season spring">Season 1</div> <div class="season summer">Season 2</div> <div class="season fall">Season 3</div> <div class="season winter">Season 4</div> </div>
Now add one CSS rule per season. Each rule sets a background-color that reflects how the land feels in that season.
.spring { background-color: #4a7c59 }.summer { background-color: #c49a1b }.fall { background-color: #b05a2f }.winter { background-color: #3b5068 }<style> tag, then press โถ Run and watch each card change..spring { background-color: #4a7c59; }
.summer { background-color: #c49a1b; }
.fall { background-color: #b05a2f; }
.winter { background-color: #3b5068; }
What CSS property did you set to give each card its color? Type it, then press Submit to unlock the last step.
Replace the placeholder text with real headings. Give each card an <h2> with the English name and a <span> with the Ojibwe and Dakota names, then style them.
color: white on the h2rgba(255, 255, 255, 0.8)font-style: italicdisplay: block<h2> and a <span class="season-name-native">. Use the examples below, then press โถ Run..season h2 {
font-size: 22px;
margin: 0 0 4px;
color: white;
}
.season-name-native {
font-size: 12px;
color: rgba(255, 255, 255, 0.8);
font-style: italic;
display: block;
margin-bottom: 16px;
}
<div class="season spring"> <h2>Spring</h2> <span class="season-name-native">Ziigwan (Ojibwe) | Wetu (Dakota)</span> </div> <div class="season summer"> <h2>Summer</h2> <span class="season-name-native">Niibin (Ojibwe) | Bdoketu (Dakota)</span> </div> <div class="season fall"> <h2>Fall</h2> <span class="season-name-native">Dagwaagin (Ojibwe) | Ptanyetu (Dakota)</span> </div> <div class="season winter"> <h2>Winter</h2> <span class="season-name-native">Biboon (Ojibwe) | Waniyetu (Dakota)</span> </div>
Experiment, then set it the way you like it.
To complete Stage 2, each season card needs its own class, its own color, and a name inside it. Press Check my work when you are ready. This opens Stage 3 and lets your teacher see that you finished.