feat: Add donate address
All checks were successful
Build Docker / Build Image (push) Successful in 19s
All checks were successful
Build Docker / Build Image (push) Successful in 19s
This commit is contained in:
parent
93f9970ca0
commit
33d65bdd20
11
main.py
11
main.py
@ -6,7 +6,10 @@ import gift
|
|||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
dotenv.load_dotenv()
|
dotenv.load_dotenv()
|
||||||
|
address = 'hs1qr7d0xqsyatls47jf28gvm97twe8k606gspfpsz'
|
||||||
|
|
||||||
|
if os.getenv('address') != None:
|
||||||
|
address = os.getenv('address')
|
||||||
|
|
||||||
#Assets routes
|
#Assets routes
|
||||||
@app.route('/assets/<path:path>')
|
@app.route('/assets/<path:path>')
|
||||||
@ -20,9 +23,9 @@ def index():
|
|||||||
params = request.args
|
params = request.args
|
||||||
if 'r' in params:
|
if 'r' in params:
|
||||||
print("Referer: " + params['r'])
|
print("Referer: " + params['r'])
|
||||||
return render_template('index.html', hidden=params['r'])
|
return render_template('index.html', hidden=params['r'],address=address)
|
||||||
|
|
||||||
return render_template('index.html')
|
return render_template('index.html',address=address)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/', methods=['POST'])
|
@app.route('/', methods=['POST'])
|
||||||
@ -47,9 +50,9 @@ def submit():
|
|||||||
print(status,flush=True)
|
print(status,flush=True)
|
||||||
|
|
||||||
if status == True:
|
if status == True:
|
||||||
return render_template('success.html')
|
return render_template('success.html',address=address)
|
||||||
else:
|
else:
|
||||||
return render_template('error.html',error=status)
|
return render_template('error.html',error=status,address=address)
|
||||||
|
|
||||||
# Special routes
|
# Special routes
|
||||||
@app.route('/.well-known/wallets/<token>')
|
@app.route('/.well-known/wallets/<token>')
|
||||||
|
@ -30,7 +30,7 @@ Claim a free Handshake domain">
|
|||||||
<link rel="stylesheet" href="assets/fonts/material-icons.min.css">
|
<link rel="stylesheet" href="assets/fonts/material-icons.min.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body style="background: rgb(39,38,46);">
|
||||||
<nav class="navbar navbar-expand-md sticky-top py-3 navbar-dark" id="mainNav">
|
<nav class="navbar navbar-expand-md sticky-top py-3 navbar-dark" id="mainNav">
|
||||||
<div class="container"><a class="navbar-brand d-flex align-items-center" href="/"><img src="assets/img/favicon.svg" width="50em"><span> Woodburn Faucet</span></a><button class="navbar-toggler" data-bs-toggle="collapse"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button></div>
|
<div class="container"><a class="navbar-brand d-flex align-items-center" href="/"><img src="assets/img/favicon.svg" width="50em"><span> Woodburn Faucet</span></a><button class="navbar-toggler" data-bs-toggle="collapse"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button></div>
|
||||||
</nav>
|
</nav>
|
||||||
@ -53,6 +53,12 @@ Claim a free Handshake domain">
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
<section style="margin-top: 50px;">
|
||||||
|
<div style="text-align: center;">
|
||||||
|
<h3>Donate to fund the faucet</h3>
|
||||||
|
<h4>{{address}}</h4>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
<section style="background: #27262e;">
|
<section style="background: #27262e;">
|
||||||
<div class="container bg-dark py-5">
|
<div class="container bg-dark py-5">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -38,7 +38,7 @@ Claim a free Handshake domain">
|
|||||||
<link rel="stylesheet" href="assets/fonts/material-icons.min.css">
|
<link rel="stylesheet" href="assets/fonts/material-icons.min.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body style="background: rgb(39,38,46);">
|
||||||
<nav class="navbar navbar-expand-md sticky-top py-3 navbar-dark" id="mainNav">
|
<nav class="navbar navbar-expand-md sticky-top py-3 navbar-dark" id="mainNav">
|
||||||
<div class="container"><a class="navbar-brand d-flex align-items-center" href="/"><img src="assets/img/favicon.svg" width="50em"><span> Woodburn Faucet</span></a><button class="navbar-toggler" data-bs-toggle="collapse"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button></div>
|
<div class="container"><a class="navbar-brand d-flex align-items-center" href="/"><img src="assets/img/favicon.svg" width="50em"><span> Woodburn Faucet</span></a><button class="navbar-toggler" data-bs-toggle="collapse"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button></div>
|
||||||
</nav>
|
</nav>
|
||||||
@ -61,6 +61,12 @@ Claim a free Handshake domain">
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
<section style="margin-top: 50px;">
|
||||||
|
<div style="text-align: center;">
|
||||||
|
<h3>Donate to fund the faucet</h3>
|
||||||
|
<h4>{{address}}</h4>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
<section style="background: #27262e;">
|
<section style="background: #27262e;">
|
||||||
<div class="container bg-dark py-5">
|
<div class="container bg-dark py-5">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -30,11 +30,11 @@ Claim a free Handshake domain">
|
|||||||
<link rel="stylesheet" href="assets/fonts/material-icons.min.css">
|
<link rel="stylesheet" href="assets/fonts/material-icons.min.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body style="background: rgb(39,38,46);">
|
||||||
<nav class="navbar navbar-expand-md sticky-top py-3 navbar-dark" id="mainNav">
|
<nav class="navbar navbar-expand-md sticky-top py-3 navbar-dark" id="mainNav">
|
||||||
<div class="container"><a class="navbar-brand d-flex align-items-center" href="/"><img src="assets/img/favicon.svg" width="50em"><span> Woodburn Faucet</span></a><button class="navbar-toggler" data-bs-toggle="collapse"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button></div>
|
<div class="container"><a class="navbar-brand d-flex align-items-center" href="/"><img src="assets/img/favicon.svg" width="50em"><span> Woodburn Faucet</span></a><button class="navbar-toggler" data-bs-toggle="collapse"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button></div>
|
||||||
</nav>
|
</nav>
|
||||||
<header class="bg-dark">
|
<header class="bg-dark" style="background: rgb(39, 38, 46);">
|
||||||
<div class="container pt-4 pt-xl-5">
|
<div class="container pt-4 pt-xl-5">
|
||||||
<div class="row pt-5">
|
<div class="row pt-5">
|
||||||
<div class="col-md-8 col-xl-6 text-center text-md-start mx-auto" style="margin-bottom: 50px;">
|
<div class="col-md-8 col-xl-6 text-center text-md-start mx-auto" style="margin-bottom: 50px;">
|
||||||
@ -52,6 +52,12 @@ Claim a free Handshake domain">
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
<section style="margin-top: 50px;">
|
||||||
|
<div style="text-align: center;">
|
||||||
|
<h3>Donate to fund the faucet</h3>
|
||||||
|
<h4>{{address}}</h4>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
<section style="background: #27262e;">
|
<section style="background: #27262e;">
|
||||||
<div class="container bg-dark py-5">
|
<div class="container bg-dark py-5">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
Reference in New Issue
Block a user