From 699e73c9643587a36ff5dae6ddd870b3ed4f2498 Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Fri, 12 Apr 2024 21:50:43 -0700 Subject: [PATCH 1/3] Fix font --- apps/potlock/widget/Index.jsx | 41 +++++++++-------------------------- 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/apps/potlock/widget/Index.jsx b/apps/potlock/widget/Index.jsx index 891c5185..bf324c2b 100644 --- a/apps/potlock/widget/Index.jsx +++ b/apps/potlock/widget/Index.jsx @@ -23,39 +23,18 @@ const loraCss = fetch( const Theme = styled.div` position: relative; - * { - font-family: "Mona-Sans"; - font-feature-settings: "ss01" on, "salt" on; - font-style: normal; - font-weight: 400; - } - @font-face { - font-family: mona-sans; - font-style: normal; - font-weight: 400; - src: local("Mona-Sans"), - url(https://fonts.cdnfonts.com/s/91271/Mona-Sans-Regular.woff) format("woff"); - } @font-face { - font-family: mona-sans; - font-style: normal; - font-weight: 500; - src: local("Mona-Sans"), - url(https://fonts.cdnfonts.com/s/91271/Mona-Sans-Medium.woff) format("woff"); + font-family: "Mona Sans"; + src: url("https://github.com/itexpert120/fonts/raw/main/Mona-Sans.woff2") + format("woff2 supports variations"), + url("https://github.com/itexpert120/fonts/raw/main/Mona-Sans.woff2") + format("woff2-variations"); + font-weight: 200 900; + font-stretch: 75% 125%; } - @font-face { - font-family: mona-sans; - font-style: normal; - font-weight: 600; - src: local("Mona-Sans"), - url(https://fonts.cdnfonts.com/s/91271/Mona-Sans-SemiBold.woff) format("woff"); - } - @font-face { - font-family: mona-sans; - font-style: normal; - font-weight: 700; - src: local("Mona-Sans"), - url(https://fonts.cdnfonts.com/s/91271/Mona-Sans-Bold.woff) format("woff"); + + html { + font-family: "Mona Sans", sans-serif; } ${loraCss} `; From ec463972c03a1df6387d4c6d9226962d0be2c7fd Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Fri, 12 Apr 2024 22:27:39 -0700 Subject: [PATCH 2/3] Remove mona sans from bos-app --- apps/potlock/widget/Index.jsx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/apps/potlock/widget/Index.jsx b/apps/potlock/widget/Index.jsx index bf324c2b..52c15960 100644 --- a/apps/potlock/widget/Index.jsx +++ b/apps/potlock/widget/Index.jsx @@ -23,19 +23,6 @@ const loraCss = fetch( const Theme = styled.div` position: relative; - @font-face { - font-family: "Mona Sans"; - src: url("https://github.com/itexpert120/fonts/raw/main/Mona-Sans.woff2") - format("woff2 supports variations"), - url("https://github.com/itexpert120/fonts/raw/main/Mona-Sans.woff2") - format("woff2-variations"); - font-weight: 200 900; - font-stretch: 75% 125%; - } - - html { - font-family: "Mona Sans", sans-serif; - } ${loraCss} `; From 0f0d75aa75e2be47cee9976e1fa560c0a0dbfc15 Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Fri, 12 Apr 2024 22:50:18 -0700 Subject: [PATCH 3/3] Change mona sans font name --- apps/potlock/widget/Cart/Modal.jsx | 2 +- apps/potlock/widget/Index.jsx | 3 +++ apps/potlock/widget/Project/ListPage.jsx | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/potlock/widget/Cart/Modal.jsx b/apps/potlock/widget/Cart/Modal.jsx index 781076dc..00722f9b 100644 --- a/apps/potlock/widget/Cart/Modal.jsx +++ b/apps/potlock/widget/Cart/Modal.jsx @@ -70,7 +70,7 @@ const ModalHeaderText = styled.div` text-align: center; color: #2e2e2e; font-size: 14px; - font-family: Mona-Sans; + font-family: "Mona Sans", sans-serif; font-weight: 600; line-height: 16px; word-wrap: break-word; diff --git a/apps/potlock/widget/Index.jsx b/apps/potlock/widget/Index.jsx index 52c15960..9430e861 100644 --- a/apps/potlock/widget/Index.jsx +++ b/apps/potlock/widget/Index.jsx @@ -23,6 +23,9 @@ const loraCss = fetch( const Theme = styled.div` position: relative; + * { + font-family: "Mona Sans", sans-serif; + } ${loraCss} `; diff --git a/apps/potlock/widget/Project/ListPage.jsx b/apps/potlock/widget/Project/ListPage.jsx index ba867929..28435f10 100644 --- a/apps/potlock/widget/Project/ListPage.jsx +++ b/apps/potlock/widget/Project/ListPage.jsx @@ -244,7 +244,7 @@ const SectionTitle = styled.div` font-size: 24px; font-weight: 600; color: #2e2e2e; - font-family: Mona-Sans; + font-family: "Mona Sans", sans-serif; `; const ProjectsCount = styled.div`