Skip to content

Commit 0cdf843

Browse files
committed
Add small ad for Factory Time
1 parent c646354 commit 0cdf843

File tree

5 files changed

+40
-2
lines changed

5 files changed

+40
-2
lines changed

src/app/app.component.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@
2020

2121
<!-- <app-annex class="section section-nav-margin"></app-annex> -->
2222
<app-footer class="footer section-nav-margin"></app-footer>
23+
24+
<div class="sticky-left-panel">
25+
<a class="btn btn-outline-primary" [href]="APP_INFO.factoryTime.url" target="_blank" rel="noopener noreferrer">
26+
Play my game: "Factory Time"
27+
</a>
28+
</div>

src/app/app.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ import {
88
} from '@angular/service-worker';
99
import { filter, map, Subject, takeUntil } from 'rxjs';
1010

11+
import { APP_INFO } from './shared/app-settings';
12+
1113
@Component({
1214
selector: 'app-root',
1315
templateUrl: './app.component.html',
1416
})
1517
export class AppComponent implements OnDestroy {
1618
private readonly clearSub$ = new Subject<void>();
19+
protected readonly APP_INFO = APP_INFO;
1720

1821
constructor(private swUpdate: SwUpdate) {
1922
this.subToUpdateApp();

src/app/layout/overview/overview.component.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,19 @@ <h2>Overview</h2>
6565
<p class="text-muted">If you find the cheat sheet useful, you can:</p>
6666
<div class="support-buttons">
6767
<a class="btn btn-outline-primary" href="https://ko-fi.com/deniszholob" target="_blank" rel="noopener">
68-
Buy me Ko-fi
68+
Buy me <br />
6969
<i class="{{ APP_INFO.kofi.icon }}"></i>
70+
Ko-fi
7071
</a>
7172
<a class="btn btn-outline-primary" href="https://patreon.com/deniszholob" target="_blank" rel="noopener">
72-
Support me on Patreon
73+
Support me on <br />
7374
<i class="{{ APP_INFO.patreon.icon }}"></i>
75+
Patreon
76+
</a>
77+
<a class="btn btn-outline-primary" [href]="APP_INFO.factoryTime.url" target="_blank" rel="noopener noreferrer">
78+
Play My Game <br />
79+
<i class="{{ APP_INFO.factoryTime.icon }}"></i>
80+
"Factory Time"
7481
</a>
7582
</div>
7683
</div>

src/app/shared/app-settings.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ export const APP_INFO: AppInfo = {
3131
url: 'https://www.patreon.com/deniszholob',
3232
icon: 'fab fa-patreon',
3333
},
34+
factoryTime: {
35+
name: 'Factory Time Game',
36+
url: 'https://deniszholob.github.io/factory-time/',
37+
title: 'Factory Time Game',
38+
icon: 'fas fa-industry',
39+
},
3440
data_version: '2.0.7',
3541
// languages: ['en-US'],
3642
links: {
@@ -56,6 +62,7 @@ export interface AppInfo {
5662
links: ImageLinks;
5763
// old_cheat_sheets: Hyperlink[];
5864
// pdfs: Hyperlink[];
65+
factoryTime: Hyperlink;
5966
}
6067

6168
/** Hyperlink data */

src/styles/styles.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,18 @@ small,
230230
.justify-center {
231231
justify-content: center;
232232
}
233+
234+
.sticky-left-panel {
235+
position: fixed;
236+
left: 0;
237+
top: 50%;
238+
--tw-translate-y: -50%;
239+
transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y));
240+
background: rgba(3, 3, 3);
241+
writing-mode: sideways-rl;
242+
text-orientation: mixed;
243+
244+
.btn {
245+
padding: 0.5rem 0.25rem;
246+
}
247+
}

0 commit comments

Comments
 (0)