Compare commits
2 Commits
7489f89ede
...
1a941c6626
Author | SHA1 | Date |
---|---|---|
TEC | 1a941c6626 | |
TEC | 98a1cd0ba5 |
|
@ -182,7 +182,15 @@ function submit(forminfo::Dict; backpage::Bool=false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
const DONATION_INDIVIDUALS = [
|
const DONATION_ENTITIES = [
|
||||||
|
("https://my.fsf.org/donate",
|
||||||
|
"The Free Software Foundation",
|
||||||
|
"https://www.fsf.org/",
|
||||||
|
"principle organisational sponsor of the GNU project"),
|
||||||
|
("https://liberapay.com/org-mode/",
|
||||||
|
"The Org Project",
|
||||||
|
"https://orgmode.org",
|
||||||
|
["org-mode" => "https://orgmode.org"]),
|
||||||
("https://liberapay.com/hlissner/",
|
("https://liberapay.com/hlissner/",
|
||||||
"Henrik Lissner", "hlissner",
|
"Henrik Lissner", "hlissner",
|
||||||
["Doom Emacs" => "doomemacs/doomemacs", "assorted packages"]),
|
["Doom Emacs" => "doomemacs/doomemacs", "assorted packages"]),
|
||||||
|
@ -217,20 +225,7 @@ const DONATION_INDIVIDUALS = [
|
||||||
["this survey", "a few other things"])
|
["this survey", "a few other things"])
|
||||||
]
|
]
|
||||||
|
|
||||||
function donationlinks()
|
donationlinks() = donate_spec_to_link.(shuffle(DONATION_ENTITIES))
|
||||||
donate_org = ("https://liberapay.com/org-mode/",
|
|
||||||
"The Org Project",
|
|
||||||
"https://orgmode.org",
|
|
||||||
["org-mode" => "https://orgmode.org"])
|
|
||||||
donate_fsf = ("https://my.fsf.org/donate",
|
|
||||||
"The Free Software Foundation",
|
|
||||||
"https://www.fsf.org/",
|
|
||||||
["an assortment of projects"])
|
|
||||||
donate_specs = vcat(donate_org,
|
|
||||||
shuffle(DONATION_INDIVIDUALS),
|
|
||||||
donate_fsf)
|
|
||||||
donate_spec_to_link.(donate_specs)
|
|
||||||
end
|
|
||||||
|
|
||||||
function donate_spec_to_link((link, name, site, projects))
|
function donate_spec_to_link((link, name, site, projects))
|
||||||
string("<li><a href=\"$link\"><b>Donate to</b></a> ",
|
string("<li><a href=\"$link\"><b>Donate to</b></a> ",
|
||||||
|
@ -246,26 +241,30 @@ function donate_spec_to_link((link, name, site, projects))
|
||||||
style=\"color: var(--secondary)\" \
|
style=\"color: var(--secondary)\" \
|
||||||
title=\"GitHub profile\">@$site</a>"
|
title=\"GitHub profile\">@$site</a>"
|
||||||
end,
|
end,
|
||||||
" (responsible for ",
|
if projects isa String
|
||||||
join(map(projects) do proj
|
" ($projects)"
|
||||||
if proj isa String
|
else
|
||||||
proj
|
" (responsible for ",
|
||||||
elseif proj isa Pair{String,String}
|
join(map(projects) do proj
|
||||||
string("<a href=\"",
|
if proj isa string
|
||||||
if occursin("http", proj[2])
|
proj
|
||||||
proj[2]
|
elseif proj isa pair{string,string}
|
||||||
elseif occursin("/", proj[2])
|
string("<a href=\"",
|
||||||
"https://github.com/$(proj[2])"
|
if occursin("http", proj[2])
|
||||||
elseif !isnothing(site)
|
proj[2]
|
||||||
"https://github.com/$site/$(proj[2])"
|
elseif occursin("/", proj[2])
|
||||||
end,
|
"https://github.com/$(proj[2])"
|
||||||
"\" target=\"_blank\" title=\"Project page\" \
|
elseif !isnothing(site)
|
||||||
style=\"color: var(--h1-color)\">",
|
"https://github.com/$site/$(proj[2])"
|
||||||
proj[1], "</a>")
|
end,
|
||||||
else
|
"\" target=\"_blank\" title=\"project page\" \
|
||||||
""
|
style=\"color: var(--h1-color)\">",
|
||||||
end
|
proj[1], "</a>")
|
||||||
end, ", ", ", and "),
|
else
|
||||||
|
""
|
||||||
|
end
|
||||||
|
end, ", ", ", and ")
|
||||||
|
end,
|
||||||
")</li>")
|
")</li>")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
the work they do and helps people find and justify the time they spend
|
the work they do and helps people find and justify the time they spend
|
||||||
improving the state of Emacs' ecosystem.</p>
|
improving the state of Emacs' ecosystem.</p>
|
||||||
<p>Should this sound like something you would be interested in, here
|
<p>Should this sound like something you would be interested in, here
|
||||||
is a small selection of donation links that may be of interest.</p>
|
is a small (randomly ordered) selection of donation links that may be of
|
||||||
|
interest.</p>
|
||||||
<ul>
|
<ul>
|
||||||
$(join(donateitems, '\n'))
|
$(join(donateitems, '\n'))
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -150,9 +150,9 @@ kbd {
|
||||||
--h6-color: #4d606d;
|
--h6-color: #4d606d;
|
||||||
--muted-color: #73828c;
|
--muted-color: #73828c;
|
||||||
--muted-border-color: #edf0f3;
|
--muted-border-color: #edf0f3;
|
||||||
--primary: #622486;
|
--primary: #624195;
|
||||||
--primary-hover: #3E0C5C;
|
--primary-hover: #4f3774;
|
||||||
--primary-focus: rgba(98, 36, 134, 0.125);
|
--primary-focus: rgba(98, 65, 149, 0.125);
|
||||||
--primary-inverse: #fff;
|
--primary-inverse: #fff;
|
||||||
--secondary: #596b78;
|
--secondary: #596b78;
|
||||||
--secondary-hover: #415462;
|
--secondary-hover: #415462;
|
||||||
|
@ -239,9 +239,9 @@ kbd {
|
||||||
--h6-color: #aebbc3;
|
--h6-color: #aebbc3;
|
||||||
--muted-color: #73828c;
|
--muted-color: #73828c;
|
||||||
--muted-border-color: #1f2d38;
|
--muted-border-color: #1f2d38;
|
||||||
--primary: #622486;
|
--primary: #624195;
|
||||||
--primary-hover: #7F5AB6;
|
--primary-hover: #7F5AB6;
|
||||||
--primary-focus: rgba(98, 36, 134, 0.25);
|
--primary-focus: rgba(98, 65, 149, 0.25);
|
||||||
--primary-inverse: #fff;
|
--primary-inverse: #fff;
|
||||||
--secondary: #596b78;
|
--secondary: #596b78;
|
||||||
--secondary-hover: #73828c;
|
--secondary-hover: #73828c;
|
||||||
|
@ -328,9 +328,9 @@ kbd {
|
||||||
--h6-color: #aebbc3;
|
--h6-color: #aebbc3;
|
||||||
--muted-color: #73828c;
|
--muted-color: #73828c;
|
||||||
--muted-border-color: #1f2d38;
|
--muted-border-color: #1f2d38;
|
||||||
--primary: #622486;
|
--primary: #624195;
|
||||||
--primary-hover: #7F5AB6;
|
--primary-hover: #7F5AB6;
|
||||||
--primary-focus: rgba(98, 36, 134, 0.25);
|
--primary-focus: rgba(98, 65, 149, 0.25);
|
||||||
--primary-inverse: #fff;
|
--primary-inverse: #fff;
|
||||||
--secondary: #596b78;
|
--secondary: #596b78;
|
||||||
--secondary-hover: #73828c;
|
--secondary-hover: #73828c;
|
||||||
|
|
|
@ -9,8 +9,8 @@ $enable-classes: true;
|
||||||
|
|
||||||
// Custom theme
|
// Custom theme
|
||||||
$primary-500: #7F5AB6;
|
$primary-500: #7F5AB6;
|
||||||
$primary-600: #622486;
|
$primary-600: #624195;
|
||||||
$primary-700: #3E0C5C;
|
$primary-700: #4f3774;
|
||||||
|
|
||||||
// Pico Lib
|
// Pico Lib
|
||||||
// --------------------
|
// --------------------
|
||||||
|
|
Loading…
Reference in New Issue