File tree Expand file tree Collapse file tree
src/components/BuyMeACoffee Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,15 +3,25 @@ import styles from './styles.module.css';
33
44export default function BuyMeACoffee ( ) : JSX . Element {
55 return (
6- < div className = { styles . coffeeContainer } >
6+ < div className = { styles . supportContainer } >
77 < a
88 href = "https://www.buymeacoffee.com/brewkits"
99 target = "_blank"
1010 rel = "noopener noreferrer"
1111 className = { styles . coffeeButton }
1212 >
1313 < span className = { styles . coffeeIcon } > ☕</ span >
14- < span className = { styles . coffeeText } > Buy Me a Coffee</ span >
14+ < span className = { styles . buttonText } > Buy Me a Coffee</ span >
15+ </ a >
16+
17+ < a
18+ href = "https://www.patreon.com/brewkits"
19+ target = "_blank"
20+ rel = "noopener noreferrer"
21+ className = { styles . patreonButton }
22+ >
23+ < span className = { styles . patreonIcon } > 🎨</ span >
24+ < span className = { styles . buttonText } > Support on Patreon</ span >
1525 </ a >
1626 </ div >
1727 ) ;
Original file line number Diff line number Diff line change 1- .coffeeContainer {
1+ .supportContainer {
22 display : flex;
33 justify-content : center;
44 align-items : center;
5+ gap : 1rem ;
56 padding : 2rem 0 ;
7+ flex-wrap : wrap;
68}
79
8- .coffeeButton {
10+ /* Common button styles */
11+ .coffeeButton ,
12+ .patreonButton {
913 display : inline-flex;
1014 align-items : center;
1115 gap : 0.5rem ;
1216 padding : 0.75rem 1.5rem ;
13- background : linear-gradient (135deg , # FFDD00 0% , # FBB034 100% );
14- color : # 000 ;
1517 border-radius : 8px ;
1618 text-decoration : none;
1719 font-weight : 600 ;
2022 box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.1 );
2123}
2224
25+ /* Buy Me a Coffee styling */
26+ .coffeeButton {
27+ background : linear-gradient (135deg , # FFDD00 0% , # FBB034 100% );
28+ color : # 000 ;
29+ }
30+
2331.coffeeButton : hover {
2432 transform : translateY (-2px );
2533 box-shadow : 0 6px 12px rgba (0 , 0 , 0 , 0.15 );
2634 text-decoration : none;
2735 color : # 000 ;
2836}
2937
38+ /* Patreon styling */
39+ .patreonButton {
40+ background : linear-gradient (135deg , # FF424D 0% , # FF5B61 100% );
41+ color : # fff ;
42+ }
43+
44+ .patreonButton : hover {
45+ transform : translateY (-2px );
46+ box-shadow : 0 6px 12px rgba (255 , 66 , 77 , 0.3 );
47+ text-decoration : none;
48+ color : # fff ;
49+ }
50+
3051.coffeeIcon {
3152 font-size : 1.25rem ;
3253 animation : steam 2s ease-in-out infinite;
3354}
3455
35- .coffeeText {
56+ .patreonIcon {
57+ font-size : 1.25rem ;
58+ animation : pulse 2s ease-in-out infinite;
59+ }
60+
61+ .buttonText {
3662 letter-spacing : 0.025em ;
3763}
3864
4571 }
4672}
4773
74+ @keyframes pulse {
75+ 0% , 100% {
76+ transform : scale (1 );
77+ }
78+ 50% {
79+ transform : scale (1.1 );
80+ }
81+ }
82+
4883@media (max-width : 768px ) {
49- .coffeeButton {
84+ .supportContainer {
85+ flex-direction : column;
86+ gap : 0.75rem ;
87+ }
88+
89+ .coffeeButton ,
90+ .patreonButton {
5091 padding : 0.625rem 1.25rem ;
5192 font-size : 0.9rem ;
93+ width : 100% ;
94+ max-width : 250px ;
95+ justify-content : center;
5296 }
5397}
You can’t perform that action at this time.
0 commit comments