1
0
mirror of https://github.com/privacyguides/privacyguides.org.git synced 2025-07-02 01:32:41 +00:00

feat!: Add list of monthly/annual members to website (#2927)

Signed-off-by: blacklight447 <niek@privacyguides.org>
Signed-off-by: Daniel Gray <dngray@privacyguides.org>
Signed-off-by: Freddy <freddy@privacyguides.org>
This commit is contained in:
2025-03-05 19:00:27 -06:00
parent c2cfb0fce6
commit 1c8afe6a15
15 changed files with 304 additions and 62 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -527,3 +527,75 @@ path[d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-
list-style-type: disc;
padding-inline-start: 1em;
}
/* Donations */
.md-typeset .mdx-specialthanks p {
margin:2em 0;
text-align:center
}
.md-typeset .mdx-specialthanks img {
height:3.25rem
}
.md-typeset .mdx-specialthanks p:last-child {
display:flex;
flex-wrap:wrap;
justify-content:center
}
.md-typeset .mdx-specialthanks p:last-child>a {
display:block;
flex-shrink:0
}
.md-typeset .mdx-donors__list {
margin:2em 0
}
.md-typeset .mdx-donors__list:after {
clear:both;
content:"";
display:block
}
[dir=ltr] .md-typeset .mdx-donors__item {
float:left
}
[dir=rtl] .md-typeset .mdx-donors__item {
float:right
}
.md-typeset .mdx-donors__item {
border-radius:100%;
display:block;
height:3rem;
margin:.2rem;
overflow:hidden;
transform:scale(1);
transition:color 125ms,transform 125ms;
width:3rem
}
.md-typeset .mdx-donors__item:focus,
.md-typeset .mdx-donors__item:hover {
transform:scale(1.1)
}
.md-typeset .mdx-donors__item:focus img,
.md-typeset .mdx-donors__item:hover img {
filter:grayscale(0)
}
.md-typeset .mdx-donors__item--private {
background:var(--md-default-fg-color--lightest);
color:var(--md-default-fg-color--lighter);
font-size:.8rem;
font-weight:700;
line-height:2.9rem;
text-align:center
}
.md-typeset .mdx-donors__item img {
display:block;
filter:grayscale(100%) opacity(75%);
height:auto;
transition:filter 125ms;
width:100%
}
.md-typeset .mdx-donors-button {
font-weight:400
}
.md-typeset .mdx-donors-count,
.md-typeset .mdx-donors-total {
font-weight:700
}

View File

@ -92,23 +92,3 @@
</script>
{% endif %}
{% endblock %}
{% if config.theme.language == "en" and config.extra.context == "production" %}
{% block announce %}
<span>
<strong>We don't run ads, we don't use affiliate links, and we don't have paywalls.</strong> We rely on our readers to build this community and spread the word.<br>
If you've received $3 worth of knowledge here, please donate today if you're able to. It really helps.
<a href="https://donate.magicgrants.org/privacyguides" target="_blank">
<span class="twemoji pg-red">
{% include ".icons/material/heart.svg" %}
</span>
<span class="pg-red">
Donate now
</span>
<span class="twemoji pg-red">
{% include ".icons/material/arrow-right.svg" %}
</span>
</a>
</span>
{% endblock %}
{% endif %}

View File

@ -0,0 +1,8 @@
<div class="md-header__option">
<div class="">
{% set icon = "material/heart" %}
<a href="/en/about/donate/" class="md-header__button md-icon pg-red" title="Donate">
{% include ".icons/" ~ icon ~ ".svg" %}
</a>
</div>
</div>

View File

@ -136,6 +136,8 @@
{% if not config.theme.palette is mapping %}
{% include "partials/javascripts/palette.html" %}
{% endif %}
{% include "partials/donate.html" %}
</nav>
<!-- Navigation tabs (sticky) -->