This commit is contained in:
0ceanSlim 2023-08-22 07:42:43 -04:00
commit c9a803a98c
7 changed files with 127 additions and 54 deletions

View File

@ -7,6 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
</head> </head>
<body> <body>
<div class="container">
<div class="settings"><img src='file:///android_asset/images/cog.png' alt='cog' /> <div class="settings"><img src='file:///android_asset/images/cog.png' alt='cog' />
<div class="theme-dropdown"> <div class="theme-dropdown">
<label for="theme-select"> </label> <label for="theme-select"> </label>
@ -36,6 +38,7 @@
</select> </select>
</div> </div>
</div> </div>
</div>
<div class="container"> <div class="container">
<div class="price-display"> <div class="price-display">
@ -46,16 +49,20 @@
</div> </div>
</div> </div>
<div class="container">
<div id="dollars-to-sats"></div> <div id="dollars-to-sats"></div>
</div>
<div class="container">
<div class="satstodollars"> <div class="satstodollars">
<h1>Sats to fiat Calc</h1> <h2>Sats to fiat Calc</h2>
<label for="sats-input">Enter the amount of Bitcoin in satoshis:</label> <label for="sats-input">Enter the amount of Bitcoin in satoshis:</label>
<br> <br>
<input type="number" id="sats-input"> <input type="number" id="sats-input">
<br> <br>
<output id="dollars-output"></output> <output id="dollars-output"></output>
</div> </div>
</div>
<div id="exchange"> <div id="exchange">
<h2>Buy Bitcoin Here 👇</h2> <h2>Buy Bitcoin Here 👇</h2>

View 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 */
}

View 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;
}

View 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;
}

View 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;
}

View File

@ -1,24 +1,14 @@
.settings { .settings {
width: auto; width: auto;
margin-top: 20px;
display: flex; display: flex;
align-items: center; 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 { .settings img {
width: 25px; width: 25px;
height: 25px; height: 25px;
margin-bottom: 20px; margin-bottom: 40px;
margin-right: 10px; /* Add margin to separate cog image from dropdowns */ margin-right: 20px; /* Add margin to separate cog image from dropdowns */
}
.cog-image {
} }
.theme-dropdown, .theme-dropdown,
@ -46,9 +36,3 @@
font-family: monospace; font-family: monospace;
color: #ffffff; color: #ffffff;
} }
#currency-select img {
width: 70px;
height: 38px;
border-radius:2px
}

View File

@ -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 -> val cssCode = cssFiles.joinToString("\n") { fileName ->
try { try {