Merge branch 'master' of https://github.com/0ceanSlim/satworth
This commit is contained in:
commit
c9a803a98c
@ -7,7 +7,9 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<div class="settings"><img src='file:///android_asset/images/cog.png' alt='cog' />
|
||||
|
||||
<div class="container">
|
||||
<div class="settings"><img src='file:///android_asset/images/cog.png' alt='cog' />
|
||||
<div class="theme-dropdown">
|
||||
<label for="theme-select"> </label>
|
||||
<select id="theme-select">
|
||||
@ -35,6 +37,7 @@
|
||||
<option value="vnd">Dong</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
@ -46,15 +49,19 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="dollars-to-sats"></div>
|
||||
<div class="container">
|
||||
<div id="dollars-to-sats"></div>
|
||||
</div>
|
||||
|
||||
<div class="satstodollars">
|
||||
<h1>Sats to fiat Calc</h1>
|
||||
<div class="container">
|
||||
<div class="satstodollars">
|
||||
<h2>Sats to fiat Calc</h2>
|
||||
<label for="sats-input">Enter the amount of Bitcoin in satoshis:</label>
|
||||
<br>
|
||||
<input type="number" id="sats-input">
|
||||
<br>
|
||||
<output id="dollars-output"></output>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="exchange">
|
||||
|
27
app/src/main/assets/styles/bitcoinPrice.css
Normal file
27
app/src/main/assets/styles/bitcoinPrice.css
Normal file
@ -0,0 +1,27 @@
|
||||
#bitcoin-price {
|
||||
font-size: 26px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bitcoin-logo {
|
||||
height: 50px;
|
||||
/* Adjust this to match the font size of the Bitcoin price */
|
||||
width: 50px;
|
||||
margin-right: 10px;
|
||||
/* Add some space between the logo and the price */
|
||||
}
|
||||
|
||||
.bitcoin-logo img {
|
||||
height: 50px;
|
||||
/* Adjust this to match the font size of the Bitcoin price */
|
||||
width: 50px;
|
||||
/* Add some space between the logo and the price */
|
||||
}
|
||||
.price-display {
|
||||
width: auto;
|
||||
margin-right: 10px;
|
||||
display: flex; /* Add this to create a flexbox layout */
|
||||
align-items: center; /* Center items vertically within the container */
|
||||
justify-content: center; /* Center items horizontally within the container */
|
||||
}
|
29
app/src/main/assets/styles/exchange.css
Normal file
29
app/src/main/assets/styles/exchange.css
Normal file
@ -0,0 +1,29 @@
|
||||
/* CSS for the container */
|
||||
#exchange {
|
||||
border: 2px solid #ffffff;
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
/* CSS for the text */
|
||||
#exchange h2 {
|
||||
font-size: 12px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* CSS for the app images */
|
||||
.app-image {
|
||||
display: inline-block;
|
||||
margin: 6px;
|
||||
}
|
||||
|
||||
.app-image img {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #909090;
|
||||
}
|
9
app/src/main/assets/styles/fiatToSats.css
Normal file
9
app/src/main/assets/styles/fiatToSats.css
Normal file
@ -0,0 +1,9 @@
|
||||
#dollars-to-sats {
|
||||
width: auto;
|
||||
align-items: center; /* Center items vertically within the container */
|
||||
justify-content: center; /* Center items horizontally within the container */
|
||||
color: #ffffff;
|
||||
font-family: monospace, Arial;
|
||||
font-size: 20px;
|
||||
font-style: bolder;
|
||||
}
|
17
app/src/main/assets/styles/satsToFiat.css
Normal file
17
app/src/main/assets/styles/satsToFiat.css
Normal file
@ -0,0 +1,17 @@
|
||||
.satstodollars {
|
||||
width: auto;
|
||||
align-items: center; /* Center items vertically within the container */
|
||||
justify-content: center; /* Center items horizontally within the container */
|
||||
}
|
||||
|
||||
#sats-input {
|
||||
font-size: 18px;
|
||||
border-radius: 7px;
|
||||
font-family: monospace;
|
||||
background: #101010;
|
||||
font-style: bolder;
|
||||
color: #fbc219;
|
||||
margin-right: 5px;
|
||||
padding-right: 5px;
|
||||
text-align: center;
|
||||
}
|
@ -1,24 +1,14 @@
|
||||
.settings {
|
||||
width: auto;
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #282828;
|
||||
border: 3px solid #ccc;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.settings img {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
margin-bottom: 20px;
|
||||
margin-right: 10px; /* Add margin to separate cog image from dropdowns */
|
||||
}
|
||||
|
||||
.cog-image {
|
||||
|
||||
margin-bottom: 40px;
|
||||
margin-right: 20px; /* Add margin to separate cog image from dropdowns */
|
||||
}
|
||||
|
||||
.theme-dropdown,
|
||||
@ -46,9 +36,3 @@
|
||||
font-family: monospace;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#currency-select img {
|
||||
width: 70px;
|
||||
height: 38px;
|
||||
border-radius:2px
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
val cssFiles = listOf("style.css", "styles/settings.css") // List of your CSS files
|
||||
val cssFiles = listOf("style.css", "styles/settings.css", "styles/bitcoinPrice.css","styles/exchange.css", "styles/fiatToSats.css", "styles/satsToFiat.css") // List of your CSS files
|
||||
|
||||
val cssCode = cssFiles.joinToString("\n") { fileName ->
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user