diff --git a/booklore-ui/src/app/github-support-dialog/github-support-dialog.html b/booklore-ui/src/app/github-support-dialog/github-support-dialog.html
new file mode 100644
index 000000000..566bc85e8
--- /dev/null
+++ b/booklore-ui/src/app/github-support-dialog/github-support-dialog.html
@@ -0,0 +1,15 @@
+
+ I hope Booklore has made managing your book collection easier and more enjoyable.
+ If you appreciate the project, please consider giving it a ⭐ on GitHub. Your support truly means a lot and motivates me to keep improving.
+
+
+ — Aditya (Creator of BookLore)
+
+
diff --git a/booklore-ui/src/app/github-support-dialog/github-support-dialog.scss b/booklore-ui/src/app/github-support-dialog/github-support-dialog.scss
new file mode 100644
index 000000000..e69de29bb
diff --git a/booklore-ui/src/app/github-support-dialog/github-support-dialog.ts b/booklore-ui/src/app/github-support-dialog/github-support-dialog.ts
new file mode 100644
index 000000000..da1986dc0
--- /dev/null
+++ b/booklore-ui/src/app/github-support-dialog/github-support-dialog.ts
@@ -0,0 +1,16 @@
+import { Component } from '@angular/core';
+import {Button} from 'primeng/button';
+
+@Component({
+ selector: 'app-github-support-dialog',
+ imports: [
+ Button
+ ],
+ templateUrl: './github-support-dialog.html',
+ styleUrl: './github-support-dialog.scss'
+})
+export class GithubSupportDialog {
+ openGithub(): void {
+ window.open('https://github.com/adityachandelgit/booklore', '_blank');
+ }
+}
diff --git a/booklore-ui/src/app/layout/component/layout-topbar/app.topbar.component.html b/booklore-ui/src/app/layout/component/layout-topbar/app.topbar.component.html
index 693f103a4..4e71c7fd7 100644
--- a/booklore-ui/src/app/layout/component/layout-topbar/app.topbar.component.html
+++ b/booklore-ui/src/app/layout/component/layout-topbar/app.topbar.component.html
@@ -58,6 +58,14 @@
+
+
diff --git a/booklore-ui/src/app/layout/component/layout-topbar/app.topbar.component.ts b/booklore-ui/src/app/layout/component/layout-topbar/app.topbar.component.ts
index 5330837f6..5b935cc0c 100644
--- a/booklore-ui/src/app/layout/component/layout-topbar/app.topbar.component.ts
+++ b/booklore-ui/src/app/layout/component/layout-topbar/app.topbar.component.ts
@@ -19,6 +19,7 @@ import {BookUploaderComponent} from '../../../utilities/component/book-uploader/
import {AuthService} from '../../../core/service/auth.service';
import {UserService} from '../../../settings/user-management/user.service';
import {UserProfileDialogComponent} from '../../../settings/global-preferences/user-profile-dialog/user-profile-dialog.component';
+import {GithubSupportDialog} from '../../../github-support-dialog/github-support-dialog';
@Component({
selector: 'app-topbar',
@@ -72,16 +73,16 @@ export class AppTopBarComponent implements OnDestroy {
this.layoutService.onMenuToggle();
}
- onMouseEnter() {
- this.showEvents = true;
- }
-
- onMouseLeave() {
- this.showEvents = false;
- }
-
- toggleEventDisplay(): void {
- this.showEvents = !this.showEvents;
+ openGithubSupportDialog(): void {
+ this.ref = this.dialogService.open(GithubSupportDialog, {
+ header: 'Support BookLore on GitHub',
+ modal: true,
+ closable: true,
+ style: {
+ position: 'absolute',
+ top: '25%',
+ },
+ });
}
openLibraryCreatorDialog(): void {