Skip to content

Commit

Permalink
Add hotdog stand theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Nov 5, 2023
1 parent b1ca1d1 commit 93b7801
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div class="bg-header-background text-header-foreground border-b-backdrop border-b-2 h-[59px] flex items-center flex-col">
<div class="container items-center flex h-[59px]">
<div class="flex mr-2.5">
<a class="bg-logo bg-cover cursor-pointer w-12 h-12 drop-shadow-lg" routerLink="/" title="Home"></a>
<a class="bg-logo bg-cover cursor-pointer w-12 h-12 drop-shadow-lg" *ngIf="!isThemeHotdogStand()" routerLink="/" title="Home"></a>
<a class="bg-cover cursor-pointer w-12 h-12 drop-shadow-lg" style="font-size: 3rem; line-height: 3rem;" *ngIf="isThemeHotdogStand()" routerLink="/" title="Home">🌭</a>
<div class="ml-3 w-[3px] rounded-sm bg-divider"></div>
</div>

Expand Down
6 changes: 5 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class AppComponent {

rightSideRouterLinks: HeaderLink[] = []

constructor(authService: AuthService, apiClient: ApiClient, public bannerService: BannerService, embedService: EmbedService, titleService: TitleService, themeService: ThemeService) {
constructor(authService: AuthService, apiClient: ApiClient, public bannerService: BannerService, embedService: EmbedService, titleService: TitleService, private themeService: ThemeService) {
authService.userWatcher.subscribe((data) => this.handleUserUpdate(data))
this.handleUserUpdate(undefined)

Expand All @@ -98,6 +98,10 @@ export class AppComponent {
}
}

isThemeHotdogStand(): boolean {
return this.themeService.GetTheme() == "hotdogStand";
}

handleUserUpdate(data: ExtendedUser | undefined) {
this.user = data;
this.rightSideRouterLinks = [];
Expand Down
4 changes: 4 additions & 0 deletions src/app/pages/settings/settings.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export class SettingsComponent implements OnInit {
Name: "Lighthouse",
Value: "lighthouse",
},
{
Name: "Hotdog Stand",
Value: "hotdogStand",
},
{
Name: "Steam Green",
Value: "vgui",
Expand Down
31 changes: 31 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,37 @@ module.exports = {
"api-remove": "#ea574d",
"api-push": "#eeb231",
},
hotdogStand: {
"background": "yellow",
"header-background": "#c53c38",
"form-background": "#c53c38",
"backdrop": "red",

"divider": "yellow",

"header-foreground": "yellow",
"foreground": "#f58c78",
"gentle": "#9F8775",

"primary": "#EE0000",
"secondary": "yellow",
"teritary": "#b53c18",

"secondary-bright": "white",

"success": "green",
"dangerous": "#ea574d",
"warning": "#eeb231",

"rank-gold": "#eeb231",
"rank-silver": "#FFF0E4",
"rank-bronze": "#FF8845",
"rank-other": "#8A7261",

"api-retrieve": "#79c501",
"api-remove": "#ea574d",
"api-push": "#eeb231",
},
lighthouse: {
"background": "#ededf0",
"header-background": "#121212",
Expand Down

0 comments on commit 93b7801

Please sign in to comment.