-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from opensourcepledge/vladh/add-total-tally
Add total tally
- Loading branch information
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
// © 2024 Vlad-Stefan Harbuz <[email protected]> | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { | ||
getGrandTotalRaised, fmtCurrency, | ||
} from '../memberFormatting.ts'; | ||
--- | ||
|
||
<div class="total-tally"> | ||
<p>Our members have paid maintainers</p> | ||
<h2>{fmtCurrency(await getGrandTotalRaised())}</h2> | ||
<p>over the last year.</p> | ||
</div> | ||
|
||
<style> | ||
.total-tally { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
margin: 2rem 0; | ||
padding: 1rem; | ||
p { | ||
margin: 0; | ||
} | ||
h2 + p { | ||
margin-top: 0.5rem; | ||
} | ||
h2 { | ||
max-width: 100%; | ||
margin: 0; | ||
font-size: min(3rem, 10vw); | ||
text-decoration: underline; | ||
text-decoration-thickness: 0.5rem; | ||
text-decoration-color: var(--color-primary); | ||
text-underline-offset: 0.4rem; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters