Skip to content

Commit c8b21fe

Browse files
committed
feat: Add PayPal donation option and enhance donation dropdown functionality
1 parent 73b40fa commit c8b21fe

File tree

5 files changed

+63
-14
lines changed

5 files changed

+63
-14
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ issuehunt: # Replace with your IssueHunt username if you have one
1111
lfx_crowdfunding: # Replace with your LFX Crowdfunding project slug if you have one
1212
polar: # Replace with your Polar username if you have one
1313
buy_me_a_coffee: prot10
14-
custom: # Replace with up to 4 custom sponsorship URLs
14+
custom: ['https://paypal.me/andreaprotani99']

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ A modern, open-source macOS system utility app with Apple's Liquid Glass UI desi
66
![Swift](https://img.shields.io/badge/Swift-5.9+-orange)
77
![License](https://img.shields.io/badge/License-MIT-green)
88
[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-FFDD00?style=flat&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/prot10)
9+
[![PayPal](https://img.shields.io/badge/PayPal-0070BA?style=flat&logo=paypal&logoColor=white)](https://paypal.me/andreaprotani99)
910

1011
**[Website](https://prot10.github.io/MyMacCleaner/)** | **[Documentation](https://prot10.github.io/MyMacCleaner/docs/)** | **[Download](https://github.com/Prot10/MyMacCleaner/releases/latest)**
1112

@@ -135,6 +136,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
135136

136137
If you find MyMacCleaner useful, consider supporting the project:
137138

139+
[![PayPal](https://img.shields.io/badge/PayPal-0070BA?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/andreaprotani99)
138140
[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/prot10)
139141

140142
- [Open an Issue](https://github.com/Prot10/MyMacCleaner/issues)

website/src/components/Header.astro

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,47 @@ const navItems = [
3737
</a>
3838
))}
3939

40-
<!-- Buy Me a Coffee -->
41-
<a
42-
href="https://buymeacoffee.com/prot10"
43-
target="_blank"
44-
rel="noopener noreferrer"
45-
class="ml-2 px-3 py-2 text-sm font-medium text-black bg-[#FFDD00] hover:bg-[#FFDD00]/90 rounded-lg transition-colors flex items-center gap-1.5"
46-
title="Buy me a coffee"
47-
>
48-
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor">
49-
<path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364z"/>
50-
</svg>
51-
<span class="hidden sm:inline">Donate</span>
52-
</a>
40+
<!-- Donate Dropdown -->
41+
<div class="relative ml-2 donate-dropdown">
42+
<button
43+
class="px-3 py-2 text-sm font-medium text-white bg-gradient-to-r from-pink-500 to-orange-400 hover:from-pink-600 hover:to-orange-500 rounded-lg transition-all flex items-center gap-1.5"
44+
title="Support the project"
45+
>
46+
<svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
47+
<path stroke-linecap="round" stroke-linejoin="round" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" />
48+
</svg>
49+
<span class="hidden sm:inline">Donate</span>
50+
<svg class="w-3 h-3 ml-0.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
51+
<path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7" />
52+
</svg>
53+
</button>
54+
<div class="donate-menu absolute right-0 mt-2 w-48 rounded-xl bg-black/90 backdrop-blur-xl border border-white/10 shadow-xl opacity-0 invisible transition-all duration-200 z-50">
55+
<div class="py-2">
56+
<a
57+
href="https://paypal.me/andreaprotani99"
58+
target="_blank"
59+
rel="noopener noreferrer"
60+
class="flex items-center gap-3 px-4 py-2.5 text-sm text-gray-300 hover:text-white hover:bg-white/10 transition-colors"
61+
>
62+
<svg class="w-5 h-5 text-[#00457C]" viewBox="0 0 24 24" fill="currentColor">
63+
<path d="M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944 3.72a.77.77 0 0 1 .757-.644h6.393c2.118 0 3.768.563 4.908 1.673 1.14 1.11 1.56 2.716 1.248 4.766-.046.296-.107.603-.187.918-.718 2.97-2.545 5.015-5.462 6.107-.88.33-1.857.495-2.916.495H7.828a.77.77 0 0 0-.752.644v4.258zm12.676-14.7c.007-.051.012-.102.018-.153-.006.05-.011.102-.018.153zm-.018.153a7.53 7.53 0 0 1-.049.333 7.664 7.664 0 0 0 .049-.333zM19.716 9.18c-.37 1.548-1.06 2.776-2.058 3.661-1.012.896-2.282 1.478-3.785 1.73-.481.082-.988.122-1.512.122H9.586a.77.77 0 0 0-.757.644l-.95 5.527a.641.641 0 0 1-.633.536h-2.81l-.06.348a.641.641 0 0 0 .633.74h3.367a.77.77 0 0 0 .757-.644l.927-5.382a.77.77 0 0 1 .757-.644h1.775c3.842 0 6.488-2.07 7.423-5.638.334-1.275.38-2.38.134-3.32-.067.11-.13.22-.206.32z"/>
64+
</svg>
65+
PayPal
66+
</a>
67+
<a
68+
href="https://buymeacoffee.com/prot10"
69+
target="_blank"
70+
rel="noopener noreferrer"
71+
class="flex items-center gap-3 px-4 py-2.5 text-sm text-gray-300 hover:text-white hover:bg-white/10 transition-colors"
72+
>
73+
<svg class="w-5 h-5 text-[#FFDD00]" viewBox="0 0 24 24" fill="currentColor">
74+
<path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364z"/>
75+
</svg>
76+
Buy Me a Coffee
77+
</a>
78+
</div>
79+
</div>
80+
</div>
5381

5482
<!-- Download Button -->
5583
<a

website/src/components/OpenSource.astro

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@
5252
Star on GitHub
5353
</a>
5454

55+
<!-- PayPal -->
56+
<a
57+
href="https://paypal.me/andreaprotani99"
58+
target="_blank"
59+
rel="noopener noreferrer"
60+
class="px-6 py-3 rounded-xl font-semibold bg-[#0070BA] hover:bg-[#005EA6] text-white transition-all duration-200 flex items-center gap-2"
61+
>
62+
<svg class="w-5 h-5" viewBox="0 0 24 24" fill="currentColor">
63+
<path d="M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944 3.72a.77.77 0 0 1 .757-.644h6.393c2.118 0 3.768.563 4.908 1.673 1.14 1.11 1.56 2.716 1.248 4.766-.046.296-.107.603-.187.918-.718 2.97-2.545 5.015-5.462 6.107-.88.33-1.857.495-2.916.495H7.828a.77.77 0 0 0-.752.644v4.258zm12.676-14.7c.007-.051.012-.102.018-.153-.006.05-.011.102-.018.153zm-.018.153a7.53 7.53 0 0 1-.049.333 7.664 7.664 0 0 0 .049-.333zM19.716 9.18c-.37 1.548-1.06 2.776-2.058 3.661-1.012.896-2.282 1.478-3.785 1.73-.481.082-.988.122-1.512.122H9.586a.77.77 0 0 0-.757.644l-.95 5.527a.641.641 0 0 1-.633.536h-2.81l-.06.348a.641.641 0 0 0 .633.74h3.367a.77.77 0 0 0 .757-.644l.927-5.382a.77.77 0 0 1 .757-.644h1.775c3.842 0 6.488-2.07 7.423-5.638.334-1.275.38-2.38.134-3.32-.067.11-.13.22-.206.32z"/>
64+
</svg>
65+
PayPal
66+
</a>
67+
5568
<!-- Buy Me a Coffee -->
5669
<a
5770
href="https://buymeacoffee.com/prot10"

website/src/styles/global.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,9 @@
157157
::-webkit-scrollbar-thumb:hover {
158158
@apply bg-white/30;
159159
}
160+
161+
/* Donate dropdown */
162+
.donate-dropdown:hover .donate-menu,
163+
.donate-dropdown:focus-within .donate-menu {
164+
@apply opacity-100 visible;
165+
}

0 commit comments

Comments
 (0)