Merge branch 'develop' into feat/build-initial-hotel-page-component

This commit is contained in:
Chuma McPhoy
2024-06-27 09:32:14 +02:00
15 changed files with 178 additions and 1880 deletions

View File

@@ -7,28 +7,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Friendly room rates", "title": "Prisvenlige værelser"
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "10% off on food on weekends", "title": "10% weekendrabat på mad"
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}, },
{ {
"title": "Free kids mocktail during stay", "title": "Gratis mocktail til børn under opholdet"
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/new-friend.svg"
}, },
{ {
"level": 2, "level": 2,
@@ -37,14 +24,9 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "15% on food on weekends", "title": "15% weekendrabat på mad"
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/good-friend.svg"
}, },
{ {
"level": 3, "level": 3,
@@ -53,21 +35,12 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Late checkout - 1 hour when available", "title": "Sen check ud 1 time, når tilgængelig"
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "50 SEK voucher", "title": "Voucher på 50 DKK"
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/close-friend.svg"
}, },
{ {
"level": 4, "level": 4,
@@ -76,28 +49,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "25% earn rate", "title": "25% optjeningsrate"
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Early check-in - 1 hour when available", "title": "Tidlig indcheckning, når tilgængelig"
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "75 SEK voucher", "title": "Voucher på 75 DKK"
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/dear-friend.svg"
}, },
{ {
"level": 5, "level": 5,
@@ -106,28 +66,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Free room upgrade when available", "title": "Gratis opgraderinger, når tilgængelige"
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
}, },
{ {
"title": "100 SEK voucher", "title": "Voucher på 100 DKK"
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "2-for-1 breakfast", "title": "2-for-1 på morgenmad"
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/loyal-friend.svg"
}, },
{ {
"level": 6, "level": 6,
@@ -136,35 +83,18 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "50% earn rate", "title": "50% optjeningsrate"
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "150 SEK voucher", "title": "Voucher på 150 DKK"
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "48h room guarantee", "title": "48-timers værelsesgaranti"
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Always free breakfast", "title": "Altid gratis morgenmad"
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/true-friend.svg"
}, },
{ {
"level": 7, "level": 7,
@@ -173,28 +103,15 @@
"requiredNights": 100, "requiredNights": 100,
"benefits": [ "benefits": [
{ {
"title": "200 SEK voucher", "title": "Voucher på 200 DKK"
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "Yearly exclusive gift", "title": "Årlig eksklusiv gave"
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Kid's boost", "title": "Børneboost"
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/best-friend.svg"
} }
] ]
} }

View File

@@ -7,28 +7,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Friendly room rates", "title": "Freundschaftspreise für Zimmer"
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "10% off on food on weekends", "title": "10 % Rabatt auf Speisen an den Wochenenden"
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}, },
{ {
"title": "Free kids mocktail during stay", "title": "Kostenloser Kinder-Mocktail während des Aufenthalts"
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/new-friend.svg"
}, },
{ {
"level": 2, "level": 2,
@@ -37,14 +24,9 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "15% on food on weekends", "title": "15 % Rabatt auf Speisen an den Wochenenden"
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/good-friend.svg"
}, },
{ {
"level": 3, "level": 3,
@@ -53,21 +35,12 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Late checkout - 1 hour when available", "title": "Später Check-out 1 Stunde, wenn verfügbar"
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "50 SEK voucher", "title": "Gutschein über 5 EUR"
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/close-friend.svg"
}, },
{ {
"level": 4, "level": 4,
@@ -76,28 +49,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "25% earn rate", "title": "25 % mehr Punkte"
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Early check-in - 1 hour when available", "title": "Früher Check-in 1 Stunde, wenn verfügbar"
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "75 SEK voucher", "title": "Gutschein über 7,50 EUR"
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/dear-friend.svg"
}, },
{ {
"level": 5, "level": 5,
@@ -106,28 +66,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Free room upgrade when available", "title": "Kostenloses Zimmer-Upgrade, wenn verfügbar"
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
}, },
{ {
"title": "100 SEK voucher", "title": "Gutschein über 10 EUR"
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "2-for-1 breakfast", "title": "Frühstück für zwei zum Preis von einem"
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/loyal-friend.svg"
}, },
{ {
"level": 6, "level": 6,
@@ -136,35 +83,18 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "50% earn rate", "title": "50 % mehr Punkte"
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "150 SEK voucher", "title": "Gutschein über 15 EUR"
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "48h room guarantee", "title": "48-Stunden-Zimmergarantie"
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Always free breakfast", "title": "Jederzeit ein kostenloses Frühstück"
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/true-friend.svg"
}, },
{ {
"level": 7, "level": 7,
@@ -173,28 +103,15 @@
"requiredNights": 100, "requiredNights": 100,
"benefits": [ "benefits": [
{ {
"title": "200 SEK voucher", "title": "Gutschein über 20 EUR"
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "Yearly exclusive gift", "title": "Ein exklusives Geschenk pro Jahr"
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Kid's boost", "title": "Ein Geschenk für Kinder"
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/best-friend.svg"
} }
] ]
} }

