Merge branch 'main' of github.com:aljazceru/satshkd-vercel

This commit is contained in:
2025-11-22 20:10:33 +01:00
5 changed files with 20 additions and 19 deletions

View File

@@ -80,7 +80,7 @@ module.exports = {
year = date.getFullYear();
rawsat = hist_entries[v]['sateur_rate']
percentage = (-100 * ((rawsat - today_sats) / rawsat)).toFixed(3)
final_list.push({ "year": date.toLocaleDateString(), "sats": rawsat.toLocaleString("en-US"), "percent": percentage });
final_list.push({ "year": date.toLocaleDateString('en-GB'), "sats": rawsat.toLocaleString("en-US"), "percent": percentage });
}
return final_list
} catch (error) {

View File

@@ -82,7 +82,7 @@ a:active{
max-width:600px;
margin-top:7%;
margin-bottom:20px;}
font-size: 16px;
font-size: 18px;
h1{
font-size:180%;
@@ -162,7 +162,7 @@ table.minimalistBlack td, table.minimalistBlack th {
padding: 8px 9px;
}
table.minimalistBlack tbody td {
font-size: 16px;
font-size: 18px;
}
table.minimalistBlack thead {
background: #CFCFCF;
@@ -172,20 +172,20 @@ table.minimalistBlack thead {
border-bottom: 2px solid #000000;
}
table.minimalistBlack thead th {
font-size: 18px;
font-size: 20px;
font-weight: bold;
color: #000000;
text-align: left;
}
table.minimalistBlack tfoot td {
font-size: 16px;
font-size: 18px;
}
.total{
font-weight:bold;
text-align:right!important;
}
td.total{
font-size:17px;
font-size:19px;
}
.symbol{
font-weight:bold;
@@ -194,14 +194,14 @@ td.total{
content: "$";
}
table.minimalistBlack tfoot {
font-size: 16px;
font-size: 18px;
font-weight: bold;
background: #EBEBEB;
color: #000000;
border-top: 3px solid #000000;
}
table.minimalistBlack tfoot td {
font-size: 16px;
font-size: 18px;
}
.small-print{

View File

@@ -33,18 +33,18 @@ h3 {
table.u-full-width {
width: 100%;
margin-top: 20px;
font-size: 1rem;
font-size: 1.2rem;
}
table.u-full-width thead th {
font-size: 1.2rem;
font-size: 1.4rem;
padding: 10px 5px;
white-space: nowrap;
}
table.u-full-width tbody td {
padding: 12px 5px;
font-size: 1rem;
font-size: 1.5rem;
}
/* Mobile-specific styles */
@@ -69,17 +69,17 @@ table.u-full-width tbody td {
/* Table optimization for mobile */
table.u-full-width {
font-size: 0.9rem;
font-size: 1.1rem;
}
table.u-full-width thead th {
font-size: 1rem;
font-size: 1.2rem;
padding: 8px 3px;
}
table.u-full-width tbody td {
padding: 10px 3px;
font-size: 0.9rem;
font-size: 1.1rem;
}
/* Chart container */
@@ -121,17 +121,17 @@ table.u-full-width tbody td {
/* Make table more compact on very small screens */
table.u-full-width {
font-size: 0.85rem;
font-size: 1.05rem;
}
table.u-full-width thead th {
font-size: 0.95rem;
font-size: 1.15rem;
padding: 6px 2px;
}
table.u-full-width tbody td {
padding: 8px 2px;
font-size: 1.2rem;
font-size: 1.3rem;
}
/* Smaller dark toggle for small screens */

View File

@@ -121,7 +121,7 @@ are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
font-size: 62.5%; }
body {
font-size: 16px; /* currently ems cause chrome bug misinterpreting rems on body element */
font-size: 18px; /* currently ems cause chrome bug misinterpreting rems on body element */
line-height: 1.6;
font-weight: 400;
/*font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;*/
@@ -327,6 +327,7 @@ th,
td {
padding: 12px 15px;
line-height: 1.8;
font-size: 1.2rem;
text-align: left;
border-bottom: 1px solid #E1E1E1; }
th:first-child,

View File

@@ -46,7 +46,7 @@
<div class="container" style="margin-top: 20px;">
<div class="row">
<center>
<h3> {{ Title }} <span id="current"></span> sats</h3>
<h3> {{ Title }} <span id="current"></span> sats <small>(There are 100 million satoshis in one bitcoin, so one satoshi is 0.00000001 BTC)</small></h3>
</center>
<script>
var currentPrice = 0;