Skip to content

Commit

Permalink
[UI/UX:Developer] Black history month duck (#10169)
Browse files Browse the repository at this point in the history
![Screen Shot 2024-02-08 at 1 52 51
AM](https://github.com/Submitty/Submitty/assets/123261952/d4d7f569-fda1-4720-9f73-0cbe4aecb136)

To embrace and welcome all community, we are adding black history month
duck.
The design is the three common theme color of  black history month. 
It will be visible randomly during entire february.
  • Loading branch information
ziesski committed Feb 16, 2024
1 parent 4de2870 commit 19a1ed6
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
7 changes: 4 additions & 3 deletions site/app/controllers/GlobalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ private function getDuckImage(\DateTime $now): string {
switch ($month) {
case 12:
//December (Christmas, Hanukkah)

$hanukkahStartDateTime = $this->calculateHanukkahDate($yearint);
$hanukkahEndDateTime = $this->calculateHanukkahDate($yearint);
$hanukkahEndDateTime->modify('+8 days');
Expand Down Expand Up @@ -556,13 +555,15 @@ private function getDuckImage(\DateTime $now): string {
}
break;
case 2:
$februaryImages = ['moorthy_duck/black-history-duck.svg'];
if ($day <= 3) {
$duck_img = 'moorthy_duck/party-duck/party-duck-10th.svg';
$februaryImages[] = 'moorthy_duck/party-duck/party-duck-10th.svg';
}
//Valentines (Hearts)
if ($day >= 11 && $day <= 17) {
$duck_img = 'moorthy_duck/02-february.svg';
$februaryImages[] = 'moorthy_duck/02-february.svg';
}
$duck_img = $februaryImages[array_rand($februaryImages)];
break;
case 1:
//January (Snowflakes)
Expand Down
39 changes: 39 additions & 0 deletions site/public/img/moorthy_duck/black-history-duck.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 19a1ed6

Please sign in to comment.