mirror of
https://github.com/aelve/guide.git
synced 2024-11-27 10:10:50 +03:00
Move the donations page to a file in static/
This commit is contained in:
parent
84454d2666
commit
f1cdd51536
43
src/View.hs
43
src/View.hs
@ -54,7 +54,6 @@ import Data.Text (Text)
|
|||||||
import NeatInterpolation
|
import NeatInterpolation
|
||||||
-- Web
|
-- Web
|
||||||
import Lucid hiding (for_)
|
import Lucid hiding (for_)
|
||||||
import Lucid.Base (makeAttribute)
|
|
||||||
|
|
||||||
-- Local
|
-- Local
|
||||||
import Types
|
import Types
|
||||||
@ -186,46 +185,8 @@ renderDonate = doctypehtml_ $ do
|
|||||||
includeCSS "/css.css"
|
includeCSS "/css.css"
|
||||||
renderTracking
|
renderTracking
|
||||||
|
|
||||||
-- TODO: move this into its own file in static/?
|
body_ $
|
||||||
body_ $ do
|
toHtmlRaw =<< liftIO (readFile "static/donate.html")
|
||||||
toHtml $ renderMarkdownBlock [text|
|
|
||||||
Okay, the rules: if you donate *anything*, I'll spend some time working
|
|
||||||
on the site this day (adding content, implementing new features, etc).
|
|
||||||
|
|
||||||
(Of course, I'm planning to be working on the site anyway, donations
|
|
||||||
or not! However, I jump from project to project way too often (and
|
|
||||||
rarely manage to finish anything), so donating money is a good way to
|
|
||||||
make sure that I'd feel obligated to keep working on this one. If I
|
|
||||||
find out that it doesn't work as a motivation, I'll stop accepting
|
|
||||||
donations.)
|
|
||||||
|
|
||||||
Just in case, 1000 rub. is 14$ (or 12.5€), and you can choose any
|
|
||||||
amount below 15000 rub. (I'd put a Paypal button, but Paypal doesn't
|
|
||||||
allow receiving money in Belarus.)
|
|
||||||
|]
|
|
||||||
style_ [text|
|
|
||||||
#iframe-hold {
|
|
||||||
background: url(loading.svg) center center no-repeat; }
|
|
||||||
|]
|
|
||||||
div_ [id_ "iframe-hold"] $
|
|
||||||
iframe_ [
|
|
||||||
makeAttribute "frameborder" "0",
|
|
||||||
makeAttribute "allowtransparency" "true",
|
|
||||||
makeAttribute "scrolling" "no",
|
|
||||||
width_ "450",
|
|
||||||
height_ "197",
|
|
||||||
style_ "display:block;margin:auto;",
|
|
||||||
src_ "https://money.yandex.ru/embed/shop.xml\
|
|
||||||
\?account=410011616040682\
|
|
||||||
\&quickpay=shop\
|
|
||||||
\&payment-type-choice=on\
|
|
||||||
\&mobile-payment-type-choice=on\
|
|
||||||
\&writer=seller\
|
|
||||||
\&targets=Haskell+guide\
|
|
||||||
\&targets-hint=\
|
|
||||||
\&default-sum=1000\
|
|
||||||
\&button-text=04\
|
|
||||||
\&successURL=" ] ""
|
|
||||||
|
|
||||||
-- TODO: allow archiving items if they are in every way worse than the rest,
|
-- TODO: allow archiving items if they are in every way worse than the rest,
|
||||||
-- or something (but searching should still be possible)
|
-- or something (but searching should still be possible)
|
||||||
|
12
static/donate.html
Normal file
12
static/donate.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<p>Okay, the rules: if you donate <i>anything</i>, I'll spend some time working on the site this day (adding content, implementing new features, etc). Of course, I'm planning to be working on the site anyway, donations or not! However, I jump from project to project way too often (and rarely manage to finish anything), so donating money is a good way to make sure that I'd feel obligated to keep working on this one. If I find out that it doesn't work as a motivation, I'll stop accepting donations.</p>
|
||||||
|
|
||||||
|
<p>Just in case, 1000 rub. is 14$ (or 12.5€), and you can choose any amount below 15000 rub. (I'd put a Paypal button, but Paypal doesn't allow receiving money in Belarus.)</p>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#iframe-hold {
|
||||||
|
background: url(loading.svg) center center no-repeat; }
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div id="iframe-hold">
|
||||||
|
<iframe frameborder="0" allowtransparency="true" scrolling="no" width="450" height="197" style="display:block;margin:auto;" src="https://money.yandex.ru/embed/shop.xml?account=410011616040682&quickpay=shop&payment-type-choice=on&mobile-payment-type-choice=on&writer=seller&targets=Haskell+guide&targets-hint=&default-sum=1000&button-text=04&successURL="></iframe>
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user