@@ -122,7 +122,7 @@ export const DisplaySocial = props => {
122122
123123export const SocialPreview = props => {
124124 let viewSocial = false
125- const icon_base_url =
125+ const icon_base_url =
126126 "https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/" ;
127127 Object . keys ( props . social ) . forEach ( key => {
128128 if ( props . social [ key ] && key != "github" ) viewSocial = true
@@ -153,7 +153,7 @@ export const SocialPreview = props => {
153153 </ >
154154 < >
155155 < DisplaySocial
156- base = "https://linkedin.com/in"
156+ base = "https://linkedin.com/in"
157157 icon = { icon_base_url + "linked-in-alt.svg" }
158158 username = { props . social . linkedin }
159159 />
@@ -413,24 +413,36 @@ export const SupportPreview = props => {
413413 viewSupport = true
414414 }
415415 } )
416- return (
417- < div className = "mb-4 " >
416+ return props . support . buyMeACoffee || props . support . buyMeAKofi ? (
417+ < div className = "flex flex-wrap justify-start items-center " >
418418 < SectionTitle label = "Support:" visible = { viewSupport } />
419419 { props . support . buyMeACoffee && (
420- < div style = { { width : "210px" } } >
421- < a
422- href = { `https://www.buymeacoffee.com/` + props . support . buyMeACoffee }
423- target = "_blank"
424- >
425- < img
426- src = "https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"
427- alt = "Buy Me A Coffee"
428- className = "w-36 h-8 sm:w-52 sm:h-12"
429- />
430- </ a >
431- </ div >
420+ < a
421+ href = { `https://www.buymeacoffee.com/` + props . support . buyMeACoffee }
422+ target = "_blank"
423+ >
424+ < img
425+ src = "https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"
426+ alt = "Buy Me A Coffee"
427+ className = "mb-4 mr-4 w-36 h-8 sm:w-52 sm:h-12"
428+ />
429+ </ a >
430+ ) }
431+ { props . support . buyMeAKofi && (
432+ < a
433+ href = { `https://ko-fi.com/` + props . support . buyMeAKofi }
434+ target = "_blank"
435+ >
436+ < img
437+ src = "https://cdn.ko-fi.com/cdn/kofi3.png?v=3"
438+ alt = "Buy Me A Ko-fi"
439+ className = "mb-4 mr-4 w-36 h-8 sm:w-52 sm:h-12"
440+ />
441+ </ a >
432442 ) }
433443 </ div >
444+ ) : (
445+ ""
434446 )
435447}
436448
0 commit comments