Skip to content

Commit

Permalink
Add Buy Me A Coffee button
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Sep 12, 2024
1 parent d6a900a commit 2c42a7c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore

# My source files

__Source

# Eleventy site output folder

_site/
Expand Down
2 changes: 2 additions & 0 deletions src/_includes/global/footer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<img src="/assets/icons/helenchong-200x40.png" alt="Helen Chong's 200×40 website button" width="200" height="40">
</div>

<div class="widgets"><a href="https://buymeacoffee.com/helenchong"><img src="/assets/icons/buymeacoffee.png" alt="Buy Me a Coffee" width="200" height="59"></a></div>

{% include "global/socials.njk" %}

<p>Built with &#x2661; by {{ sitemeta.siteAuthor.name }}. 2023–{% currentYear %}.</p>
Expand Down
10 changes: 9 additions & 1 deletion src/assets/css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@
padding-left: 0.5em;
}

/* Web widgets */
.widgets {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
* + .widgets { margin-top: var(--sz-list-gap); }

/* Site buttons */
.site-btns {
align-items: center;
gap: 0.5em;
gap: var(--sz-list-gap);
}

/* Breadcumbs */
Expand Down
6 changes: 0 additions & 6 deletions src/assets/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,6 @@
}

/* Webrings and Badges */
.widgets {
display: flex;
flex-wrap: wrap;
justify-content: center;
}

.widgets.webrings {
gap: 2em;
margin-top: 1.5em;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/socials.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
grid-area: scial;
display: grid;
place-content: center;
margin-top: 0.7em;
}
* + .socials { margin-top: 0.7em; }

.socials__links {
list-style-type: "";
Expand Down
Binary file added src/assets/icons/buymeacoffee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2c42a7c

Please sign in to comment.