Skip to content

Commit

Permalink
Improve badge wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Aug 16, 2024
1 parent 3580b90 commit f20d3fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/_includes/main/badges.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<div class="widgets home__badges">
<a href="https://validator.w3.org/feed/check.cgi?url=https%3A//helenchong.dev/blog/feed.xml"><img src="/assets/icons/badges/valid-atom.png" alt="Valid Atom 1.0" width="88" height="31" loading="lazy"></a>
<a href="https://ko-fi.com/s/798b83fbcc"><img src="/assets/icons/badges/coffee-powered.png" alt="Coffee powered" width="88" height="31" loading="lazy"></a>
<div id="wcb" class="carbonbadge">
<noscript>
<p>Looks like you have JavaScript disabled. JavaScript is required to display the <a href="https://www.websitecarbon.com/badge/">Website Carbon badge</a>.</p>
</noscript>
</div>
</div>
<div id="wcb" class="carbonbadge">
<noscript>
<p>Looks like you have JavaScript disabled. JavaScript is required to display the <a href="https://www.websitecarbon.com/badge/">Website Carbon badge</a>.</p>
</noscript>
</div>
<script src="https://unpkg.com/[email protected]/b.min.js" defer></script>
</section>
Expand Down
8 changes: 6 additions & 2 deletions src/assets/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@
gap: 2em;
margin-top: 1.5em;
}

.webrings h3 { font-size: 1.5rem; }
.home__badges { gap: 0.5em; }

.home__badges {
--badge-gap: 0.5em;
gap: var(--badge-gap);
margin-bottom: var(--badge-gap);
}

0 comments on commit f20d3fd

Please sign in to comment.