From cf5e68cd2956312eac0ac60c6b238176dd62030d Mon Sep 17 00:00:00 2001 From: hardik Date: Sun, 16 Feb 2025 11:57:23 +0530 Subject: [PATCH 1/2] updated fonts --- src/App.css | 6 ++++++ src/components/homepage.tsx | 18 ++++++++++++++---- .../fonts/SF-Pro-Medium.otf | Bin src/index.css | 8 ++++++++ 4 files changed, 28 insertions(+), 4 deletions(-) rename public/SF-Pro-Rounded-Medium (1).otf => src/fonts/SF-Pro-Medium.otf (100%) diff --git a/src/App.css b/src/App.css index 74b5e05..729b10a 100644 --- a/src/App.css +++ b/src/App.css @@ -36,3 +36,9 @@ transform: rotate(360deg); } } +@font-face { + font-family: 'SF Pro Medium'; + src: url('../src/fonts/SF-Pro-Medium.otf') format('opentype'); + font-weight: normal; + font-style: normal; +} diff --git a/src/components/homepage.tsx b/src/components/homepage.tsx index 0c658e0..7d13f18 100644 --- a/src/components/homepage.tsx +++ b/src/components/homepage.tsx @@ -67,6 +67,16 @@ const HomePage: React.FC = () => { }, }, + typography: { + fontFamily: "SF Pro Rounded Medium, Arial, sans-serif", + h4: { + color: "#333333", + }, + body2:{ + color:"#4D4D4D" + } + }, + }); return ( @@ -156,7 +166,7 @@ const HomePage: React.FC = () => { Mine from nature -

Raw materials are extracted through destructive mining practices, causing habitat loss, soil erosion, and water contamination. 

+ Raw materials are extracted through destructive mining practices, causing habitat loss, soil erosion, and water contamination. 
@@ -179,7 +189,7 @@ const HomePage: React.FC = () => { }}> Manufacturing -

Materials are processed in energy-intensive factories that rely on fossil fuels, generating high carbon emissions

+ Materials are processed in energy-intensive factories that rely on fossil fuels, generating high carbon emissions
Gif @@ -211,7 +221,7 @@ const HomePage: React.FC = () => { Assemble -

Materials are processed in energy-intensive factories that rely on fossil fuels, generating high carbon emissions

+ Materials are processed in energy-intensive factories that rely on fossil fuels, generating high carbon emissions
@@ -235,7 +245,7 @@ const HomePage: React.FC = () => { }}> Use -

Devices are used by consumers and businesses, but their production and usage contribute significantly to carbon footprints, energy consumption, and waste generation.

+ Devices are used by consumers and businesses, but their production and usage contribute significantly to carbon footprints, energy consumption, and waste generation.
diff --git a/public/SF-Pro-Rounded-Medium (1).otf b/src/fonts/SF-Pro-Medium.otf similarity index 100% rename from public/SF-Pro-Rounded-Medium (1).otf rename to src/fonts/SF-Pro-Medium.otf diff --git a/src/index.css b/src/index.css index ec2585e..cb10b60 100644 --- a/src/index.css +++ b/src/index.css @@ -11,3 +11,11 @@ code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } +@font-face { + font-family: 'SF Pro Medium'; + src: url('../src//fonts//SF-Pro-Medium.otf') format('opentype'); + font-weight: normal; + font-style: normal; +} + + From 106773f0691da1d138b744e908d9ac473a5a48f5 Mon Sep 17 00:00:00 2001 From: hardik Date: Sun, 16 Feb 2025 12:05:11 +0530 Subject: [PATCH 2/2] increased row spacing --- src/components/homepage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/homepage.tsx b/src/components/homepage.tsx index 7d13f18..2e12eff 100644 --- a/src/components/homepage.tsx +++ b/src/components/homepage.tsx @@ -369,7 +369,7 @@ const HomePage: React.FC = () => { {/* mobile only */} -