generated from nathanwoodburn/python-webserver-template
feat: Started on SOL integration
All checks were successful
Build Docker / BuildImage (push) Successful in 35s
All checks were successful
Build Docker / BuildImage (push) Successful in 35s
This commit is contained in:
29
templates/assets/css/chain.css
Normal file
29
templates/assets/css/chain.css
Normal file
@@ -0,0 +1,29 @@
|
||||
body {
|
||||
background-color: #000000;
|
||||
color: #ffffff;
|
||||
}
|
||||
h1 {
|
||||
font-size: 50px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.centre {
|
||||
margin-top: 10%;
|
||||
text-align: center;
|
||||
}
|
||||
a {
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.chains-list {
|
||||
width: fit-content;
|
||||
border: 1px solid #ffffff;
|
||||
border-radius: 10px;
|
||||
padding: 10px 20px;
|
||||
margin: auto;
|
||||
margin-top: 10px;
|
||||
|
||||
}
|
||||
@@ -17,4 +17,25 @@ a {
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.chains-list {
|
||||
width: fit-content;
|
||||
border: 1px solid #ffffff;
|
||||
border-radius: 10px;
|
||||
padding: 10px 20px;
|
||||
margin: auto;
|
||||
margin-top: 10px;
|
||||
|
||||
}
|
||||
.address-list {
|
||||
width: fit-content;
|
||||
border: 1px solid #ffffff;
|
||||
border-radius: 10px;
|
||||
padding: 10px 20px;
|
||||
margin: auto;
|
||||
margin-top: 10px;
|
||||
|
||||
}
|
||||
.address-list-item {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
33
templates/chain.html
Normal file
33
templates/chain.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Nathan.Woodburn/</title>
|
||||
<link rel="icon" href="/assets/img/favicon.png" type="image/png">
|
||||
<link rel="stylesheet" href="/assets/css/chain.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="spacer"></div>
|
||||
<div class="centre">
|
||||
<h1>Nathan.Woodburn/ {{chain}}</h1>
|
||||
|
||||
<form method="post">
|
||||
<h3>Import address</h3>
|
||||
<input type="text" name="address" placeholder="Address">
|
||||
<input type="submit" value="Check">
|
||||
</form>
|
||||
|
||||
<form action="/chains/{{chain}}/addAPIKey" method="post">
|
||||
<h3>Add API Key</h3>
|
||||
<input type="text" name="apiKey" placeholder="API Key">
|
||||
<input type="submit" value="Add">
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
{{transactions|safe}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -13,6 +13,26 @@
|
||||
<div class="spacer"></div>
|
||||
<div class="centre">
|
||||
<h1>Nathan.Woodburn/</h1>
|
||||
|
||||
<div class="address-list">
|
||||
<h3>Imported Addresses</h3>
|
||||
{% for chain in addresses %}
|
||||
<div class="address-list-item">
|
||||
<h4>{{ chain.chain }}</h4>
|
||||
{% for address in chain.addresses %}
|
||||
{{address}} <a href="/chains/{{ chain.chain }}/delete/{{address}}">Delete</a>
|
||||
<br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="chains-list">
|
||||
<h3>Add New Address</h3>
|
||||
{% for chain in chains %}
|
||||
<p><a href="/chains/{{ chain.link }}">{{ chain.name }}</a></p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user