Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use local Nunito font in space

Anand Baburajan8e316fea2e4c
diff --git a/web/apps/space/package.json b/web/apps/space/package.json
index bebc174bf7..6cd1cd5736 100644
--- a/web/apps/space/package.json
+++ b/web/apps/space/package.json
@@ -6,6 +6,7 @@
"build:post": "rm -f out/404.html"
},
"dependencies": {
+ "@fontsource/nunito": "^5.2.7",
"@hugeicons/core-free-icons": "^1.1.0",
"@hugeicons/react": "^1.1.4",
"ente-accounts-rs": "*",
diff --git a/web/apps/space/public/_headers b/web/apps/space/public/_headers
index 9b7384e8af..b76683b776 100644
--- a/web/apps/space/public/_headers
+++ b/web/apps/space/public/_headers
@@ -8,4 +8,4 @@
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer
Reporting-Endpoints: csp-endpoint="https://csp-reporter.ente.io"
- Content-Security-Policy-Report-Only: default-src 'self'; img-src 'self' blob: data:; media-src 'self' blob: data:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval' blob:; worker-src 'self' blob:; manifest-src 'self'; child-src 'self' blob:; object-src 'none'; connect-src 'self' https://*.ente.io data: blob: https://*.s3.eu-central-003.backblazeb2.com https://*.s3.eu-central-2.wasabisys.com; base-uri 'self'; frame-ancestors 'none'; form-action 'none'; report-uri https://csp-reporter.ente.io; report-to csp-endpoint;
+ Content-Security-Policy-Report-Only: default-src 'self'; img-src 'self' blob: data:; media-src 'self' blob: data:; style-src 'self' 'unsafe-inline'; font-src 'self'; script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval' blob:; worker-src 'self' blob:; manifest-src 'self'; child-src 'self' blob:; object-src 'none'; connect-src 'self' https://*.ente.io data: blob: https://*.s3.eu-central-003.backblazeb2.com https://*.s3.eu-central-2.wasabisys.com; base-uri 'self'; frame-ancestors 'none'; form-action 'none'; report-uri https://csp-reporter.ente.io; report-to csp-endpoint;
diff --git a/web/apps/space/src/components/SpacePageMeta.tsx b/web/apps/space/src/components/SpacePageMeta.tsx
index 823befc40f..cde86d929a 100644
--- a/web/apps/space/src/components/SpacePageMeta.tsx
+++ b/web/apps/space/src/components/SpacePageMeta.tsx
@@ -16,15 +16,5 @@ export const SpacePageMeta: React.FC<SpacePageMetaProps> = ({
<meta name="theme-color" content={themeColor} />
<meta name="robots" content="noindex,nofollow" />
<meta name="description" content={onboardingDescription} />
- <link rel="preconnect" href="https://fonts.googleapis.com" />
- <link
- rel="preconnect"
- href="https://fonts.gstatic.com"
- crossOrigin="anonymous"
- />
- <link
- href="https://fonts.googleapis.com/css2?family=Nunito:wght@800&display=swap"
- rel="stylesheet"
- />
</Head>
);
diff --git a/web/apps/space/src/pages/_app.tsx b/web/apps/space/src/pages/_app.tsx
index 468d53ae2e..4a4e72346b 100644
--- a/web/apps/space/src/pages/_app.tsx
+++ b/web/apps/space/src/pages/_app.tsx
@@ -1,4 +1,5 @@
import "@fontsource-variable/inter";
+import "@fontsource/nunito/800.css";
import { CssBaseline } from "@mui/material";
import { ThemeProvider } from "@mui/material/styles";
import { CustomHead } from "ente-base/components/Head";
diff --git a/web/yarn.lock b/web/yarn.lock
index d7944186d6..4016c4ae2c 100644
--- a/web/yarn.lock
+++ b/web/yarn.lock
@@ -660,6 +660,11 @@
resolved "https://registry.npmjs.org/@fontsource/jetbrains-mono/-/jetbrains-mono-5.2.8.tgz"
integrity sha512-6w8/SG4kqvIMu7xd7wt6x3idn1Qux3p9N62s6G3rfldOUYHpWcc2FKrqf+Vo44jRvqWj2oAtTHrZXEP23oSKwQ==
+"@fontsource/nunito@^5.2.7":
+ version "5.2.7"
+ resolved "https://registry.yarnpkg.com/@fontsource/nunito/-/nunito-5.2.7.tgz#158a5726437c3899814830db23ec36896fcc44e4"
+ integrity sha512-pmtBq0H9ex9nk+RtJYEJOD9pag393iHETnl/PVKleF4i06cd0ttngK5ZCTgYb5eOqR3Xdlrjtev8m7bmgYprew==
+
"@fontsource/source-serif-4@^5.2.7":
version "5.2.9"
resolved "https://registry.npmjs.org/@fontsource/source-serif-4/-/source-serif-4-5.2.9.tgz"