updated tooltips

This commit is contained in:
2024-11-13 15:29:09 +01:00
parent 4334af439c
commit 041603abe0
7 changed files with 10 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

@@ -19,6 +19,7 @@ const MapLocationTooltip: React.FC<MapLocationTooltipProps> = ({ location }) =>
src={location.image.url} src={location.image.url}
alt={location.image.name ?? location.name} alt={location.image.name ?? location.name}
title={location.image.credit ?? ""} title={location.image.credit ?? ""}
onError={(e) => {e.currentTarget.src = "img/locations/image_not_found.webp"}}
/> />
)} )}
{location.url && ( {location.url && (
+2
View File
@@ -42,7 +42,9 @@
img.locationimg { img.locationimg {
width: 100%; width: 100%;
height: auto; height: auto;
max-height: 40vh;
border-radius: 5px; border-radius: 5px;
object-fit: cover;
} }
a.more { a.more {
+1 -1
View File
@@ -3,7 +3,7 @@ import {MapLocation} from "../types/MapLocation.ts";
const capitals: MapLocation[] = [ const capitals: MapLocation[] = [
{ {
name: "Lune", name: "Lune",
description: "The capital of the Holy Empire Lubelius, home of God Luminous.", description: "The capital of the Holy Empire of Lubelius, is a majestic, white-stone city of faith and power, dominated by grand cathedrals and a strict devotion to order.",
image: { image: {
url: "img/locations/lune.webp", url: "img/locations/lune.webp",
name: "Lune from Episode 50", name: "Lune from Episode 50",
+1 -1
View File
@@ -16,7 +16,7 @@ const nations: MapRegion[] = [
ruler: "Youm Farmenas <span class='muted'>(King)</span><br>Mjur Farmenas<span class='muted'>(Queen)</span><br><s>King Edward</s><br><s>King Edomalis</s>", ruler: "Youm Farmenas <span class='muted'>(King)</span><br>Mjur Farmenas<span class='muted'>(Queen)</span><br><s>King Edward</s><br><s>King Edomalis</s>",
capital: "Marris", capital: "Marris",
population: "30M Citizens<br>10M Free People", population: "30M Citizens<br>10M Free People",
description: "One of the major powers among the western countries, a feudalistic society that stronly favors the nobility. Prospers as a trade route between the eastern and western sides of the continent.<br>The country has been established following a coup d'état within the Kingdom of Falmuth.", description: "One of the major powers among the western countries, a feudalistic society that strongly favors the nobility. Prospers as a trade route between the eastern and western sides of the continent.<br>The country has been established following a coup d'état within the Kingdom of Falmuth.",
points: "1377, 970, 1351, 975, 1318, 975, 1326, 996, 1346, 1012, 1377, 1034, 1401, 1049, 1423, 1060, 1445, 1067, 1462, 1069, 1476, 1067, 1493, 1056, 1505, 1048, 1521, 1039, 1537, 1030, 1549, 1027, 1557, 1026, 1567, 1027, 1575, 1015, 1598, 991, 1610, 977, 1630, 955, 1605, 940, 1584, 928, 1566, 915, 1547, 901, 1533, 887, 1519, 866, 1509, 845, 1503, 826, 1497, 803, 1490, 784, 1474, 799, 1462, 816, 1449, 829, 1444, 851, 1432, 870, 1420, 882, 1407, 899, 1391, 912, 1382, 933, 1372, 946, 1380, 956" points: "1377, 970, 1351, 975, 1318, 975, 1326, 996, 1346, 1012, 1377, 1034, 1401, 1049, 1423, 1060, 1445, 1067, 1462, 1069, 1476, 1067, 1493, 1056, 1505, 1048, 1521, 1039, 1537, 1030, 1549, 1027, 1557, 1026, 1567, 1027, 1575, 1015, 1598, 991, 1610, 977, 1630, 955, 1605, 940, 1584, 928, 1566, 915, 1547, 901, 1533, 887, 1519, 866, 1509, 845, 1503, 826, 1497, 803, 1490, 784, 1474, 799, 1462, 816, 1449, 829, 1444, 851, 1432, 870, 1420, 882, 1407, 899, 1391, 912, 1382, 933, 1372, 946, 1380, 956"
}, },
{ {
+5
View File
@@ -76,6 +76,11 @@ const pois: MapLocation[] = [
name: "Magic Tower", name: "Magic Tower",
description: "The scholarly facility created by the Trinity Wisemen.", description: "The scholarly facility created by the Trinity Wisemen.",
url: "https://tensura.fandom.com/wiki/Magic%20Tower", url: "https://tensura.fandom.com/wiki/Magic%20Tower",
image: {
url: "img/locations/magic_tower.webp",
name: "Magic Tower",
credit: "Screenshot from How to Spend a Certain Vacation Volume 1. Sourced from the Tensei Shitara Slime Datta Ken Wiki"
},
position: { x: "1138", y: "1355" } position: { x: "1138", y: "1355" }
}, },
{ {