Browse Source

Move donation button to footer

pull/433/head
Garrit Franke 4 months ago
parent
commit
c4a8ccd9dc
No known key found for this signature in database
GPG Key ID: A28BC0D6B31A2673
  1. 5
      components/Footer.js
  2. 2
      pages/index.tsx
  3. 7
      pages/posts/[post].tsx

5
components/Footer.js

@ -27,6 +27,11 @@ export default function Footer() {
<br />
<a href="/contact">Contact</a>
</div>
<a href="https://www.buymeacoffee.com/garrit" target="_blank">
<img src="https://img.buymeacoffee.com/button-api/?text=Buy me a tea&emoji=&slug=garrit&button_colour=FFB300&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff" />
</a>
<p>
👻 Proud member of <a target="_blank" href="https://darktheme.club/">darktheme.club</a>{" "}
👻

2
pages/index.tsx

@ -14,7 +14,7 @@ const Index = (props) => {
!SSR && window.matchMedia("(prefers-reduced-motion: reduce)");
const prefersReducedMotion = !mediaQuery || mediaQuery.matches;
const isWinter = new Date().getMonth() > 10 || new Date().getMonth() < 1;
const isWinter = new Date().getMonth() >= 11;
const buildSnow = () => {
return (

7
pages/posts/[post].tsx

@ -41,7 +41,6 @@ export default function BlogTemplate(props) {
}
>
<Markdown>{props.post.markdownBody}</Markdown>
<hr />
<p className="horizontal-list">
<button
onClick={() =>
@ -74,13 +73,7 @@ export default function BlogTemplate(props) {
Fix Typo
</button>
</p>
<a href="https://www.buymeacoffee.com/garrit" target="_blank">
<img src="https://img.buymeacoffee.com/button-api/?text=Buy me a tea&emoji=&slug=garrit&button_colour=FFB300&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff" />
</a>
<hr />
<h2>Continue Reading</h2>
<BlogList posts={props.recommendedPosts} />
</Page>

Loading…
Cancel
Save