Replace cryptos with paypal and patreon

This commit is contained in:
0xboobface 2018-11-19 18:41:54 +01:00
parent 9321a2945d
commit f7dfbe558c
4 changed files with 98 additions and 36 deletions

View File

@ -8,7 +8,6 @@ import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.Tab;
import javafx.scene.control.TextField;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
@ -61,49 +60,32 @@ public class DonateTabFx extends Tab {
buyCoffeeBox.setAlignment(Pos.TOP_CENTER);
buyCoffeeBox.getChildren().addAll(coffeeImage, coffeeButton);
int prefWidth = 360;
TextField bitcoinAddress = new TextField("15sLWZon8diPqAX4UdPQU1DcaPuvZs2GgA");
bitcoinAddress.setEditable(false);
bitcoinAddress.setPrefWidth(prefWidth);
ImageView bitcoinQrCode = new ImageView(getClass().getResource("/html/bitcoin-address.png").toString());
Label bitcoinLabel = new Label("Bitcoin");
bitcoinLabel.setGraphic(new ImageView(getClass().getResource("/html/bitcoin.png").toString()));
VBox bitcoinBox = new VBox(5);
bitcoinBox.setAlignment(Pos.TOP_CENTER);
bitcoinBox.getChildren().addAll(bitcoinLabel, bitcoinAddress, bitcoinQrCode);
ImageView paypalImage = new ImageView(getClass().getResource("/html/pp196.png").toString());
Button paypalButton = new Button("PayPal");
paypalButton.setOnMouseClicked((e) -> { DesktopIntegration.open("https://www.paypal.me/0xb00bface"); });
VBox paypalBox = new VBox(5);
paypalBox.setAlignment(Pos.TOP_CENTER);
paypalBox.getChildren().addAll(paypalImage, paypalButton);
TextField ethereumAddress = new TextField("0x996041638eEAE7E31f39Ef6e82068d69bA7C090e");
ethereumAddress.setEditable(false);
ethereumAddress.setPrefWidth(prefWidth);
ImageView ethereumQrCode = new ImageView(getClass().getResource("/html/ethereum-address.png").toString());
Label ethereumLabel = new Label("Ethereum");
ethereumLabel.setGraphic(new ImageView(getClass().getResource("/html/ethereum.png").toString()));
VBox ethereumBox = new VBox(5);
ethereumBox.setAlignment(Pos.TOP_CENTER);
ethereumBox.getChildren().addAll(ethereumLabel, ethereumAddress, ethereumQrCode);
TextField moneroAddress = new TextField("448ZQZpzvT4iRNAVBr7CMQBfEbN3H8uAF2BWabtqVRckgTY3GQJkUgydjotEPaGvpzJboUpe39J8rPBkWZaUbrQa31FoSMj");
moneroAddress.setEditable(false);
moneroAddress.setPrefWidth(prefWidth);
ImageView moneroQrCode = new ImageView(getClass().getResource("/html/monero-address.png").toString());
Label moneroLabel = new Label("Monero");
moneroLabel.setGraphic(new ImageView(getClass().getResource("/html/monero.png").toString()));
VBox moneroBox = new VBox(5);
moneroBox.setAlignment(Pos.TOP_CENTER);
moneroBox.getChildren().addAll(moneroLabel, moneroAddress, moneroQrCode);
ImageView patreonImage = new ImageView(getClass().getResource("/html/patreon-logo.png").toString());
Button patreonButton = new Button("Become a Patron");
patreonButton.setOnMouseClicked((e) -> { DesktopIntegration.open("https://www.patreon.com/0xb00bface"); });
VBox patreonBox = new VBox(5);
patreonBox.setAlignment(Pos.TOP_CENTER);
patreonBox.getChildren().addAll(patreonImage, patreonButton);
HBox topBox = new HBox(5);
topBox.setAlignment(Pos.CENTER);
topBox.setSpacing(50);
topBox.getChildren().addAll(tokenBox, buyCoffeeBox);
topBox.getChildren().addAll(tokenBox);
HBox coinBox = new HBox(5);
coinBox.setAlignment(Pos.CENTER);
coinBox.setSpacing(50);
coinBox.getChildren().addAll(bitcoinBox, ethereumBox, moneroBox);
HBox bottomBox = new HBox(5);
bottomBox.setAlignment(Pos.CENTER);
bottomBox.setSpacing(50);
bottomBox.getChildren().addAll(buyCoffeeBox, paypalBox, patreonBox);
VBox centerBox = new VBox(50);
centerBox.getChildren().addAll(topBox, coinBox);
centerBox.getChildren().addAll(topBox, bottomBox);
container.setCenter(centerBox);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="196"
height="196"
viewBox="0 0 51.858332 51.858332"
version="1.1"
id="svg833"
inkscape:version="0.92.2 5c3e80d, 2017-08-06"
sodipodi:docname="patreon-logo.svg"
inkscape:export-filename="/home/henni/devel/ctbrec/ctbrec/client/src/main/resources/html/patreon-logo.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<defs
id="defs827" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.979899"
inkscape:cx="-21.605094"
inkscape:cy="181.04486"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1127"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
id="metadata830">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-245.14167)">
<g
transform="matrix(0.0698479,0,0,0.07256243,6.1203406,251.27373)"
id="g825">
<circle
style="fill:#f96854;fill-opacity:1;stroke:#f96854;stroke-opacity:1"
data-color="1"
id="Oval"
cx="362.59"
cy="204.59"
r="204.59" />
<rect
style="fill:#052d49;fill-opacity:1;stroke:#052d49;stroke-opacity:1"
data-color="2"
id="Rectangle"
x="0"
y="0"
width="100"
height="545.79999" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB