You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2022/09/14 08:04:31 UTC

[incubator-streampark-website] branch dev updated: fix(font): change font resource (#129)

This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new fd8b500  fix(font): change font resource (#129)
fd8b500 is described below

commit fd8b5007f13c2df3031cd36af71e4a44127ca98b
Author: WangSizhu0504 <39...@users.noreply.github.com>
AuthorDate: Wed Sep 14 16:04:26 2022 +0800

    fix(font): change font resource (#129)
---
 docusaurus.config.js         |   1 -
 src/css/font.css             |  81 +++++++++++++++++++++++++++++++++++++++++++
 src/fonts/devanagari-1.woff2 | Bin 0 -> 39564 bytes
 src/fonts/devanagari-2.woff2 | Bin 0 -> 39136 bytes
 src/fonts/devanagari-3.woff2 | Bin 0 -> 39148 bytes
 src/fonts/latin-1.woff2      | Bin 0 -> 7884 bytes
 src/fonts/latin-2.woff2      | Bin 0 -> 7748 bytes
 src/fonts/latin-3.woff2      | Bin 0 -> 7816 bytes
 src/fonts/latin-ext-1.woff2  | Bin 0 -> 5544 bytes
 src/fonts/latin-ext-2.woff2  | Bin 0 -> 5452 bytes
 src/fonts/latin-ext-3.woff2  | Bin 0 -> 5384 bytes
 src/pages/index.tsx          |   2 +-
 12 files changed, 82 insertions(+), 2 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index f434176..912c939 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -9,7 +9,6 @@ const config = {
     onBrokenLinks: 'ignore',
     onBrokenMarkdownLinks: 'warn',
     favicon: 'image/favicon.ico',
-    stylesheets:["https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap"],
     i18n: {
         defaultLocale: "en",
         locales: ["en", "zh-CN"],
diff --git a/src/css/font.css b/src/css/font.css
new file mode 100644
index 0000000..c28a14d
--- /dev/null
+++ b/src/css/font.css
@@ -0,0 +1,81 @@
+/* devanagari */
+@font-face {
+  font-family: 'Poppins';
+  font-style: normal;
+  font-weight: 400;
+  font-display: swap;
+  src: url(../fonts/devanagari-1.woff2) format('woff2');
+  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Poppins';
+  font-style: normal;
+  font-weight: 400;
+  font-display: swap;
+  src: url(../fonts/latin-ext-1.woff2) format('woff2');
+  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Poppins';
+  font-style: normal;
+  font-weight: 400;
+  font-display: swap;
+  src: url(../fonts/latin-1.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* devanagari */
+@font-face {
+  font-family: 'Poppins';
+  font-style: normal;
+  font-weight: 500;
+  font-display: swap;
+  src: url(../fonts/devanagari-2.woff2) format('woff2');
+  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Poppins';
+  font-style: normal;
+  font-weight: 500;
+  font-display: swap;
+  src: url(../fonts/latin-ext-2.woff2) format('woff2');
+  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Poppins';
+  font-style: normal;
+  font-weight: 500;
+  font-display: swap;
+  src: url(../fonts/latin-2.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* devanagari */
+@font-face {
+  font-family: 'Poppins';
+  font-style: normal;
+  font-weight: 700;
+  font-display: swap;
+  src: url(../fonts/devanagari-3.woff2) format('woff2');
+  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Poppins';
+  font-style: normal;
+  font-weight: 700;
+  font-display: swap;
+  src: url(../fonts/latin-ext-3.woff2) format('woff2');
+  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Poppins';
+  font-style: normal;
+  font-weight: 700;
+  font-display: swap;
+  src: url(../fonts/latin-3.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
diff --git a/src/fonts/devanagari-1.woff2 b/src/fonts/devanagari-1.woff2
new file mode 100644
index 0000000..3295a4c
Binary files /dev/null and b/src/fonts/devanagari-1.woff2 differ
diff --git a/src/fonts/devanagari-2.woff2 b/src/fonts/devanagari-2.woff2
new file mode 100644
index 0000000..7850aa3
Binary files /dev/null and b/src/fonts/devanagari-2.woff2 differ
diff --git a/src/fonts/devanagari-3.woff2 b/src/fonts/devanagari-3.woff2
new file mode 100644
index 0000000..742e144
Binary files /dev/null and b/src/fonts/devanagari-3.woff2 differ
diff --git a/src/fonts/latin-1.woff2 b/src/fonts/latin-1.woff2
new file mode 100644
index 0000000..b69e009
Binary files /dev/null and b/src/fonts/latin-1.woff2 differ
diff --git a/src/fonts/latin-2.woff2 b/src/fonts/latin-2.woff2
new file mode 100644
index 0000000..c660336
Binary files /dev/null and b/src/fonts/latin-2.woff2 differ
diff --git a/src/fonts/latin-3.woff2 b/src/fonts/latin-3.woff2
new file mode 100644
index 0000000..bf022fc
Binary files /dev/null and b/src/fonts/latin-3.woff2 differ
diff --git a/src/fonts/latin-ext-1.woff2 b/src/fonts/latin-ext-1.woff2
new file mode 100644
index 0000000..c871a3e
Binary files /dev/null and b/src/fonts/latin-ext-1.woff2 differ
diff --git a/src/fonts/latin-ext-2.woff2 b/src/fonts/latin-ext-2.woff2
new file mode 100644
index 0000000..ba96dfd
Binary files /dev/null and b/src/fonts/latin-ext-2.woff2 differ
diff --git a/src/fonts/latin-ext-3.woff2 b/src/fonts/latin-ext-3.woff2
new file mode 100644
index 0000000..c1ee9a8
Binary files /dev/null and b/src/fonts/latin-ext-3.woff2 differ
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index c1b8fa5..db76a7f 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -3,7 +3,7 @@ import Layout from '@theme/Layout';
 import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
 import Home from './home'
 import useIsBrowser from '@docusaurus/useIsBrowser';
-
+import "../css/font.css"
 export default function() {
     const isBrowser = useIsBrowser();
     const {siteConfig} = useDocusaurusContext();