Skip to content

Commit

Permalink
Stand with Ukraine update, branding and donation link
Browse files Browse the repository at this point in the history
  • Loading branch information
vertiond committed Mar 16, 2022
1 parent 2d27d43 commit c30cd9d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ func (m *Backend) OpenDownloadUrl(url string) {
util.OpenBrowser(url)
}

func (m *Backend) Donate() {
util.OpenBrowser("https://twitter.com/FedorovMykhailo/status/1498982855162175488")
}

func (m *Backend) AlreadyRunning() bool {
return m.alreadyRunning
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ a.button:hover {
a.button {
opacity: 0.6;
line-height: 45px;
background: #202225;
background: #005bbb;
max-width: 286px;
height: 45px;
margin: 0 auto;
Expand Down Expand Up @@ -157,7 +157,7 @@ a.inlineLink {

input[type='text'], input[type='password'] {
border: 0px;
background-color: #202225;
background-color: #005bbb;
color: white;
border-radius: 5px;
line-height: 45px;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/Mining.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<div class="container">
<div class="col-286">
<p class="spendableBalance">{{$t('mining.ukraine')}}</p>
<p class="header">{{$t('mining.spendable_balance')}}:</p>
<p class="spendableBalance">
<a class="tiny" @click="refreshBalance">
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/components/Send.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<div class="container">
<div v-if="sendError === '' && sent === false" class="col-286">
<br><a class="link" @click="donate">{{ $t('sending.donate') }}</a>
<p v-if="receivedBalance === '0.00 DOGE'">{{ $t('sending.send_all_to') }}:</p>
<p
v-if="receivedBalance !== '0.00 DOGE' && receivedTxCount === 1"
Expand Down Expand Up @@ -193,7 +194,10 @@ export default {
},
showTx(txid) {
window.backend.Backend.ShowTx(txid);
}
},
donate: function() {
window.backend.Backend.Donate();
},
}
};
</script>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"verthash" : "Verifying / creating Verthash data file..."
},
"mining" : {
"ukraine" : "Stand With Ukraine",
"spendable_balance" : "Spendable Balance",
"still_maturing" : "still maturing",
"pending_pool_payout" : "pending pool payout",
Expand All @@ -40,6 +41,7 @@
},
"sending" : {
"send_all_to" : "Send all your mined coins to",
"donate" : "Donate your Dogecoin to Ukraine!",
"youre_sending_x_to" : "You're sending {receivedBalance} to",
"youre_sending_x_in_y_txs_to" : "You're sending {receivedBalance} in {receivedTxCount} transactions to",
"receiver_address" : "Receiver Address",
Expand Down

0 comments on commit c30cd9d

Please sign in to comment.