View File

@@ -7,28 +7,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Friendly room rates", "title": "Friendly room rates"
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "10% off on food on weekends", "title": "10% off on food on weekends"
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}, },
{ {
"title": "Free kids mocktail during stay", "title": "Free kids mocktail during stay"
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/new-friend.svg"
}, },
{ {
"level": 2, "level": 2,
@@ -37,14 +24,9 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "15% on food on weekends", "title": "15% on food on weekends"
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/good-friend.svg"
}, },
{ {
"level": 3, "level": 3,
@@ -53,21 +35,12 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Late checkout - 1 hour when available", "title": "Late checkout - 1 hour when available"
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "50 SEK voucher", "title": "50 SEK voucher"
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/close-friend.svg"
}, },
{ {
"level": 4, "level": 4,
@@ -76,28 +49,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "25% earn rate", "title": "25% earn rate"
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Early check-in - 1 hour when available", "title": "Early check-in - 1 hour when available"
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "75 SEK voucher", "title": "75 SEK voucher"
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/dear-friend.svg"
}, },
{ {
"level": 5, "level": 5,
@@ -106,28 +66,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Free room upgrade when available", "title": "Free room upgrade when available"
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
}, },
{ {
"title": "100 SEK voucher", "title": "100 SEK voucher"
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "2-for-1 breakfast", "title": "2-for-1 breakfast"
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/loyal-friend.svg"
}, },
{ {
"level": 6, "level": 6,
@@ -136,35 +83,18 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "50% earn rate", "title": "50% earn rate"
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "150 SEK voucher", "title": "150 SEK voucher"
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "48h room guarantee", "title": "48h room guarantee"
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Always free breakfast", "title": "Always free breakfast"
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/true-friend.svg"
}, },
{ {
"level": 7, "level": 7,
@@ -173,28 +103,15 @@
"requiredNights": 100, "requiredNights": 100,
"benefits": [ "benefits": [
{ {
"title": "200 SEK voucher", "title": "200 SEK voucher"
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "Yearly exclusive gift", "title": "Yearly exclusive gift"
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Kid's boost", "title": "Kid's boost"
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/best-friend.svg"
} }
] ]
} }

View File

