- ₿
+ ₿
ბიტკოინი ლარში
@@ -49,9 +50,9 @@
@@ -61,7 +62,7 @@
მიმდინარე კურსი
- 1 @selectedCurrency = ₾ @currentRate.Rate.ToString("N4")
+ 1 @selectedCurrency = ₾ @currentRate.Rate.ToString("N4")
}
@@ -69,7 +70,7 @@
=
- ₾ @(rates != null ? calculatedAmount.ToString("N2") : "0.00")
+ ₾ @(rates != null ? calculatedAmount.ToString("N2") : "0.00")
ქართული ლარი
@@ -92,6 +93,9 @@
@code {
+ [Parameter] public string? Currency { get; set; }
+ [Parameter] public decimal? Amount { get; set; }
+
decimal amount = 100;
string selectedCurrency = "USD";
bool loading = false; // Start with loading false to avoid initial spinner
@@ -109,6 +113,23 @@
protected override async Task OnInitializedAsync()
{
+ // Handle URL parameters
+ if (!string.IsNullOrEmpty(Currency))
+ {
+ var upperCurrency = Currency.ToUpperInvariant();
+ // Check if it's a supported currency
+ if (upperCurrency == "USD" || upperCurrency == "EUR" || upperCurrency == "GBP")
+ {
+ selectedCurrency = upperCurrency;
+ }
+ }
+
+ // Set amount from URL parameter if provided
+ if (Amount.HasValue && Amount.Value > 0)
+ {
+ amount = Amount.Value;
+ }
+
await LoadRates();
initialLoad = false; // Set to false after first load
}
@@ -779,6 +800,40 @@
}
}
+ /* Currency symbol fixes for cross-platform compatibility */
+ .bitcoin-symbol {
+ font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'DejaVu Sans', sans-serif;
+ /* Fallback for Bitcoin symbol */
+ }
+
+ .bitcoin-symbol:empty::before {
+ content: 'B';
+ font-weight: bold;
+ }
+
+ .lari-symbol {
+ font-family: 'Sylfaen', 'BPG Nino', 'Arial Unicode MS', 'Lucida Sans Unicode', sans-serif;
+ /* Georgian fonts first, then Unicode fallbacks */
+ }
+
+ .lari-symbol:empty::before {
+ content: 'GEL';
+ font-size: 0.8em;
+ }
+
+ /* Add currency indicators to select options */
+ select option[value="USD"]::before {
+ content: '$ ';
+ }
+
+ select option[value="EUR"]::before {
+ content: '€ ';
+ }
+
+ select option[value="GBP"]::before {
+ content: '£ ';
+ }
+
/* Mobile Responsiveness */
@@media (max-width: 768px) {
.container {
diff --git a/screenshots/image.png b/screenshots/image.png
new file mode 100644
index 0000000..4ed8db1
Binary files /dev/null and b/screenshots/image.png differ
diff --git a/screenshots/screenshot-2025-07-13T17-51-29-115Z.png b/screenshots/screenshot-2025-07-13T17-51-29-115Z.png
new file mode 100644
index 0000000..e5a465f
Binary files /dev/null and b/screenshots/screenshot-2025-07-13T17-51-29-115Z.png differ
diff --git a/screenshots/screenshot-2025-07-13T17-58-09-956Z.png b/screenshots/screenshot-2025-07-13T17-58-09-956Z.png
new file mode 100644
index 0000000..f5a6477
Binary files /dev/null and b/screenshots/screenshot-2025-07-13T17-58-09-956Z.png differ
diff --git a/screenshots/screenshot-2025-07-13T17-59-10-698Z.png b/screenshots/screenshot-2025-07-13T17-59-10-698Z.png
new file mode 100644
index 0000000..b75580b
Binary files /dev/null and b/screenshots/screenshot-2025-07-13T17-59-10-698Z.png differ
diff --git a/screenshots/screenshot-2025-07-13T17-59-41-855Z.png b/screenshots/screenshot-2025-07-13T17-59-41-855Z.png
new file mode 100644
index 0000000..5db5ea5
Binary files /dev/null and b/screenshots/screenshot-2025-07-13T17-59-41-855Z.png differ
diff --git a/wwwroot/css/app.css b/wwwroot/css/app.css
index feb4a3d..58c2a9a 100644
--- a/wwwroot/css/app.css
+++ b/wwwroot/css/app.css
@@ -1,4 +1,17 @@
/* Dark mode theme for Georgian Lari Converter */
+
+/* Better font support for currency symbols */
+@font-face {
+ font-family: 'Currency Fallback';
+ src: local('Arial Unicode MS'),
+ local('Lucida Sans Unicode'),
+ local('DejaVu Sans'),
+ local('Segoe UI Symbol'),
+ local('Noto Sans Symbols'),
+ local('Symbola');
+ unicode-range: U+20A0-20CF, U+20BE, U+20BF; /* Currency symbols */
+}
+
:root {
--background: #0A0A0A;
--card: #141414;
@@ -32,6 +45,50 @@ html, body {
overflow-x: hidden;
}
+/* Currency symbol styling for better cross-platform support */
+.bitcoin-symbol,
+.lari-symbol,
+[class*="currency"] {
+ font-family: 'Currency Fallback', 'Arial Unicode MS', 'Lucida Sans Unicode', 'DejaVu Sans', 'Segoe UI Symbol', sans-serif;
+}
+
+/* Specific fixes for Georgian Lari */
+.lari-symbol {
+ font-family: 'Sylfaen', 'BPG Arial', 'BPG Nino', 'Currency Fallback', sans-serif;
+}
+
+/* Fallback text for unsupported symbols */
+.bitcoin-symbol:empty::after {
+ content: 'BTC';
+ font-size: 0.8em;
+ font-weight: bold;
+}
+
+.lari-symbol:empty::after {
+ content: 'GEL';
+ font-size: 0.8em;
+}
+
+/* Fallbacks when symbols are not supported */
+body.no-bitcoin-symbol .bitcoin-symbol::after {
+ content: 'BTC';
+ font-size: 0.8em;
+ font-weight: bold;
+}
+
+body.no-bitcoin-symbol .bitcoin-symbol {
+ font-size: 0;
+}
+
+body.no-lari-symbol .lari-symbol::after {
+ content: 'GEL';
+ font-size: 0.8em;
+}
+
+body.no-lari-symbol .lari-symbol {
+ font-size: 0;
+}
+
h1:focus {
outline: none;
}
diff --git a/wwwroot/index.html b/wwwroot/index.html
index 15aa914..d37699f 100644
--- a/wwwroot/index.html
+++ b/wwwroot/index.html
@@ -50,6 +50,32 @@