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; +} + +