Skip to content

Commit 09e5867

Browse files
committed
Fix emoji flag rendering
1 parent b08e087 commit 09e5867

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

website/src/pages/index.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ const baseUrl = '/ckan-mcp-server';
507507
class="portal-card bg-white p-6 border border-gray-200"
508508
>
509509
<div class="flex items-center gap-3 mb-3">
510-
<span class="text-3xl">🇮🇹</span>
510+
<span class="text-3xl emoji-flag">🇮🇹</span>
511511
<h3 class="display-font text-xl font-semibold text-navy">dati.gov.it</h3>
512512
</div>
513513
<p class="text-sm text-gray-600">Italian National Open Data Portal</p>
@@ -520,7 +520,7 @@ const baseUrl = '/ckan-mcp-server';
520520
class="portal-card bg-white p-6 border border-gray-200"
521521
>
522522
<div class="flex items-center gap-3 mb-3">
523-
<span class="text-3xl">🇺🇸</span>
523+
<span class="text-3xl emoji-flag">🇺🇸</span>
524524
<h3 class="display-font text-xl font-semibold text-navy">data.gov</h3>
525525
</div>
526526
<p class="text-sm text-gray-600">United States Open Data</p>
@@ -533,7 +533,7 @@ const baseUrl = '/ckan-mcp-server';
533533
class="portal-card bg-white p-6 border border-gray-200"
534534
>
535535
<div class="flex items-center gap-3 mb-3">
536-
<span class="text-3xl">🇨🇦</span>
536+
<span class="text-3xl emoji-flag">🇨🇦</span>
537537
<h3 class="display-font text-xl font-semibold text-navy">open.canada.ca</h3>
538538
</div>
539539
<p class="text-sm text-gray-600">Canada Open Government</p>
@@ -546,7 +546,7 @@ const baseUrl = '/ckan-mcp-server';
546546
class="portal-card bg-white p-6 border border-gray-200"
547547
>
548548
<div class="flex items-center gap-3 mb-3">
549-
<span class="text-3xl">🇬🇧</span>
549+
<span class="text-3xl emoji-flag">🇬🇧</span>
550550
<h3 class="display-font text-xl font-semibold text-navy">data.gov.uk</h3>
551551
</div>
552552
<p class="text-sm text-gray-600">United Kingdom Open Data</p>
@@ -559,7 +559,7 @@ const baseUrl = '/ckan-mcp-server';
559559
class="portal-card bg-white p-6 border border-gray-200"
560560
>
561561
<div class="flex items-center gap-3 mb-3">
562-
<span class="text-3xl">🇪🇺</span>
562+
<span class="text-3xl emoji-flag">🇪🇺</span>
563563
<h3 class="display-font text-xl font-semibold text-navy">data.europa.eu</h3>
564564
</div>
565565
<p class="text-sm text-gray-600">European Union Open Data Portal</p>
@@ -572,7 +572,7 @@ const baseUrl = '/ckan-mcp-server';
572572
class="portal-card bg-white p-6 border border-gray-200"
573573
>
574574
<div class="flex items-center gap-3 mb-3">
575-
<span class="text-3xl">🌍</span>
575+
<span class="text-3xl emoji-flag">🌍</span>
576576
<h3 class="display-font text-xl font-semibold text-navy">demo.ckan.org</h3>
577577
</div>
578578
<p class="text-sm text-gray-600">Official CKAN Demo Portal</p>

website/src/styles/global.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@
77
@apply text-gray-900;
88
}
99
}
10+
11+
@layer utilities {
12+
.emoji-flag {
13+
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", "Segoe UI Symbol",
14+
sans-serif;
15+
font-variant-emoji: emoji;
16+
line-height: 1;
17+
}
18+
}

0 commit comments

Comments
 (0)