Skip to content

Commit

Permalink
added background banner color for travel per QA
Browse files Browse the repository at this point in the history
  • Loading branch information
weiwang-gsa committed Aug 9, 2023
1 parent a55624d commit a94ca80
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion training-front-end/public/styles/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion training-front-end/public/styles/styles.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions training-front-end/sass/_components/banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@
// fleet banner backgroud color
.color-sp-fleet-dark{
background-color: #005748;
}

// travel banner background color
.color-sp-travel-medium{
background-color: #00467F;
}
6 changes: 5 additions & 1 deletion training-front-end/src/layouts/TrainingLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ else if(training_category.includes("fleet"))
{
background_class = "color-sp-fleet-dark";
}
else{
else if(training_category.includes("travel")){
background_class = "color-sp-travel-medium";
}
else
{
background_class = "bg-primary";
}
Expand Down
6 changes: 5 additions & 1 deletion training-front-end/src/pages/quiz/[training_id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ else if (training_id.includes("fleet"))
{
background_class = "color-sp-fleet-dark";
}
else {
else if(training_id.includes("travel")){
background_class = "color-sp-travel-medium";
}
else
{
background_class = "bg-primary";
}
Expand Down

0 comments on commit a94ca80

Please sign in to comment.