@@ -7,28 +7,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Friendly room rates", "title": "Ystävälliset huonehinnat"
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "10% off on food on weekends", "title": "10 % alennusta ruoasta viikonloppuisin"
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}, },
{ {
"title": "Free kids mocktail during stay", "title": "Maksuton lasten mocktail majoituksen aikana"
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/new-friend.svg"
}, },
{ {
"level": 2, "level": 2,
@@ -37,14 +24,9 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "15% on food on weekends", "title": "15 % alennusta ruoasta viikonloppuisin"
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/good-friend.svg"
}, },
{ {
"level": 3, "level": 3,
@@ -53,21 +35,12 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Late checkout - 1 hour when available", "title": "Myöhäinen uloskirjautuminen 1 tunti lisäaikaa varaustilanteen mukaan"
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "50 SEK voucher", "title": "Ravintolakuponki (arvo 5 €)"
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/close-friend.svg"
}, },
{ {
"level": 4, "level": 4,
@@ -76,28 +49,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "25% earn rate", "title": "Ansaintakerroin 25 %"
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Early check-in - 1 hour when available", "title": "Aikainen sisäänkirjautuminen 1 tunti lisäaikaa varaustilanteen mukaan"
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "75 SEK voucher", "title": "Ravintolakuponki (arvo 7,50 €)"
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/dear-friend.svg"
}, },
{ {
"level": 5, "level": 5,
@@ -106,28 +66,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Free room upgrade when available", "title": "Maksuton huoneluokan korotus varaustilanteen mukaan"
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
}, },
{ {
"title": "100 SEK voucher", "title": "Ravintolakuponki (arvo 10 €)"
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "2-for-1 breakfast", "title": "Aamiainen kaksi yhden hinnalla"
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/loyal-friend.svg"
}, },
{ {
"level": 6, "level": 6,
@@ -136,35 +83,18 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "50% earn rate", "title": "Ansaintakerroin +50 %"
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "150 SEK voucher", "title": "Ravintolakuponki (arvo 15 €)"
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "48h room guarantee", "title": "48 tunnin huonetakuu"
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Always free breakfast", "title": "Aamiainen aina maksutta"
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/true-friend.svg"
}, },
{ {
"level": 7, "level": 7,
@@ -173,28 +103,15 @@
"requiredNights": 100, "requiredNights": 100,
"benefits": [ "benefits": [
{ {
"title": "200 SEK voucher", "title": "Ravintolakuponki (arvo 20 €)"
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "Yearly exclusive gift", "title": "Henkilökohtainen lahja vuosittain"
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Kid's boost", "title": "Tervetuliaislahja lapselle"
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltyLevels/best-friend.svg"
} }
] ]
} }

View File

@@ -7,28 +7,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Friendly room rates", "title": "Vennlige rompriser"
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "10% off on food on weekends", "title": "10 % rabatt på mat i helger"
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}, },
{ {
"title": "Free kids mocktail during stay", "title": "Gratis barne-mocktail under oppholdet"
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
}, },
{ {
"level": 2, "level": 2,
@@ -37,14 +24,9 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "15% on food on weekends", "title": "15 % rabatt på mat i helger"
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
}, },
{ {
"level": 3, "level": 3,
@@ -53,21 +35,12 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Late checkout - 1 hour when available", "title": "Sen utsjekking 1 time når tilgjengelig"
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "50 SEK voucher", "title": "Kupong på 50 NOK"
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
}, },
{ {
"level": 4, "level": 4,
@@ -76,28 +49,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "25% earn rate", "title": "25 % opptjeningsrate"
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Early check-in - 1 hour when available", "title": "Tidlig innsjekk 1 time når tilgjengelig"
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "75 SEK voucher", "title": "Kupong på 75 NOK"
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
}, },
{ {
"level": 5, "level": 5,
@@ -106,28 +66,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Free room upgrade when available", "title": "Gratis romoppgradering når tilgjengelig"
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
}, },
{ {
"title": "100 SEK voucher", "title": "Kupong på 100 NOK"
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "2-for-1 breakfast", "title": "2-for-1 frokost"
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
}, },
{ {
"level": 6, "level": 6,
@@ -136,35 +83,18 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "50% earn rate", "title": "50 % opptjeningsrate"
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "150 SEK voucher", "title": "Kupong på 150 NOK"
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "48h room guarantee", "title": "Romgaranti i 48 timer"
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Always free breakfast", "title": "Alltid gratis frokost"
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
}, },
{ {
"level": 7, "level": 7,
@@ -173,28 +103,15 @@
"requiredNights": 100, "requiredNights": 100,
"benefits": [ "benefits": [
{ {
"title": "200 SEK voucher", "title": "Kupong på 200 NOK"
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "Yearly exclusive gift", "title": "Årlig eksklusiv gave"
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Kid's boost", "title": "Boost for barn"
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
} }
] ]
} }

View File

