Skip to content

Commit

Permalink
fix: badge/front mode=print
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Sep 23, 2024
1 parent 95835c0 commit f253e19
Showing 1 changed file with 34 additions and 27 deletions.
61 changes: 34 additions & 27 deletions src/pages/badge/front.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import BadgeLayout from "~/layouts/BadgeLayout.astro";
import BodyArea from "~/components/BodyArea.astro";
const name = Astro.url.searchParams.get("name");
const mode = Astro.url.searchParams.get("mode");
const role = Astro.url.searchParams.get("role");
---

Expand All @@ -21,32 +22,38 @@ const role = Astro.url.searchParams.get("role");
</Heading>
</BodyArea>
<div slot="footer">
<SquiggleFlanked class="role" width="lean">{role}</SquiggleFlanked>
<SquiggleFlanked class="role" width="lean">
<span class={`mode-${mode}`}>{role}</span>
</SquiggleFlanked>
</div>
</BadgeLayout>

<style>
.badge-front-body-area {
height: 36rem;
margin-top: 3rem;
}

.name {
color: var(--colorForeground);
display: flex;
flex-direction: column;
font-size: 5.5rem;
gap: 1rem;
text-shadow: 0 0 3px var(--colorOffWhite);
width: 100%;
}

.role {
color: var(--colorBlueLight);
font-family: var(--fontFamilyHeading);
font-weight: var(--fontWeightBold);
font-size: 2.5rem;
position: relative;
padding-bottom: 1.5rem;
}
</style>
<style>
.badge-front-body-area {
height: 36rem;
margin-top: 3rem;
}

.name {
color: var(--colorForeground);
display: flex;
flex-direction: column;
font-size: 5.5rem;
gap: 1rem;
text-shadow: 0 0 3px var(--colorOffWhite);
width: 100%;
}

.role {
color: var(--colorBlueLight);
font-family: var(--fontFamilyHeading);
font-weight: var(--fontWeightBold);
font-size: 2.5rem;
position: relative;
padding-bottom: 1.5rem;
}

.role .mode-print {
color: transparent;
}
</style>
</BadgeLayout>

0 comments on commit f253e19

Please sign in to comment.