fix: rename Static folder
@@ -1,6 +1,8 @@
|
||||
# Directories
|
||||
public/Static
|
||||
public/_static
|
||||
|
||||
|
||||
# Files
|
||||
.prettierignore
|
||||
app/core.css
|
||||
app/scandic.css
|
||||
@@ -21,11 +21,11 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang={params.lang}>
|
||||
<head>
|
||||
<link rel="stylesheet" href="/Static/css/core.css" />
|
||||
<link rel="stylesheet" href="/Static/css/scandic.css" />
|
||||
<link rel="stylesheet" href="/_static/css/core.css" />
|
||||
<link rel="stylesheet" href="/_static/css/scandic.css" />
|
||||
<Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/Static/dist/js/cookie-bot.js?1705409331007"
|
||||
src="/_static/dist/js/cookie-bot.js?1705409331007"
|
||||
/>
|
||||
<Script
|
||||
data-blockingmode="auto"
|
||||
@@ -36,31 +36,31 @@ export default function RootLayout({
|
||||
/>
|
||||
{/* <Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/Static/dist/js/head.js?85c84c9e24ae8da3e7af"
|
||||
src="/_static/dist/js/head.js?85c84c9e24ae8da3e7af"
|
||||
/> */}
|
||||
<Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/Static/dist/js/inline.js?00133e5a37de35c51a5d"
|
||||
src="/_static/dist/js/inline.js?00133e5a37de35c51a5d"
|
||||
/>
|
||||
<Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/Static/dist/js/main.js?89d0030e1a04b3b46d0b"
|
||||
src="/_static/dist/js/main.js?89d0030e1a04b3b46d0b"
|
||||
/>
|
||||
<Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/Static/dist/js/ng/polyfills.js?1705409330990"
|
||||
src="/_static/dist/js/ng/polyfills.js?1705409330990"
|
||||
/>
|
||||
<Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/Static/dist/js/ng/runtime.js?1705409330990"
|
||||
src="/_static/dist/js/ng/runtime.js?1705409330990"
|
||||
/>
|
||||
<Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/Static/dist/js/ng/main.js?1705409330990"
|
||||
src="/_static/dist/js/ng/main.js?1705409330990"
|
||||
/>
|
||||
{/* <Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/Static/dist/js/main-ng.js?336b801d6b38eff10884"
|
||||
src="/_static/dist/js/main-ng.js?336b801d6b38eff10884"
|
||||
strategy="lazyOnload"
|
||||
/> */}
|
||||
<Script
|
||||
|
||||
@@ -43,7 +43,7 @@ export default function Contact({
|
||||
>
|
||||
<use
|
||||
xmlnsXlink="http://www.w3.org/1999/xlink"
|
||||
xlinkHref="/Static/img/icons/sprites.svg#icon-phone"
|
||||
xlinkHref="/_static/img/icons/sprites.svg#icon-phone"
|
||||
></use>
|
||||
</svg>
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
}
|
||||
|
||||
.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);
|
||||
left: -1.2em;
|
||||
}
|
||||
@@ -69,4 +69,4 @@
|
||||
.title {
|
||||
font-size: 1.625rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ export default async function Footer({ lang }: LangParams) {
|
||||
locale: lang,
|
||||
},
|
||||
{
|
||||
tags: [`footer-${lang}`]
|
||||
tags: [`footer-${lang}`],
|
||||
}
|
||||
)
|
||||
|
||||
@@ -190,7 +190,7 @@ display: none;
|
||||
<title id="facebook-icon">
|
||||
{footerData.social_media.facebook.title}
|
||||
</title>
|
||||
<use xlinkHref="/Static/img/icons/sprites.svg#icon-facebook"></use>
|
||||
<use xlinkHref="/_static/img/icons/sprites.svg#icon-facebook"></use>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
@@ -210,7 +210,7 @@ display: none;
|
||||
<title id="twitter-icon">
|
||||
{footerData.social_media.twitter.title}
|
||||
</title>
|
||||
<use xlinkHref="/Static/img/icons/sprites.svg#icon-twitter"></use>
|
||||
<use xlinkHref="/_static/img/icons/sprites.svg#icon-twitter"></use>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
@@ -230,7 +230,7 @@ display: none;
|
||||
<title id="instagram-icon">
|
||||
{footerData.social_media.instagram.title}
|
||||
</title>
|
||||
<use xlinkHref="/Static/img/icons/sprites.svg#icon-instagram"></use>
|
||||
<use xlinkHref="/_static/img/icons/sprites.svg#icon-instagram"></use>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,7 @@ export default function Desktop({
|
||||
const divRef = useRef<HTMLDivElement>(null)
|
||||
|
||||
function toggleOpen() {
|
||||
setIsOpen(prevIsOpen => !prevIsOpen)
|
||||
setIsOpen((prevIsOpen) => !prevIsOpen)
|
||||
}
|
||||
|
||||
const close = useCallback(() => {
|
||||
@@ -31,10 +31,10 @@ export default function Desktop({
|
||||
}
|
||||
|
||||
if (divRef.current) {
|
||||
document.addEventListener('click', handleClickOutside, false)
|
||||
document.addEventListener("click", handleClickOutside, false)
|
||||
}
|
||||
return () => {
|
||||
document.removeEventListener('click', handleClickOutside, false)
|
||||
document.removeEventListener("click", handleClickOutside, false)
|
||||
}
|
||||
}, [close])
|
||||
|
||||
@@ -51,31 +51,67 @@ export default function Desktop({
|
||||
className="icon icon--xs icon--white"
|
||||
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>
|
||||
{currentLanguage}
|
||||
<span className="hidden--accessible">Choose language</span>
|
||||
<span className="caret"></span>
|
||||
</button>
|
||||
<ul className={`${styles.dropdown} ${isOpen ? styles.isOpen : ""}`}>
|
||||
<li className={currentLanguage === languages.en ? styles.active : undefined}>
|
||||
<a className={styles.link} href={urls.en?.url}>{languages.en}</a>
|
||||
<li
|
||||
className={
|
||||
currentLanguage === languages.en ? styles.active : undefined
|
||||
}
|
||||
>
|
||||
<a className={styles.link} href={urls.en?.url}>
|
||||
{languages.en}
|
||||
</a>
|
||||
</li>
|
||||
<li className={currentLanguage === languages.sv ? styles.active : undefined}>
|
||||
<a className={styles.link} href={urls.sv?.url}>{languages.sv}</a>
|
||||
<li
|
||||
className={
|
||||
currentLanguage === languages.sv ? styles.active : undefined
|
||||
}
|
||||
>
|
||||
<a className={styles.link} href={urls.sv?.url}>
|
||||
{languages.sv}
|
||||
</a>
|
||||
</li>
|
||||
<li className={currentLanguage === languages.no ? styles.active : undefined}>
|
||||
<a className={styles.link} href={urls.no?.url}>{languages.no}</a>
|
||||
<li
|
||||
className={
|
||||
currentLanguage === languages.no ? styles.active : undefined
|
||||
}
|
||||
>
|
||||
<a className={styles.link} href={urls.no?.url}>
|
||||
{languages.no}
|
||||
</a>
|
||||
</li>
|
||||
{/* When we have 6 languages in Contenstack, danish url should come from urls.da?.url */}
|
||||
<li className={currentLanguage === languages.da ? styles.active : undefined}>
|
||||
<a className={styles.link} href="https://www.scandichotels.dk/">{languages.da}</a>
|
||||
<li
|
||||
className={
|
||||
currentLanguage === languages.da ? styles.active : undefined
|
||||
}
|
||||
>
|
||||
<a className={styles.link} href="https://www.scandichotels.dk/">
|
||||
{languages.da}
|
||||
</a>
|
||||
</li>
|
||||
<li className={currentLanguage === languages.fi ? styles.active : undefined}>
|
||||
<a className={styles.link} href={urls.fi?.url}>{languages.fi}</a>
|
||||
<li
|
||||
className={
|
||||
currentLanguage === languages.fi ? styles.active : undefined
|
||||
}
|
||||
>
|
||||
<a className={styles.link} href={urls.fi?.url}>
|
||||
{languages.fi}
|
||||
</a>
|
||||
</li>
|
||||
<li className={currentLanguage === languages.de ? styles.active : undefined}>
|
||||
<a className={styles.link} href={urls.de?.url}>{languages.de}</a>
|
||||
<li
|
||||
className={
|
||||
currentLanguage === languages.de ? styles.active : undefined
|
||||
}
|
||||
>
|
||||
<a className={styles.link} href={urls.de?.url}>
|
||||
{languages.de}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -70,6 +70,6 @@ export const config = {
|
||||
* - _next/image (image optimization files)
|
||||
* - 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) {
|
||||
var t = "nordicsea";
|
||||
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() {
|
||||
|
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 |