@@ -7,28 +7,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Friendly room rates", "title": "Friendspriser på rum"
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "10% off on food on weekends", "title": "10 % rabatt på mat under helger"
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}, },
{ {
"title": "Free kids mocktail during stay", "title": "Kostnadsfri mocktail för barn under vistelse"
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
}, },
{ {
"level": 2, "level": 2,
@@ -37,14 +24,9 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "15% on food on weekends", "title": "15 % rabatt på mat under helger"
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
}, },
{ {
"level": 3, "level": 3,
@@ -53,21 +35,12 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Late checkout - 1 hour when available", "title": "Sen utcheckning 1 timme, i mån av plats"
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "50 SEK voucher", "title": "Voucher 50 kr"
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
}, },
{ {
"level": 4, "level": 4,
@@ -76,28 +49,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "25% earn rate", "title": "25% poängboost"
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Early check-in - 1 hour when available", "title": "Tidig incheckning 1 timme, i mån av plats"
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
}, },
{ {
"title": "75 SEK voucher", "title": "Voucher 75 kr"
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
}, },
{ {
"level": 5, "level": 5,
@@ -106,28 +66,15 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "Free room upgrade when available", "title": "Kostnadsfri uppgradering av rum, i mån av plats"
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
}, },
{ {
"title": "100 SEK voucher", "title": "Voucher 100 kr"
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "2-for-1 breakfast", "title": "Frukost 2 för 1"
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
}, },
{ {
"level": 6, "level": 6,
@@ -136,35 +83,18 @@
"requiredNights": 0, "requiredNights": 0,
"benefits": [ "benefits": [
{ {
"title": "50% earn rate", "title": "50% poängboost"
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "150 SEK voucher", "title": "Voucher 150 kr"
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "48h room guarantee", "title": "48 timmars rumsgaranti"
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Always free breakfast", "title": "Alltid kostnadsfri frukost"
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
}, },
{ {
"level": 7, "level": 7,
@@ -173,28 +103,15 @@
"requiredNights": 100, "requiredNights": 100,
"benefits": [ "benefits": [
{ {
"title": "200 SEK voucher", "title": "Voucher 200 kr"
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}, },
{ {
"title": "Yearly exclusive gift", "title": "Spännande gåva varje år"
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
}, },
{ {
"title": "Kid's boost", "title": "Boost för barn"
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
} }
], ]
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
} }
] ]
} }

View File

