Merged in feature/copy-static-files-via-build-scripts (pull request #2798)

SW-3467 Copy static files via build scripts

* add file copy script and add all fonts to design-system

* add file copy script and add all fonts to design-system

* add file copy script and add all fonts to design-system

* remove fonts that will be copied via build scripts

* wip

* update paths to shared files

* update material-symbol script

* merge

* fix missing shared segment for path in fonts.css


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-09-16 10:59:33 +00:00
parent 33ce30a1c8
commit 48324ef935
220 changed files with 71875 additions and 725 deletions

View File

@@ -54,3 +54,7 @@ node_modules/
/playwright-report/ /playwright-report/
/blob-report/ /blob-report/
/playwright/.cache/ /playwright/.cache/
# copied shared files
public/_static/shared

View File

@@ -14,7 +14,8 @@
"test:watch": "vitest", "test:watch": "vitest",
"test:e2e": "playwright test", "test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui", "test:e2e:ui": "playwright test --ui",
"test:e2e:debug": "playwright test --debug" "test:e2e:debug": "playwright test --debug",
"include:shared": "jiti ../../scripts/copyFiles.ts ../../shared/ public/_static/shared"
}, },
"dependencies": { "dependencies": {
"@formatjs/intl": "^3.1.6", "@formatjs/intl": "^3.1.6",

View File

@@ -1,93 +0,0 @@
Copyright (c) 2012-2015, The Mozilla Foundation and Telefonica S.A.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@@ -2,13 +2,17 @@
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"lint": { "dependsOn": [] }, "lint": { "dependsOn": [] },
"build": { "dependsOn": [] }, "build": { "dependsOn": ["include:shared"] },
"dev": { "dependsOn": ["include:shared"] },
"test": { "test": {
"dependsOn": [ "dependsOn": [
"@scandic-hotels/trpc#test", "@scandic-hotels/trpc#test",
"@scandic-hotels/common#test", "@scandic-hotels/common#test",
"@scandic-hotels/booking-flow#test" "@scandic-hotels/booking-flow#test"
] ]
},
"include:shared": {
"outputs": ["public/_static/shared/**"]
} }
} }
} }

View File

@@ -60,3 +60,5 @@ variables.css
.yarn/releases .yarn/releases
.swc .swc
public/_static/shared

View File

@@ -3,28 +3,28 @@ export function FontPreload() {
<> <>
<link <link
rel="preload" rel="preload"
href="/_static/fonts/biro-script-plus/regular.woff2" href="/_static/shared/fonts/biro-script-plus/regular.woff2"
as="font" as="font"
type="font/woff2" type="font/woff2"
crossOrigin="anonymous" crossOrigin="anonymous"
/> />
<link <link
rel="preload" rel="preload"
href="/_static/fonts/brandon-text/bold.woff2" href="/_static/shared/fonts/brandon-text/bold.woff2"
as="font" as="font"
type="font/woff2" type="font/woff2"
crossOrigin="anonymous" crossOrigin="anonymous"
/> />
<link <link
rel="preload" rel="preload"
href="/_static/fonts/fira-sans/medium.woff2" href="/_static/shared/fonts/fira-sans/medium.woff2"
as="font" as="font"
type="font/woff2" type="font/woff2"
crossOrigin="anonymous" crossOrigin="anonymous"
/> />
<link <link
rel="preload" rel="preload"
href="/_static/fonts/fira-sans/regular.woff2" href="/_static/shared/fonts/fira-sans/regular.woff2"
as="font" as="font"
type="font/woff2" type="font/woff2"
crossOrigin="anonymous" crossOrigin="anonymous"

View File

@@ -19,7 +19,8 @@
"test:watch": "vitest", "test:watch": "vitest",
"ci:build": "yarn lint && yarn test && yarn build", "ci:build": "yarn lint && yarn test && yarn build",
"clean": "rm -rf .next", "clean": "rm -rf .next",
"check-types": "tsc --noEmit" "check-types": "tsc --noEmit",
"include:shared": "jiti ../../scripts/copyFiles.ts ../../shared public/_static/shared"
}, },
"dependencies": { "dependencies": {
"@contentstack/live-preview-utils": "^3.2.1", "@contentstack/live-preview-utils": "^3.2.1",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,93 +0,0 @@
Copyright (c) 2012-2013, The Mozilla Corporation and Telefonica S.A.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@@ -1,93 +0,0 @@
Copyright (c) 2012-2015, The Mozilla Foundation and Telefonica S.A.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@@ -2,13 +2,17 @@
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"lint": { "dependsOn": [] }, "lint": { "dependsOn": [] },
"build": { "dependsOn": [] }, "build": { "dependsOn": ["include:shared"] },
"dev": { "dependsOn": ["include:shared"] },
"test": { "test": {
"dependsOn": [ "dependsOn": [
"@scandic-hotels/trpc#test", "@scandic-hotels/trpc#test",
"@scandic-hotels/common#test", "@scandic-hotels/common#test",
"@scandic-hotels/booking-flow#test" "@scandic-hotels/booking-flow#test"
] ]
},
"include:shared": {
"outputs": ["public/_static/shared/**"]
} }
} }
} }

