fix(donate): more relevant donate view, display also patreon donate :)

This commit is contained in:
Alexey Kasyanchuk 2018-04-30 13:05:16 +03:00
parent 61d35e03fb
commit f3e5edf6ec
3 changed files with 84 additions and 2 deletions

View File

@ -3,10 +3,78 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Support Torrent Search</title> <title>Support Torrent Search</title>
<style>
html, body {
height: 100%;
}
html {
display: table;
margin: auto;
}
body {
background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#cbccc8)) fixed;
display: table-cell;
vertical-align: middle;
color: #939393;
font-size: 1.5em;
text-shadow: 1px 1px 2px #c6c6c6, 0 0 0.2em #e2e2e2;
overflow: hidden;
}
svg {
position: absolute;
width: 100%;
top: 0;
left: 0;
z-index: -1;
opacity: 0.5;
max-height: 120%;
}
#one {
padding: 20px;
}
.widget {
background-color: #fff;
padding: 20px;
margin: 2px 3px 4px;
width: 444px;
box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 3px 4px -3px rgba(0,0,0,.3);
box-sizing: border-box;
}
.patreon a {
color: black;
text-decoration: none;
}
</style>
</head> </head>
<body> <body>
<svg fill='white' viewBox='0 0 264.725 264.725'><path d="M220.195,71.427c-0.589-7.654-9.135-15.619-17.979-16.209c-8.844-0.584-17.398,0.301-12.087,6.483
c5.308,6.188,7.074,12.091,4.423,11.212c-2.66-0.896-13.267-7.08-45.104-2.066c-4.126,1.17-21.221-12.682-44.513-12.977
c-23.283-0.295-40.381,6.346-64.85,72.296c-2.356,5.828-18.866,19.386-27.71,25.865C3.536,162.529,0.007,169.787,0,182.763
c-0.018,18.158,25.934,27.187,81.648,26.889c55.715-0.292,85.195-9.388,85.195-9.388c-62.789,6.773-158.907,10.52-158.907-18.687
c0-20.641,28.321-28.47,36.281-28.184c7.958,0.3,13.562,12.673,33.307,5.603c3.247-0.295,1.48,4.423-1.18,7.369
c-2.651,2.942-0.586,6.487,9.73,6.487c10.315,0,41.183,0.295,47.707,0c6.531-0.299,11.839-11.792-9.384-12.68
c-18.548,0.311,12.023-5.773,15.915-21.813c0.709-3.927,8.84-4.139,15.918-4.119c20.777,0.029,34.485,38.193,38.912,38.338
c4.416,0.15,17.979,1.621,17.683-4.273c-0.292-5.897-11.491-3.241-13.854-6.487c-2.359-3.234-10.023-15.504-7.366-21.104
c2.65-5.59,12.674-21.229,24.463-22.988c11.789-1.777,42.451,7.361,47.459,0c5.012-7.372-6.783-11.512-15.918-28.611
C243.779,80.572,238.768,71.728,220.195,71.427z"/>
<center> <center>
<iframe src="https://money.yandex.ru/quickpay/shop-widget?writer=seller&targets=Rats%20Search&targets-hint=&default-sum=100&button-text=11&payment-type-choice=on&mobile-payment-type-choice=on&hint=&successURL=&quickpay=shop&account=410012059502693" width="450" height="213" frameborder="0" allowtransparency="true" scrolling="no"></iframe>
<div class='patreon' style="display: flex;">
<div class="widget">
<a href="https://www.patreon.com/bePatron?c=1722368">
Subscribe on Patreon (continuous support development with 1$ or more)
<img src="patreon.png" style="width: 400px; padding-top: 12px; opacity: 0.9;" />
</a>
</div>
<iframe src="https://money.yandex.ru/quickpay/shop-widget?writer=seller&targets=Rats%20Search&targets-hint=&default-sum=500&button-text=11&payment-type-choice=on&mobile-payment-type-choice=on&hint=&successURL=&quickpay=shop&account=410012059502693" width="450" height="213" frameborder="0" allowtransparency="true" scrolling="no"></iframe>
</div>
<br /> <br />
<div style='display: flex; align-items: center; width: 100%; justify-content: center;'><img style="height: 25px; padding: 5px;" src="https://upload.wikimedia.org/wikipedia/commons/4/46/Bitcoin.svg" /> Bitcoin:&nbsp; <b>3Q6AKfKpQKA5B3f4VmmY4aGTcTn4V7Tsju</b></div> <div style='display: flex; align-items: center; width: 100%; justify-content: center;'><img style="height: 25px; padding: 5px;" src="https://upload.wikimedia.org/wikipedia/commons/4/46/Bitcoin.svg" /> Bitcoin:&nbsp; <b>3Q6AKfKpQKA5B3f4VmmY4aGTcTn4V7Tsju</b></div>
<div style='display: flex; align-items: center; width: 100%; justify-content: center;'><img style="height: 25px; padding: 5px;" src="https://upload.wikimedia.org/wikipedia/commons/1/1c/Litecoin.svg" /> Litecoin:&nbsp; <b>LW6pugMTdrDyFmPdjjVj9KXTVMK93Mt8eo</b></div> <div style='display: flex; align-items: center; width: 100%; justify-content: center;'><img style="height: 25px; padding: 5px;" src="https://upload.wikimedia.org/wikipedia/commons/1/1c/Litecoin.svg" /> Litecoin:&nbsp; <b>LW6pugMTdrDyFmPdjjVj9KXTVMK93Mt8eo</b></div>

BIN
app/patreon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -47,7 +47,8 @@ export const aboutMenuTemplate = {
click: () => { click: () => {
const win = new BrowserWindow({ const win = new BrowserWindow({
parent: BrowserWindow.getFocusedWindow(), parent: BrowserWindow.getFocusedWindow(),
modal: true modal: true,
width: 1000
}) })
win.setMenu(null) win.setMenu(null)
win.loadURL(url.format({ win.loadURL(url.format({
@ -55,6 +56,19 @@ export const aboutMenuTemplate = {
protocol: "file:", protocol: "file:",
slashes: true slashes: true
})) }))
const handleRedirect = (e, url) => {
if(url != win.webContents.getURL()) {
if(!url.includes('patreon'))
return
e.preventDefault()
shell.openExternal(url)
}
}
win.webContents.on('will-navigate', handleRedirect)
win.webContents.on('new-window', handleRedirect)
}, },
}, },
{ {