fix: rename Static folder
@@ -1,6 +1,8 @@
|
|||||||
# Directories
|
# Directories
|
||||||
public/Static
|
public/_static
|
||||||
|
|
||||||
|
|
||||||
# Files
|
# Files
|
||||||
|
.prettierignore
|
||||||
app/core.css
|
app/core.css
|
||||||
app/scandic.css
|
app/scandic.css
|
||||||
@@ -21,11 +21,11 @@ export default function RootLayout({
|
|||||||
return (
|
return (
|
||||||
<html lang={params.lang}>
|
<html lang={params.lang}>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="/Static/css/core.css" />
|
<link rel="stylesheet" href="/_static/css/core.css" />
|
||||||
<link rel="stylesheet" href="/Static/css/scandic.css" />
|
<link rel="stylesheet" href="/_static/css/scandic.css" />
|
||||||
<Script
|
<Script
|
||||||
data-cookieconsent="ignore"
|
data-cookieconsent="ignore"
|
||||||
src="/Static/dist/js/cookie-bot.js?1705409331007"
|
src="/_static/dist/js/cookie-bot.js?1705409331007"
|
||||||
/>
|
/>
|
||||||
<Script
|
<Script
|
||||||
data-blockingmode="auto"
|
data-blockingmode="auto"
|
||||||
@@ -36,31 +36,31 @@ export default function RootLayout({
|
|||||||
/>
|
/>
|
||||||
{/* <Script
|
{/* <Script
|
||||||
data-cookieconsent="ignore"
|
data-cookieconsent="ignore"
|
||||||
src="/Static/dist/js/head.js?85c84c9e24ae8da3e7af"
|
src="/_static/dist/js/head.js?85c84c9e24ae8da3e7af"
|
||||||
/> */}
|
/> */}
|
||||||
<Script
|
<Script
|
||||||
data-cookieconsent="ignore"
|
data-cookieconsent="ignore"
|
||||||
src="/Static/dist/js/inline.js?00133e5a37de35c51a5d"
|
src="/_static/dist/js/inline.js?00133e5a37de35c51a5d"
|
||||||
/>
|
/>
|
||||||
<Script
|
<Script
|
||||||
data-cookieconsent="ignore"
|
data-cookieconsent="ignore"
|
||||||
src="/Static/dist/js/main.js?89d0030e1a04b3b46d0b"
|
src="/_static/dist/js/main.js?89d0030e1a04b3b46d0b"
|
||||||
/>
|
/>
|
||||||
<Script
|
<Script
|
||||||
data-cookieconsent="ignore"
|
data-cookieconsent="ignore"
|
||||||
src="/Static/dist/js/ng/polyfills.js?1705409330990"
|
src="/_static/dist/js/ng/polyfills.js?1705409330990"
|
||||||
/>
|
/>
|
||||||
<Script
|
<Script
|
||||||
data-cookieconsent="ignore"
|
data-cookieconsent="ignore"
|
||||||
src="/Static/dist/js/ng/runtime.js?1705409330990"
|
src="/_static/dist/js/ng/runtime.js?1705409330990"
|
||||||
/>
|
/>
|
||||||
<Script
|
<Script
|
||||||
data-cookieconsent="ignore"
|
data-cookieconsent="ignore"
|
||||||
src="/Static/dist/js/ng/main.js?1705409330990"
|
src="/_static/dist/js/ng/main.js?1705409330990"
|
||||||
/>
|
/>
|
||||||
{/* <Script
|
{/* <Script
|
||||||
data-cookieconsent="ignore"
|
data-cookieconsent="ignore"
|
||||||
src="/Static/dist/js/main-ng.js?336b801d6b38eff10884"
|
src="/_static/dist/js/main-ng.js?336b801d6b38eff10884"
|
||||||
strategy="lazyOnload"
|
strategy="lazyOnload"
|
||||||
/> */}
|
/> */}
|
||||||
<Script
|
<Script
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export default function Contact({
|
|||||||
>
|
>
|
||||||
<use
|
<use
|
||||||
xmlnsXlink="http://www.w3.org/1999/xlink"
|
xmlnsXlink="http://www.w3.org/1999/xlink"
|
||||||
xlinkHref="/Static/img/icons/sprites.svg#icon-phone"
|
xlinkHref="/_static/img/icons/sprites.svg#icon-phone"
|
||||||
></use>
|
></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.checkmark::before {
|
.checkmark::before {
|
||||||
content: url("/Static/img/bullet-list-tick-birch-v2.svg");
|
content: url("/_static/img/bullet-list-tick-birch-v2.svg");
|
||||||
transform: scale(0.9);
|
transform: scale(0.9);
|
||||||
left: -1.2em;
|
left: -1.2em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default async function Footer({ lang }: LangParams) {
|
|||||||
locale: lang,
|
locale: lang,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tags: [`footer-${lang}`]
|
tags: [`footer-${lang}`],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ display: none;
|
|||||||
<title id="facebook-icon">
|
<title id="facebook-icon">
|
||||||
{footerData.social_media.facebook.title}
|
{footerData.social_media.facebook.title}
|
||||||
</title>
|
</title>
|
||||||
<use xlinkHref="/Static/img/icons/sprites.svg#icon-facebook"></use>
|
<use xlinkHref="/_static/img/icons/sprites.svg#icon-facebook"></use>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
@@ -210,7 +210,7 @@ display: none;
|
|||||||
<title id="twitter-icon">
|
<title id="twitter-icon">
|
||||||
{footerData.social_media.twitter.title}
|
{footerData.social_media.twitter.title}
|
||||||
</title>
|
</title>
|
||||||
<use xlinkHref="/Static/img/icons/sprites.svg#icon-twitter"></use>
|
<use xlinkHref="/_static/img/icons/sprites.svg#icon-twitter"></use>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
@@ -230,7 +230,7 @@ display: none;
|
|||||||
<title id="instagram-icon">
|
<title id="instagram-icon">
|
||||||
{footerData.social_media.instagram.title}
|
{footerData.social_media.instagram.title}
|
||||||
</title>
|
</title>
|
||||||
<use xlinkHref="/Static/img/icons/sprites.svg#icon-instagram"></use>
|
<use xlinkHref="/_static/img/icons/sprites.svg#icon-instagram"></use>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default function Desktop({
|
|||||||
const divRef = useRef<HTMLDivElement>(null)
|
const divRef = useRef<HTMLDivElement>(null)
|
||||||
|
|
||||||
function toggleOpen() {
|
function toggleOpen() {
|
||||||
setIsOpen(prevIsOpen => !prevIsOpen)
|
setIsOpen((prevIsOpen) => !prevIsOpen)
|
||||||
}
|
}
|
||||||
|
|
||||||
const close = useCallback(() => {
|
const close = useCallback(() => {
|
||||||
@@ -31,10 +31,10 @@ export default function Desktop({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (divRef.current) {
|
if (divRef.current) {
|
||||||
document.addEventListener('click', handleClickOutside, false)
|
document.addEventListener("click", handleClickOutside, false)
|
||||||
}
|
}
|
||||||
return () => {
|
return () => {
|
||||||
document.removeEventListener('click', handleClickOutside, false)
|
document.removeEventListener("click", handleClickOutside, false)
|
||||||
}
|
}
|
||||||
}, [close])
|
}, [close])
|
||||||
|
|
||||||
@@ -51,31 +51,67 @@ export default function Desktop({
|
|||||||
className="icon icon--xs icon--white"
|
className="icon icon--xs icon--white"
|
||||||
viewBox="0 0 32 32"
|
viewBox="0 0 32 32"
|
||||||
>
|
>
|
||||||
<use xlinkHref="/Static/img/icons/sprites.svg#icon-globe"></use>
|
<use xlinkHref="/_static/img/icons/sprites.svg#icon-globe"></use>
|
||||||
</svg>
|
</svg>
|
||||||
{currentLanguage}
|
{currentLanguage}
|
||||||
<span className="hidden--accessible">Choose language</span>
|
<span className="hidden--accessible">Choose language</span>
|
||||||
<span className="caret"></span>
|
<span className="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul className={`${styles.dropdown} ${isOpen ? styles.isOpen : ""}`}>
|
<ul className={`${styles.dropdown} ${isOpen ? styles.isOpen : ""}`}>
|
||||||
<li className={currentLanguage === languages.en ? styles.active : undefined}>
|
<li
|
||||||
<a className={styles.link} href={urls.en?.url}>{languages.en}</a>
|
className={
|
||||||
|
currentLanguage === languages.en ? styles.active : undefined
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<a className={styles.link} href={urls.en?.url}>
|
||||||
|
{languages.en}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li className={currentLanguage === languages.sv ? styles.active : undefined}>
|
<li
|
||||||
<a className={styles.link} href={urls.sv?.url}>{languages.sv}</a>
|
className={
|
||||||
|
currentLanguage === languages.sv ? styles.active : undefined
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<a className={styles.link} href={urls.sv?.url}>
|
||||||
|
{languages.sv}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li className={currentLanguage === languages.no ? styles.active : undefined}>
|
<li
|
||||||
<a className={styles.link} href={urls.no?.url}>{languages.no}</a>
|
className={
|
||||||
|
currentLanguage === languages.no ? styles.active : undefined
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<a className={styles.link} href={urls.no?.url}>
|
||||||
|
{languages.no}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{/* When we have 6 languages in Contenstack, danish url should come from urls.da?.url */}
|
{/* When we have 6 languages in Contenstack, danish url should come from urls.da?.url */}
|
||||||
<li className={currentLanguage === languages.da ? styles.active : undefined}>
|
<li
|
||||||
<a className={styles.link} href="https://www.scandichotels.dk/">{languages.da}</a>
|
className={
|
||||||
|
currentLanguage === languages.da ? styles.active : undefined
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<a className={styles.link} href="https://www.scandichotels.dk/">
|
||||||
|
{languages.da}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li className={currentLanguage === languages.fi ? styles.active : undefined}>
|
<li
|
||||||
<a className={styles.link} href={urls.fi?.url}>{languages.fi}</a>
|
className={
|
||||||
|
currentLanguage === languages.fi ? styles.active : undefined
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<a className={styles.link} href={urls.fi?.url}>
|
||||||
|
{languages.fi}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li className={currentLanguage === languages.de ? styles.active : undefined}>
|
<li
|
||||||
<a className={styles.link} href={urls.de?.url}>{languages.de}</a>
|
className={
|
||||||
|
currentLanguage === languages.de ? styles.active : undefined
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<a className={styles.link} href={urls.de?.url}>
|
||||||
|
{languages.de}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -70,6 +70,6 @@ export const config = {
|
|||||||
* - _next/image (image optimization files)
|
* - _next/image (image optimization files)
|
||||||
* - favicon.ico (favicon file)
|
* - favicon.ico (favicon file)
|
||||||
*/
|
*/
|
||||||
"/((?!api|_next/static|_next/image|Static|imageVault|contentassets|favicon.ico).*)",
|
"/((?!api|_next/static|_next/image|_static|imageVault|contentassets|favicon.ico).*)",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10072,7 +10072,7 @@
|
|||||||
i.prototype.getSuggestionTemplate = function(e) {
|
i.prototype.getSuggestionTemplate = function(e) {
|
||||||
var t = "nordicsea";
|
var t = "nordicsea";
|
||||||
return "HotelPage" === e.Type ? t = "crocus" : "CityPage" === e.Type && (t = "dawn"),
|
return "HotelPage" === e.Type ? t = "crocus" : "CityPage" === e.Type && (t = "dawn"),
|
||||||
'<div class="needsclick"><svg class="icon icon--xs icon--' + t + '" viewBox="0 0 32 32"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Static/img/icons/sprites.svg#icon-map-marker"></use></svg>' + e.Name + "</div>"
|
'<div class="needsclick"><svg class="icon icon--xs icon--' + t + '" viewBox="0 0 32 32"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/_static/img/icons/sprites.svg#icon-map-marker"></use></svg>' + e.Name + "</div>"
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
i.prototype.getDefaultSuggestion = function() {
|
i.prototype.getDefaultSuggestion = function() {
|
||||||
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 222 B |
|
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 332 B |
|
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 336 B |
|
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 221 B |
|
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 307 B |
|
Before Width: | Height: | Size: 643 B After Width: | Height: | Size: 643 B |
|
Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 732 B |
|
Before Width: | Height: | Size: 643 B After Width: | Height: | Size: 643 B |
|
Before Width: | Height: | Size: 643 B After Width: | Height: | Size: 643 B |
|
Before Width: | Height: | Size: 807 B After Width: | Height: | Size: 807 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 610 B After Width: | Height: | Size: 610 B |
|
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 252 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 673 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 613 B |
|
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 555 B |
|
Before Width: | Height: | Size: 196 B After Width: | Height: | Size: 196 B |
|
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
|
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 555 B |
|
Before Width: | Height: | Size: 895 B After Width: | Height: | Size: 895 B |