View File

@@ -37,6 +37,7 @@
"@types/react": "19.1.0", "@types/react": "19.1.0",
"@types/react-dom": "19.1.0", "@types/react-dom": "19.1.0",
"@yarnpkg/types": "^4.0.1", "@yarnpkg/types": "^4.0.1",
"commander": "^14.0.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"jiti": "^1.21.0", "jiti": "^1.21.0",
"lint-staged": "^15.2.2", "lint-staged": "^15.2.2",

View File

@@ -22,7 +22,7 @@
rgba(0, 0, 0, 0.36) 37.88%, rgba(0, 0, 0, 0.36) 37.88%,
rgba(0, 0, 0, 0.75) 100% rgba(0, 0, 0, 0.75) 100%
), ),
url("/_static/img/Scandic_Park_Party_Lipstick.jpg"); url("/_static/shared/images/Scandic_Park_Party_Lipstick.jpg");
} }
.link:nth-of-type(2) .promo { .link:nth-of-type(2) .promo {
@@ -33,7 +33,7 @@
rgba(0, 0, 0, 0.36) 37.88%, rgba(0, 0, 0, 0.36) 37.88%,
rgba(0, 0, 0, 0.75) 100% rgba(0, 0, 0, 0.75) 100%
), ),
url("/_static/img/Scandic_Family_Breakfast.jpg"); url("/_static/shared/images/Scandic_Family_Breakfast.jpg");
} }
.text { .text {

View File

@@ -26,3 +26,4 @@ dist-ssr
storybook-static storybook-static
*storybook.log *storybook.log
public/_static/shared

View File

@@ -3,7 +3,7 @@
font-family: 'biro script plus'; font-family: 'biro script plus';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url(/_static/fonts/biro-script-plus/regular.woff2) format('woff2'); src: url(/_static/shared/fonts/biro-script-plus/regular.woff2) format('woff2');
} }
@font-face { @font-face {
@@ -11,8 +11,8 @@
font-family: 'brandon text'; font-family: 'brandon text';
font-weight: 700; font-weight: 700;
src: src:
url(/_static/fonts/brandon-text/bold.woff2) format('woff2'), url(/_static/shared/fonts/brandon-text/bold.woff2) format('woff2'),
url(/_static/fonts/brandon-text/bold.woff) format('woff'); url(/_static/shared/fonts/brandon-text/bold.woff) format('woff');
} }
@font-face { @font-face {
@@ -20,8 +20,8 @@
font-family: 'brandon text'; font-family: 'brandon text';
font-weight: 900; font-weight: 900;
src: src:
url(/_static/fonts/brandon-text/black.woff2) format('woff2'), url(/_static/shared/fonts/brandon-text/black.woff2) format('woff2'),
url(/_static/fonts/brandon-text/black.woff) format('woff'); url(/_static/shared/fonts/brandon-text/black.woff) format('woff');
} }
@font-face { @font-face {
@@ -30,9 +30,9 @@
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
src: src:
url(/_static/fonts/domaine/domainesanstextweb-light-webfont.woff2) url(/_static/shared/fonts/domaine/domainesanstextweb-light-webfont.woff2)
format('woff2'), format('woff2'),
url(/_static/fonts/domaine/domainesanstextweb-light-webfont.woff) url(/_static/shared/fonts/domaine/domainesanstextweb-light-webfont.woff)
format('woff'); format('woff');
} }
@@ -42,9 +42,9 @@
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: src:
url(/_static/fonts/domaine/domainesanstextweb-regular-webfont.woff2) url(/_static/shared/fonts/domaine/domainesanstextweb-regular-webfont.woff2)
format('woff2'), format('woff2'),
url(/_static/fonts/domaine/domainesanstextweb-regular-webfont.woff) url(/_static/shared/fonts/domaine/domainesanstextweb-regular-webfont.woff)
format('woff'); format('woff');
} }
@@ -53,7 +53,7 @@
font-family: 'fira sans'; font-family: 'fira sans';
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
src: url(/_static/fonts/fira-sans/light.woff2) format('woff2'); src: url(/_static/shared/fonts/fira-sans/light.woff2) format('woff2');
} }
@font-face { @font-face {
@@ -61,7 +61,7 @@
font-family: 'fira sans'; font-family: 'fira sans';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url(/_static/fonts/fira-sans/regular.woff2) format('woff2'); src: url(/_static/shared/fonts/fira-sans/regular.woff2) format('woff2');
} }
@font-face { @font-face {
@@ -69,7 +69,7 @@
font-family: 'fira sans'; font-family: 'fira sans';
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
src: url(/_static/fonts/fira-sans/medium.woff2) format('woff2'); src: url(/_static/shared/fonts/fira-sans/medium.woff2) format('woff2');
} }
@font-face { @font-face {
@@ -77,7 +77,7 @@
font-family: 'fira sans'; font-family: 'fira sans';
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
src: url(/_static/fonts/fira-sans/semibold.woff2) format('woff2'); src: url(/_static/shared/fonts/fira-sans/semibold.woff2) format('woff2');
} }
@font-face { @font-face {
@@ -85,7 +85,7 @@
font-family: 'fira sans'; font-family: 'fira sans';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
src: url(/_static/fonts/fira-sans/bold.woff2) format('woff2'); src: url(/_static/shared/fonts/fira-sans/bold.woff2) format('woff2');
} }
@font-face { @font-face {
@@ -93,7 +93,7 @@
font-family: 'fira sans'; font-family: 'fira sans';
font-style: normal; font-style: normal;
font-weight: 900; font-weight: 900;
src: url(/_static/fonts/fira-sans/black.woff2) format('woff2'); src: url(/_static/shared/fonts/fira-sans/black.woff2) format('woff2');
} }
@font-face { @font-face {
@@ -102,9 +102,9 @@
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: src:
url(/_static/fonts/itcgaramond/ITCGaramondBookNarrow_normal_condensed.woff2) url(/_static/shared/fonts/itcgaramond/ITCGaramondBookNarrow_normal_condensed.woff2)
format('woff2'), format('woff2'),
url(/_static/fonts/itcgaramond/ITCGaramondBookNarrow_normal_condensed.woff) url(/_static/shared/fonts/itcgaramond/ITCGaramondBookNarrow_normal_condensed.woff)
format('woff'); format('woff');
} }
@@ -114,8 +114,8 @@
font-style: normal; font-style: normal;
font-weight: 900; font-weight: 900;
src: src:
url(/_static/fonts/gotham/gotham-black-webfont.woff2) format('woff2'), url(/_static/shared/fonts/gotham/gotham-black-webfont.woff2) format('woff2'),
url(/_static/fonts/gotham/gotham-black-webfont.woff) format('woff'); url(/_static/shared/fonts/gotham/gotham-black-webfont.woff) format('woff');
} }
@font-face { @font-face {
@@ -124,8 +124,8 @@
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
src: src:
url(/_static/fonts/gotham/gotham-bold-webfont.woff2) format('woff2'), url(/_static/shared/fonts/gotham/gotham-bold-webfont.woff2) format('woff2'),
url(/_static/fonts/gotham/gotham-bold-webfont.woff) format('woff'); url(/_static/shared/fonts/gotham/gotham-bold-webfont.woff) format('woff');
} }
@font-face { @font-face {
@@ -134,9 +134,9 @@
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: src:
url(/_static/fonts/grotesk/NeueHaasGroteskDisplay55Roman_normal_normal.woff2) url(/_static/shared/fonts/grotesk/NeueHaasGroteskDisplay55Roman_normal_normal.woff2)
format('woff2'), format('woff2'),
url(/_static/fonts/grotesk/NeueHaasGroteskDisplay55Roman_normal_normal.woff) url(/_static/shared/fonts/grotesk/NeueHaasGroteskDisplay55Roman_normal_normal.woff)
format('woff'); format('woff');
} }
@@ -146,9 +146,9 @@
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
src: src:
url(/_static/fonts/grotesk/NeueHaasGroteskDisplay65Medium_normal_normal.woff2) url(/_static/shared/fonts/grotesk/NeueHaasGroteskDisplay65Medium_normal_normal.woff2)
format('woff2'), format('woff2'),
url(/_static/fonts/grotesk/NeueHaasGroteskDisplay65Medium_normal_normal.woff) url(/_static/shared/fonts/grotesk/NeueHaasGroteskDisplay65Medium_normal_normal.woff)
format('woff'); format('woff');
} }
@@ -158,8 +158,9 @@
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
src: src:
url(/_static/fonts/prumo/prumotext-light-webfont.woff2) format('woff2'), url(/_static/shared/fonts/prumo/prumotext-light-webfont.woff2)
url(/_static/fonts/prumo/PrumoText-Light.woff) format('woff'); format('woff2'),
url(/_static/shared/fonts/prumo/PrumoText-Light.woff) format('woff');
} }
@font-face { @font-face {
@@ -167,7 +168,8 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: normal; font-style: normal;
font-weight: 900; font-weight: 900;
src: url(/_static/fonts/canela-deck/CanelaDeck-Black.otf) format('opentype'); src: url(/_static/shared/fonts/canela-deck/CanelaDeck-Black.otf)
format('opentype');
} }
@font-face { @font-face {
@@ -175,7 +177,7 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: italic; font-style: italic;
font-weight: 900; font-weight: 900;
src: url(/_static/fonts/canela-deck/CanelaDeck-BlackItalic.otf) src: url(/_static/shared/fonts/canela-deck/CanelaDeck-BlackItalic.otf)
format('opentype'); format('opentype');
} }
@@ -184,7 +186,8 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
src: url(/_static/fonts/canela-deck/CanelaDeck-Bold.otf) format('opentype'); src: url(/_static/shared/fonts/canela-deck/CanelaDeck-Bold.otf)
format('opentype');
} }
@font-face { @font-face {
@@ -192,7 +195,7 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: italic; font-style: italic;
font-weight: 700; font-weight: 700;
src: url(/_static/fonts/canela-deck/CanelaDeck-BoldItalic.otf) src: url(/_static/shared/fonts/canela-deck/CanelaDeck-BoldItalic.otf)
format('opentype'); format('opentype');
} }
@@ -201,7 +204,8 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
src: url(/_static/fonts/canela-deck/CanelaDeck-Light.otf) format('opentype'); src: url(/_static/shared/fonts/canela-deck/CanelaDeck-Light.otf)
format('opentype');
} }
@font-face { @font-face {
@@ -209,7 +213,7 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: italic; font-style: italic;
font-weight: 300; font-weight: 300;
src: url(/_static/fonts/canela-deck/CanelaDeck-LightItalic.otf) src: url(/_static/shared/fonts/canela-deck/CanelaDeck-LightItalic.otf)
format('opentype'); format('opentype');
} }
@@ -218,7 +222,8 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
src: url(/_static/fonts/canela-deck/CanelaDeck-Medium.otf) format('opentype'); src: url(/_static/shared/fonts/canela-deck/CanelaDeck-Medium.otf)
format('opentype');
} }
@font-face { @font-face {
@@ -226,7 +231,7 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: italic; font-style: italic;
font-weight: 500; font-weight: 500;
src: url(/_static/fonts/canela-deck/CanelaDeck-MediumItalic.otf) src: url(/_static/shared/fonts/canela-deck/CanelaDeck-MediumItalic.otf)
format('opentype'); format('opentype');
} }
@@ -235,7 +240,8 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url(/_static/fonts/canela-deck/CanelaDeck-Regular.otf) format('opentype'); src: url(/_static/shared/fonts/canela-deck/CanelaDeck-Regular.otf)
format('opentype');
} }
@font-face { @font-face {
@@ -243,7 +249,7 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: italic; font-style: italic;
font-weight: 400; font-weight: 400;
src: url(/_static/fonts/canela-deck/CanelaDeck-RegularItalic.otf) src: url(/_static/shared/fonts/canela-deck/CanelaDeck-RegularItalic.otf)
format('opentype'); format('opentype');
} }
@@ -252,7 +258,8 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: normal; font-style: normal;
font-weight: 200; font-weight: 200;
src: url(/_static/fonts/canela-deck/CanelaDeck-Thin.otf) format('opentype'); src: url(/_static/shared/fonts/canela-deck/CanelaDeck-Thin.otf)
format('opentype');
} }
@font-face { @font-face {
@@ -260,7 +267,7 @@
font-family: 'Canela Deck'; font-family: 'Canela Deck';
font-style: italic; font-style: italic;
font-weight: 200; font-weight: 200;
src: url(/_static/fonts/canela-deck/CanelaDeck-ThinItalic.otf) src: url(/_static/shared/fonts/canela-deck/CanelaDeck-ThinItalic.otf)
format('opentype'); format('opentype');
} }
@@ -269,7 +276,7 @@
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-display: block; font-display: block;
src: url(/_static/fonts/material-symbols/rounded-f2d895e1.woff2) src: url(/_static/shared/fonts/material-symbols/rounded-f2d895e1.woff2)
format('woff2'); format('woff2');
} }

View File

@@ -206,7 +206,8 @@
"prepack": "yarn run build", "prepack": "yarn run build",
"prepare": "husky && yarn run build", "prepare": "husky && yarn run build",
"check-types": "tsc --noEmit", "check-types": "tsc --noEmit",
"test:browser": "vitest --config=vitest.browser.config.ts" "test:browser": "vitest --config=vitest.browser.config.ts",
"include:shared": "jiti ../../scripts/copyFiles.ts ../../shared public/_static/shared"
}, },
"dependencies": { "dependencies": {
"@scandic-hotels/common": "workspace:*", "@scandic-hotels/common": "workspace:*",

Some files were not shown because too many files have changed in this diff Show More