Skip to content

Commit 30bfafb

Browse files
Optimize app: Improve SEO, Accessibility, and Performance
**SEO:** - Added meta description and updated page title in [index.html] to improve search engine visibility. **Accessibility:** - Improved color contrast across multiple components (`TechnicalIndicators`, `PriceDisplay`, `MarketIndicators`, `CandleChart`, `ATRIndicator`) to meet WCAG AA standards. - Fixed missing form label in `ThemeToggle` by adding `aria-label` and wrapping the switch in a label element with screen-reader-only text. **Performance:** - Resized crypto icons in `public/crypto-icons` to 48x48px to reduce file size and improve load times. **Maintenance:** - Added PowerShell scripts (`resize_images.ps1`, `check_images.ps1`) for image optimization and verification.
1 parent bf8f457 commit 30bfafb

14 files changed

Lines changed: 52 additions & 46 deletions

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
66
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
7-
<title>bitcointracker</title>
7+
<title>BitcoinTracker - Real-time Crypto Tracking & Analysis</title>
8+
<meta name="description" content="Track real-time Bitcoin and cryptocurrency prices, analyze market trends with technical indicators, and get trading insights with BitcoinTracker." />
89
<script>
910
// Aplicar tema imediatamente no carregamento inicial
1011
try {

public/crypto-icons/bitcoin.png

-6.9 KB
Loading

public/crypto-icons/ethereum.png

-7.82 KB
Loading

public/crypto-icons/paxg.png

-17.8 KB
Loading

public/crypto-icons/solana.png

-12.7 KB
Loading

public/crypto-icons/trx.png

-3.94 KB
Loading

public/crypto-icons/usdtbrl.png

-7.02 KB
Loading

public/crypto-icons/xrp.png

-8.37 KB
Loading

src/components/ATRIndicator.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<div class="space-y-2">
6464
{#if atr14Daily !== undefined}
6565
<div class="flex items-baseline gap-2">
66-
<span class="text-2xl font-bold text-primary-600-300-token">
66+
<span class="text-2xl font-bold text-primary-700 dark:text-primary-300">
6767
${formatATR(atr14Daily)}
6868
</span>
6969
<span class="text-sm text-surface-600-300-token">

src/components/AppHeader/PriceDisplay.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
1919
// Função para obter cor da variação percentual
2020
function getPercentChangeColor(change: number): string {
21-
if (change > 0) return 'text-success-500';
22-
if (change < 0) return 'text-error-500';
23-
return 'text-gray-500';
21+
if (change > 0) return 'text-green-700 dark:text-green-400';
22+
if (change < 0) return 'text-red-700 dark:text-red-400';
23+
return 'text-gray-600 dark:text-gray-400';
2424
}
2525
2626
// Função para obter dados do timeframe ativo
@@ -180,14 +180,14 @@
180180
.crypto-name {
181181
font-size: 1rem;
182182
font-weight: 800;
183-
color: var(--crypto-color);
183+
color: var(--color-surface-700);
184184
text-transform: uppercase;
185185
letter-spacing: 0.5px;
186186
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
187187
}
188188
189189
:global(.dark) .crypto-name {
190-
color: var(--crypto-color);
190+
color: var(--color-surface-200);
191191
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
192192
}
193193

0 commit comments

Comments
 (0)