Add Buy Me a Coffee support section
Added Buy Me a Coffee badges and links to READMEs, welcome modal, and app footer to allow users to support the project development. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,14 @@
|
|||||||
|
|
||||||
A professional pedigree (family tree) drawing tool for genetic counselors and bioinformatics professionals.
|
A professional pedigree (family tree) drawing tool for genetic counselors and bioinformatics professionals.
|
||||||
|
|
||||||
|
## ☕ Support this project
|
||||||
|
|
||||||
|
If you find this pedigree drawing tool helpful for research, teaching, or clinical work, consider supporting its development.
|
||||||
|
|
||||||
|
<a href="https://buymeacoffee.com/gbanyan" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||||
|
|
||||||
|
👉 Buy me a coffee: https://buymeacoffee.com/gbanyan
|
||||||
|
|
||||||
## Online Demo
|
## Online Demo
|
||||||
|
|
||||||
https://gbanyan.github.io/pedigree-draw/
|
https://gbanyan.github.io/pedigree-draw/
|
||||||
|
|||||||
@@ -4,6 +4,14 @@
|
|||||||
|
|
||||||
專為遺傳諮詢師和生物資訊專業人員設計的 Pedigree(家族樹)繪圖工具。
|
專為遺傳諮詢師和生物資訊專業人員設計的 Pedigree(家族樹)繪圖工具。
|
||||||
|
|
||||||
|
## ☕ 支持這個專案
|
||||||
|
|
||||||
|
如果您覺得這個家譜繪圖工具對您的研究、教學或臨床工作有幫助,歡迎支持它的開發。
|
||||||
|
|
||||||
|
<a href="https://buymeacoffee.com/gbanyan" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||||
|
|
||||||
|
👉 請我喝杯咖啡:https://buymeacoffee.com/gbanyan
|
||||||
|
|
||||||
## 線上 Demo
|
## 線上 Demo
|
||||||
|
|
||||||
https://gbanyan.github.io/pedigree-draw/
|
https://gbanyan.github.io/pedigree-draw/
|
||||||
|
|||||||
@@ -122,6 +122,16 @@ export function App() {
|
|||||||
<footer className={styles.footer}>
|
<footer className={styles.footer}>
|
||||||
<span>Pedigree Draw - For genetic counselors and bioinformatics professionals</span>
|
<span>Pedigree Draw - For genetic counselors and bioinformatics professionals</span>
|
||||||
<span>NSGC Standard Symbols</span>
|
<span>NSGC Standard Symbols</span>
|
||||||
|
<span>
|
||||||
|
<a
|
||||||
|
href="https://buymeacoffee.com/gbanyan"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
style={{ color: '#FFDD00', textDecoration: 'none', fontWeight: '500' }}
|
||||||
|
>
|
||||||
|
☕ Support this project
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{showWelcome && <WelcomeModal onClose={handleCloseWelcome} />}
|
{showWelcome && <WelcomeModal onClose={handleCloseWelcome} />}
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ export function WelcomeModal({ onClose }: WelcomeModalProps) {
|
|||||||
],
|
],
|
||||||
privacyTitle: '隱私政策',
|
privacyTitle: '隱私政策',
|
||||||
privacyContent: '本網站不搜集任何使用者資料,也不儲存任何資料。所有操作僅在您的瀏覽器中進行,關閉頁面後資料即消失。',
|
privacyContent: '本網站不搜集任何使用者資料,也不儲存任何資料。所有操作僅在您的瀏覽器中進行,關閉頁面後資料即消失。',
|
||||||
|
supportTitle: '☕ 支持這個專案',
|
||||||
|
supportContent: '如果您覺得這個工具對您的研究、教學或臨床工作有幫助,歡迎支持它的開發。',
|
||||||
buttonText: '我了解,開始使用',
|
buttonText: '我了解,開始使用',
|
||||||
} : {
|
} : {
|
||||||
title: 'Welcome to Pedigree Draw',
|
title: 'Welcome to Pedigree Draw',
|
||||||
@@ -41,6 +43,8 @@ export function WelcomeModal({ onClose }: WelcomeModalProps) {
|
|||||||
],
|
],
|
||||||
privacyTitle: 'Privacy Policy',
|
privacyTitle: 'Privacy Policy',
|
||||||
privacyContent: 'This website does not collect any user data or store any information. All operations are performed locally in your browser. Data will be lost when you close the page.',
|
privacyContent: 'This website does not collect any user data or store any information. All operations are performed locally in your browser. Data will be lost when you close the page.',
|
||||||
|
supportTitle: '☕ Support This Project',
|
||||||
|
supportContent: 'If you find this tool helpful for research, teaching, or clinical work, consider supporting its development.',
|
||||||
buttonText: 'I Understand, Let\'s Start',
|
buttonText: 'I Understand, Let\'s Start',
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -66,6 +70,20 @@ export function WelcomeModal({ onClose }: WelcomeModalProps) {
|
|||||||
<p className={styles.paragraph}>{content.privacyContent}</p>
|
<p className={styles.paragraph}>{content.privacyContent}</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section className={styles.section}>
|
||||||
|
<h2 className={styles.sectionTitle}>{content.supportTitle}</h2>
|
||||||
|
<p className={styles.paragraph}>{content.supportContent}</p>
|
||||||
|
<div style={{ textAlign: 'center', marginTop: '12px' }}>
|
||||||
|
<a href="https://buymeacoffee.com/gbanyan" target="_blank" rel="noopener noreferrer">
|
||||||
|
<img
|
||||||
|
src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"
|
||||||
|
alt="Buy Me A Coffee"
|
||||||
|
style={{ height: '50px', width: 'auto', borderRadius: '8px' }}
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<button className={styles.button} onClick={handleClose}>
|
<button className={styles.button} onClick={handleClose}>
|
||||||
{content.buttonText}
|
{content.buttonText}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user