Load resources from filesystem instead of remote

This commit is contained in:
Alex Ackermann
2025-01-22 16:34:16 +01:00
parent 17a31c7bbc
commit f61fa251aa
6 changed files with 16 additions and 32 deletions

View File

@@ -32,29 +32,14 @@ ci-node-generate: assets
.PHONY: assets
assets: pnpm-build \
assets/identifier/static \
assets/identifier/static/favicon.ico \
assets/identifier/static/opencloud-500.woff2 \
assets/identifier/static/opencloud-750.woff2
assets/identifier/static/favicon.ico
assets/identifier/static:
mkdir -p assets/identifier/static
# check if urls are stable, if not replace with stable location
FAVICON_URL = https://opencloud.eu/themes/cloudy/src/assets/favicon/favicon.ico
FONT_VARIATION_500_URL = https://gitlab.opencode.de/opentalk/web-frontend/-/raw/main/app/public/assets/fonts/opentalk/regular/opentalk-regular.woff2
FONT_VARIATION_750_URL = https://gitlab.opencode.de/opentalk/web-frontend/-/raw/main/app/public/assets/fonts/opentalk/bold/opentalk-bold.woff2
.PHONY: assets/identifier/static/favicon.ico # force overwrite
assets/identifier/static/favicon.ico:
curl --fail -o assets/identifier/static/favicon.ico ${FAVICON_URL}
.PHONY: assets/identifier/static/opencloud-500.woff2
assets/identifier/static/opencloud-500.woff2:
curl --fail -o assets/identifier/static/opencloud-500.woff2 ${FONT_VARIATION_500_URL}
.PHONY: assets/identifier/static/opencloud-750.woff2
assets/identifier/static/opencloud-750.woff2:
curl --fail -o assets/identifier/static/opencloud-750.woff2 ${FONT_VARIATION_750_URL}
cp src/images/favicon.ico assets/identifier/static/favicon.ico
.PHONY: pnpm-build
pnpm-build: node_modules

View File

@@ -1,21 +1,6 @@
<!doctype html>
<html lang="en">
<head data-kopano-build="%REACT_APP_KOPANO_BUILD%">
<style>
@font-face {
font-family: OpenCloud;
src: url('%PUBLIC_URL%/static/opencloud-500.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: OpenCloud;
src: url('%PUBLIC_URL%/static/opencloud-750.woff2') format('woff2');
font-weight: bold;
font-style: normal;
}
</style>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#1b223d">

View File

@@ -1,4 +1,18 @@
/* additional css on top of kpop */
@font-face {
font-family: OpenCloud;
src: url('./fonts/OpenCloud500-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: OpenCloud;
src: url('./fonts/OpenCloud750-Bold.woff2') format('woff2');
font-weight: bold;
font-style: normal;
}
html {
font-feature-settings: "cv11";
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB