seperated all styles for each container, wrapped all widgets in the same container element
This commit is contained in:
parent
cf4437ecd6
commit
fada249778
@ -7,6 +7,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<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>
|
||||
@ -36,6 +38,7 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="price-display">
|
||||
@ -46,8 +49,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div id="dollars-to-sats"></div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="satstodollars">
|
||||
<h1>Sats to fiat Calc</h1>
|
||||
<label for="sats-input">Enter the amount of Bitcoin in satoshis:</label>
|
||||
@ -56,6 +62,7 @@
|
||||
<br>
|
||||
<output id="dollars-output"></output>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="exchange">
|
||||
<h2>Buy Bitcoin Here 👇</h2>
|
||||
|
@ -7,15 +7,10 @@ body {
|
||||
color: #ffffff;
|
||||
font-family: monospace, Arial;
|
||||
font-size: 12px;
|
||||
font-feature-settings: normal;
|
||||
overflow-x: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 6px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #f7931a;
|
||||
}
|
||||
@ -32,109 +27,10 @@ a:hover {
|
||||
width: auto;
|
||||
margin-top: 20px;
|
||||
background-color: #282828;
|
||||
border: 3px solid #ccc;
|
||||
border: 3px solid #ffffff;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
align-items: center; /* Center items vertically within the container */
|
||||
justify-content: center; /* Center items horizontally within the container */
|
||||
}
|
||||
.price-display {
|
||||
width: auto;
|
||||
margin-right: 10px;
|
||||
padding: 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 */
|
||||
}
|
||||
|
||||
#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 */
|
||||
}
|
||||
|
||||
#dollars-to-sats {
|
||||
width: auto;
|
||||
margin-top: 20px;
|
||||
background-color: #282828;
|
||||
border: 3px solid #ccc;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
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;
|
||||
}
|
||||
|
||||
.satstodollars {
|
||||
width: auto;
|
||||
margin-top: 20px;
|
||||
background-color: #282828;
|
||||
border: 3px solid #ccc;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
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: #f7931a;
|
||||
margin-right: 5px;
|
||||
padding-right: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
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: #f7931a;
|
||||
margin-right: 5px;
|
||||
padding-right: 5px;
|
||||
text-align: center;
|
||||
}
|
@ -1,13 +1,7 @@
|
||||
.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 {
|
||||
|
@ -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