diff options
author | Yorhel <git@yorhel.nl> | 2019-11-28 10:20:08 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-12-09 10:42:57 +0100 |
commit | fa7b9e6a14a1597516738a75b6dfb9d326be7d48 (patch) | |
tree | ba2d1464da532660bc862fa5239e73f9610bd06c | |
parent | 6e213e9274014bebf22e2e206467df091810ea6b (diff) |
Add SubscribeStar button
-rw-r--r-- | data/style.css | 7 | ||||
-rw-r--r-- | elm/User/Edit.elm | 2 | ||||
-rw-r--r-- | lib/VNWeb/HTML.pm | 9 | ||||
-rw-r--r-- | static/f/subscribestar.png | bin | 0 -> 2900 bytes |
4 files changed, 13 insertions, 5 deletions
diff --git a/data/style.css b/data/style.css index 6ab68d21..ebe5ae08 100644 --- a/data/style.css +++ b/data/style.css @@ -237,8 +237,11 @@ fieldset.submit .textpreview { margin: 0 auto } #menulist .logout { border: 0; background: none; color: $maintext$; cursor: pointer } #menulist .logout:hover { text-decoration: underline } -#patreon { opacity: 0.6; border-bottom: none!important } -#patreon:hover { opacity: 1 } +#support { line-height: 0; height: 41px } +#support img { height: 19px; object-fit: none } +#support a { opacity: 0.7; border-bottom: none!important; display: inline-block } +#support a:hover { opacity: 1 } +#support a:hover img { position: absolute; left: 0; top: 0; height: 38px; z-index: 99 } diff --git a/elm/User/Edit.elm b/elm/User/Edit.elm index df1647e4..47d7d1cb 100644 --- a/elm/User/Edit.elm +++ b/elm/User/Edit.elm @@ -163,7 +163,7 @@ view model = supportform = [ tr [ class "newpart" ] [ td [ colspan 2 ] [ text "Supporter optionsā" ] ] , if not data.nodistract_can && not data.authmod then text "" - else formField "" [ label [] [ inputCheck "" data.nodistract_noads (Set << NoAds), text " Disable advertising and other distractions (only hides the Patreon icon for the moment)" ] ] + else formField "" [ label [] [ inputCheck "" data.nodistract_noads (Set << NoAds), text " Disable advertising and other distractions (only hides the support icons for the moment)" ] ] , if not data.nodistract_can && not data.authmod then text "" else formField "" [ label [] [ inputCheck "" data.nodistract_nofancy (Set << NoFancy), text " Disable supporters badges, custom display names and profile skins" ] ] , if not data.support_can && not data.authmod then text "" diff --git a/lib/VNWeb/HTML.pm b/lib/VNWeb/HTML.pm index 11bfd7f8..0492fc7d 100644 --- a/lib/VNWeb/HTML.pm +++ b/lib/VNWeb/HTML.pm @@ -181,8 +181,13 @@ sub _head_ { sub _menu_ { my $o = shift; - a_ href => 'https://www.patreon.com/vndb', id => 'patreon', sub { - img_ src => config->{url_static}.'/f/patreon.png', alt => 'Support VNDB on Patreon', width => 160, height => 38; + div_ id => 'support', sub { + a_ href => 'https://www.patreon.com/vndb', id => 'patreon', sub { + img_ src => config->{url_static}.'/f/patreon.png', alt => 'Support VNDB on Patreon', width => 160, height => 38; + }; + a_ href => 'https://www.subscribestar.com/vndb', id => 'subscribestar', sub { + img_ src => config->{url_static}.'/f/subscribestar.png', alt => 'Support VNDB on SubscribeStar', width => 160, height => 38; + }; } if !(auth->pref('nodistract_can') && auth->pref('nodistract_noads')); div_ class => 'menubox', sub { diff --git a/static/f/subscribestar.png b/static/f/subscribestar.png Binary files differnew file mode 100644 index 00000000..516b7c78 --- /dev/null +++ b/static/f/subscribestar.png |