@@ -1,5 +1,6 @@
import { Lock } from "react-feather" import { Lock } from "react-feather"
import { MembershipLevelEnum } from "@/constants/membershipLevels"
import { serverClient } from "@/lib/trpc/server" import { serverClient } from "@/lib/trpc/server"
import SectionContainer from "@/components/Section/Container" import SectionContainer from "@/components/Section/Container"
@@ -9,6 +10,7 @@ import Grids from "@/components/TempDesignSystem/Grids"
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript" import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
import { getIntl } from "@/i18n" import { getIntl } from "@/i18n"
import { getMembershipLevelObject } from "@/utils/membershipLevel"
import styles from "./next.module.css" import styles from "./next.module.css"
@@ -17,16 +19,30 @@ import { AccountPageComponentProps } from "@/types/components/myPages/myPage/acc
export default async function NextLevelBenefitsBlock({ export default async function NextLevelBenefitsBlock({
title, title,
subtitle, subtitle,
lang,
link, link,
}: AccountPageComponentProps) { }: AccountPageComponentProps) {
const { nextLevel, perks } = await serverClient().user.benefits.nextLevel()
const { formatMessage } = await getIntl() const { formatMessage } = await getIntl()
const user = await serverClient().user.get()
if (!user) {
return null
}
const nextLevel = getMembershipLevelObject(
user.memberships[0].membershipLevel as MembershipLevelEnum,
lang,
"nextLevel"
)
if (!nextLevel) {
// TODO: handle this case, when missing or when user is top level?
return null
}
// TODO: how to handle different count of unlockable benefits?
return ( return (
<SectionContainer> <SectionContainer>
<Header title={title} subtitle={subtitle} link={link} /> <Header title={title} subtitle={subtitle} link={link} />
<Grids.Stackable> <Grids.Stackable>
{perks.map((perk) => ( {nextLevel.benefits.map((benefit) => (
<article key={perk.id} className={styles.card}> <article key={benefit.title} className={styles.card}>
<Chip> <Chip>
<Lock height={16} /> <Lock height={16} />
{formatMessage({ id: "Level up to unlock" })} {formatMessage({ id: "Level up to unlock" })}
@@ -38,10 +54,10 @@ export default async function NextLevelBenefitsBlock({
textAlign="center" textAlign="center"
type="two" type="two"
> >
{formatMessage({ id: "As our" })} {nextLevel} {formatMessage({ id: "As our" })} {nextLevel.name}
</BiroScript>{" "} </BiroScript>{" "}
<Subtitle color="pale" textAlign="center"> <Subtitle color="pale" textAlign="center">
{perk.explanation} {benefit.title}
</Subtitle> </Subtitle>
</div> </div>
</article> </article>

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,200 +0,0 @@
{
"levels": [
{
"level": 1,
"name": "New Friend",
"requiredPoints": 0,
"requiredNights": 0,
"benefits": [
{
"title": "Friendly room rates",
"value": "Friendly room rates",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "10% off on food on weekends",
"value": "10% off",
"explanation": "on food on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
},
{
"title": "Free kids mocktail during stay",
"value": "Free kids mocktail",
"explanation": "during stay",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/new-friend.svg"
},
{
"level": 2,
"name": "Good Friend",
"requiredPoints": 5000,
"requiredNights": 0,
"benefits": [
{
"title": "15% on food on weekends",
"value": "15% on food",
"explanation": "on weekends",
"description": "Go ahead use your friendly discount to grab a bite during weekends.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/good-friend.svg"
},
{
"level": 3,
"name": "Close Friend",
"requiredPoints": 10000,
"requiredNights": 0,
"benefits": [
{
"title": "Late checkout - 1 hour when available",
"value": "Late checkout",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "50 SEK voucher",
"value": "50 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/close-friend.svg"
},
{
"level": 4,
"name": "Dear Friend",
"requiredPoints": 25000,
"requiredNights": 0,
"benefits": [
{
"title": "25% earn rate",
"value": "25% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Early check-in - 1 hour when available",
"value": "Early check-in",
"explanation": "- 1 hour when available",
"description": "",
"href": ""
},
{
"title": "75 SEK voucher",
"value": "75 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/dear-friend.svg"
},
{
"level": 5,
"name": "Loyal Friend",
"requiredPoints": 100000,
"requiredNights": 0,
"benefits": [
{
"title": "Free room upgrade when available",
"value": "Free room upgrade",
"explanation": "when available",
"description": "",
"href": ""
},
{
"title": "100 SEK voucher",
"value": "100 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "2-for-1 breakfast",
"value": "2-for-1 breakfast",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/loyal-friend.svg"
},
{
"level": 6,
"name": "True Friend",
"requiredPoints": 250000,
"requiredNights": 0,
"benefits": [
{
"title": "50% earn rate",
"value": "50% earn rate",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "150 SEK voucher",
"value": "150 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "48h room guarantee",
"value": "48h room guarantee",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Always free breakfast",
"value": "Always free breakfast",
"explanation": "Always free breakfast",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/true-friend.svg"
},
{
"level": 7,
"name": "Best Friend",
"requiredPoints": 400000,
"requiredNights": 100,
"benefits": [
{
"title": "200 SEK voucher",
"value": "200 SEK voucher",
"explanation": "",
"description": "Yeah, thats right: for each friendship point-boosting night, you get a voucher to redeem when you dine or drink at our restaurants and bars.",
"href": ""
},
{
"title": "Yearly exclusive gift",
"value": "Yearly exclusive gift",
"explanation": "",
"description": "",
"href": ""
},
{
"title": "Kid's boost",
"value": "Kid's boost",
"explanation": "",
"description": "",
"href": ""
}
],
"icon": "/_static/icons/loyaltylevels/best-friend.svg"
}
]
}

View File

@@ -1,19 +0,0 @@
import { Lang } from "@/constants/languages"
import DA from "./DA.json"
import DE from "./DE.json"
import EN from "./EN.json"
import FI from "./FI.json"
import NO from "./NO.json"
import SV from "./SV.json"
const levelsData = {
[Lang.en]: EN,
[Lang.sv]: SV,
[Lang.no]: NO,
[Lang.fi]: FI,
[Lang.da]: DA,
[Lang.de]: DE,
}
export default levelsData

View File

@@ -28,7 +28,7 @@ export type CardsGridProps = Pick<CardsGrid, "cards_grid">
export type Content = { content: RteBlockContent["content"]["content"] } export type Content = { content: RteBlockContent["content"]["content"] }
type Benefit = { title: string; description: string } type Benefit = { title: string }
type OverviewTableTitleTranslation = { type OverviewTableTitleTranslation = {
text: string text: string
@@ -44,7 +44,6 @@ export type Level = {
name: string name: string
requiredPoints: number requiredPoints: number
requiredNights?: number requiredNights?: number
icon: string
benefits: Benefit[] benefits: Benefit[]
} }