From 2d77644b8e0a6e5a2626d6fcf88baff2a160a6b9 Mon Sep 17 00:00:00 2001 From: "aditya.chandel" Date: Thu, 5 Jun 2025 15:10:00 -0600 Subject: [PATCH] Implement GitHub Star Prompt via Topbar --- .../github-support-dialog.html | 15 +++++++++++++ .../github-support-dialog.scss | 0 .../github-support-dialog.ts | 16 ++++++++++++++ .../layout-topbar/app.topbar.component.html | 11 ++++++++++ .../layout-topbar/app.topbar.component.ts | 21 ++++++++++--------- 5 files changed, 53 insertions(+), 10 deletions(-) create mode 100644 booklore-ui/src/app/github-support-dialog/github-support-dialog.html create mode 100644 booklore-ui/src/app/github-support-dialog/github-support-dialog.scss create mode 100644 booklore-ui/src/app/github-support-dialog/github-support-dialog.ts 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 @@
+
  • + + + + +
  • +
    + +