Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replaced default footer with carbon badge footer #8

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
feat: left align badge left
TrymVei committed Oct 10, 2024
commit fafd740f180a030ff7417eb31b9c827f6fe4d5b0
19 changes: 9 additions & 10 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
---
import Default from '@astrojs/starlight/components/Footer.astro';
import type { Props } from '@astrojs/starlight/props';
import Default from "@astrojs/starlight/components/Footer.astro";
import type { Props } from "@astrojs/starlight/props";
---

<Default {...Astro.props}>
<slot />
</Default>

<div class="badge">
<div id="wcb" class="carbonbadge"></div>
<script is:inline src="https://unpkg.com/[email protected]/b.min.js" defer></script>
</div>

<div id="wcb" class="carbonbadge"></div>
<script
is:inline
src="https://unpkg.com/[email protected]/b.min.js"
defer></script>

<style>
.bagde {
.carbonbadge {
display: flex;
justify-self: center;
justify-self: start;
}
</style>