Skip to content

Commit a3e1e87

Browse files
Merge pull request #7045 from kishore08-07/fix-trust-pages-font
Fixed font-family to Qanelas Soft
2 parents 8a1b3b4 + 2facb30 commit a3e1e87

5 files changed

Lines changed: 43 additions & 4 deletions

File tree

src/sections/Community/Handbook/Handbook.style.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ export const HandbookWrapper = styled.div`
33
display: flex;
44
flex-direction: column;
55
6+
/* Ensure all text elements use Qanelas Soft */
7+
* {
8+
font-family: "Qanelas Soft", "Open Sans", sans-serif;
9+
}
10+
611
.content > a:first-of-type > h2:first-of-type {
712
padding-top: 1rem;
813
}

src/sections/Company/Legal/cookie-notice/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
TableHead,
1212
TableBody,
1313
SistentThemeProvider,
14+
createTheme,
1415
} from "@sistent/sistent";
1516
import TOC from "../../../../components/legal-navigation/index";
1617
import TocPagination from "../../../../components/legal-navigation/TocPagination";
@@ -41,11 +42,13 @@ const StyledTableCell = styled(TableCell)(({ theme }) => ({
4142
padding: "0.75rem",
4243
borderBottom: `1px solid ${theme.palette.divider}`,
4344
borderRadius: "0px",
45+
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
4446
}));
4547

4648
const StyledHeaderCell = styled(StyledTableCell)(() => ({
4749
fontWeight: 600,
4850
backgroundColor: "transparent",
51+
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
4952
}));
5053

5154
const cookieData = [
@@ -83,6 +86,13 @@ const cookieData = [
8386
const CookieNotice = () => {
8487
const { isDark } = useStyledDarkMode();
8588

89+
// Create custom theme with Qanelas Soft font family
90+
const customTheme = createTheme({
91+
typography: {
92+
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
93+
},
94+
});
95+
8696
return (
8797
<TermsWrapper>
8898
<div className="page-header-section">
@@ -143,7 +153,7 @@ const CookieNotice = () => {
143153
<p>
144154
Third-party cookies are set by domains other than Layer5’s to support analytics, advertising, or other functionalities. These cookies may collect data across multiple websites to tailor ads based on your interests. Below is a list of third-party providers we use, along with their purposes and opt-out options:
145155
</p>
146-
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
156+
<SistentThemeProvider initialMode={isDark ? "dark" : "light"} theme={customTheme}>
147157
<Row className="table-container" $Hcenter>
148158
<Col md={12} sx={{ px: 0 }}>
149159
<StyledTableContainer>

src/sections/Company/Legal/privacy/index.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
TableHead,
1212
TableBody,
1313
SistentThemeProvider,
14+
createTheme,
1415
} from "@sistent/sistent";
1516
import TOC from "../../../../components/legal-navigation/index";
1617
import TocPagination from "../../../../components/legal-navigation/TocPagination";
@@ -39,12 +40,13 @@ const StyledTableCell = styled(TableCell)(({ theme }) => ({
3940
padding: "0.75rem",
4041
borderBottom: `1px solid ${theme.palette.divider}`,
4142
borderRadius: 0,
42-
43+
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
4344
}));
4445

4546
const StyledHeaderCell = styled(StyledTableCell)(() => ({
4647
fontWeight: 600,
4748
backgroundColor: "transparent",
49+
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
4850
}));
4951

5052
const privacyData = [
@@ -132,6 +134,13 @@ const privacyData = [
132134
const Privacy = () => {
133135
const { isDark } = useStyledDarkMode();
134136

137+
// Create custom theme with Qanelas Soft font family
138+
const customTheme = createTheme({
139+
typography: {
140+
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
141+
},
142+
});
143+
135144
return (
136145
<TermsWrapper>
137146
<div className="page-header-section">
@@ -178,7 +187,7 @@ const Privacy = () => {
178187
<p>
179188
We process your personal data for a variety of purposes depending on how you interact with us. The table below details what we collect, why we collect it, and the legal justification (lawful basis) under the GDPR for doing so.
180189
</p>
181-
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
190+
<SistentThemeProvider initialMode={isDark ? "dark" : "light"} theme={customTheme}>
182191
<Row className="table-container" $Hcenter>
183192
<Col md={12} sx={{ px: 0 }}>
184193
<StyledTableContainer>

src/sections/Company/Legal/sub-processors/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
TableHead,
1212
TableBody,
1313
SistentThemeProvider,
14+
createTheme,
1415
} from "@sistent/sistent";
1516
import TOC from "../../../../components/legal-navigation/index";
1617
import TocPagination from "../../../../components/legal-navigation/TocPagination";
@@ -42,11 +43,13 @@ const StyledTableCell = styled(TableCell)(({ theme }) => ({
4243
padding: "0.75rem",
4344
borderBottom: `1px solid ${theme.palette.divider}`,
4445
borderRadius: "0px",
46+
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
4547
}));
4648

4749
const StyledHeaderCell = styled(StyledTableCell)(() => ({
4850
fontWeight: 600,
4951
backgroundColor: "transparent",
52+
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
5053
}));
5154

5255
// Data structure for sub-processors and service providers
@@ -183,6 +186,13 @@ const subProcessorData = [
183186
const SubProcessors = () => {
184187
const { isDark } = useStyledDarkMode();
185188

189+
// Create custom theme with Qanelas Soft font family
190+
const customTheme = createTheme({
191+
typography: {
192+
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
193+
},
194+
});
195+
186196
return (
187197
<TermsWrapper>
188198
<div className="page-header-section">
@@ -222,7 +232,7 @@ const SubProcessors = () => {
222232
<p>
223233
Since data is physically stored in a predetermined location, once an account begins storing data it cannot be moved. If you want to switch to a different region, contact your local partner or Enterprise account manager to create a new account hosted in the region of your choice going forward.
224234
</p>
225-
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
235+
<SistentThemeProvider initialMode={isDark ? "dark" : "light"} theme={customTheme}>
226236
<Row className="table-container" $Hcenter>
227237
<Col md={12} sx={{ px: 0 }}>
228238
{subProcessorData.map((section, index) => (

src/sections/Company/Legal/terms.style.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ const TermsWrapper = styled.section`
44
position: relative;
55
z-index: 1;
66
7+
/* Ensure all text elements use Qanelas Soft */
8+
* {
9+
font-family: "Qanelas Soft", "Open Sans", sans-serif;
10+
}
11+
712
.terms-content {
813
width: 100%;
914
max-width: 900px;

0 commit comments

Comments
 (0)