From f6955b50b956bb1eec525ca43a06f1fa7d4c249f Mon Sep 17 00:00:00 2001 From: menthy-wu Date: Sat, 11 Nov 2023 01:45:47 -0800 Subject: [PATCH] fix styles --- src/app/page.js | 2 +- src/app/projects/air-quality-system/page.js | 5 +- src/components/Subtitle.jsx | 6 ++- src/components/Title.jsx | 6 +-- src/components/home/Contacts.jsx | 5 -- src/components/home/Landing.jsx | 15 +++--- src/components/home/WhyJoin.jsx | 5 ++ src/components/projects/ AirQuality.jsx | 55 ++++++++++----------- src/components/projects/Header.jsx | 10 ++-- 9 files changed, 59 insertions(+), 50 deletions(-) delete mode 100644 src/components/home/Contacts.jsx create mode 100644 src/components/home/WhyJoin.jsx diff --git a/src/app/page.js b/src/app/page.js index cd2cd13..33aae24 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -1,7 +1,7 @@ import About from "@/components/home/About"; import Landing from "@/components/home/Landing"; import Projects from "@/components/home/Projects"; -import WhyJoin from "@/components/home/Contacts"; +import WhyJoin from "@/components/home/WhyJoin"; import Events from "@/components/home/Events"; import Join from "@/components/home/Join"; const Home = () => { diff --git a/src/app/projects/air-quality-system/page.js b/src/app/projects/air-quality-system/page.js index b5f9c7f..2fd84aa 100644 --- a/src/app/projects/air-quality-system/page.js +++ b/src/app/projects/air-quality-system/page.js @@ -1,8 +1,11 @@ -import React from "react"; import AirQuality from "@/components/projects/ AirQuality"; +import Header from "@/components/projects/Header"; +import header from "../../../../public/images/airQualitySystem/AirQualitySystemHeader.webp"; + const page = () => { return ( <> +
); diff --git a/src/components/Subtitle.jsx b/src/components/Subtitle.jsx index 23e4955..f0cbc3a 100644 --- a/src/components/Subtitle.jsx +++ b/src/components/Subtitle.jsx @@ -3,9 +3,11 @@ const Subtitle = ({ title, description }) => {
-
{title}
+
+ {title} +
-
+
{description}
diff --git a/src/components/Title.jsx b/src/components/Title.jsx index a5576e7..af30cde 100644 --- a/src/components/Title.jsx +++ b/src/components/Title.jsx @@ -4,17 +4,17 @@ const Title = ({ subTitle, title }) => { return (

{subTitle}

-

+

{titleWords[0]} - {" " + titleWords.slice(1).join(" ")} + {titleWords.slice(1).join(" ")}

diff --git a/src/components/home/Contacts.jsx b/src/components/home/Contacts.jsx deleted file mode 100644 index 19e6257..0000000 --- a/src/components/home/Contacts.jsx +++ /dev/null @@ -1,5 +0,0 @@ -const Contacts = () => { - return
Contacts
; -}; - -export default Contacts; diff --git a/src/components/home/Landing.jsx b/src/components/home/Landing.jsx index 51f1420..8a70990 100644 --- a/src/components/home/Landing.jsx +++ b/src/components/home/Landing.jsx @@ -1,15 +1,16 @@ -import React from "react"; +import landing from "../../../public/images/landing.webp"; + const Landing = () => { return ( -
+
landing img -
-
Engineers Without Borders USA
-
+
+
Engineers Without Borders USA
+
at University of California - Riverside
diff --git a/src/components/home/WhyJoin.jsx b/src/components/home/WhyJoin.jsx new file mode 100644 index 0000000..b931741 --- /dev/null +++ b/src/components/home/WhyJoin.jsx @@ -0,0 +1,5 @@ +const WhyJoin = () => { + return
WhyJoin
; +}; + +export default WhyJoin; diff --git a/src/components/projects/ AirQuality.jsx b/src/components/projects/ AirQuality.jsx index 3c71310..acd3a82 100644 --- a/src/components/projects/ AirQuality.jsx +++ b/src/components/projects/ AirQuality.jsx @@ -1,11 +1,14 @@ -import React from "react"; import Subtitle from "../Subtitle"; +import img1 from "../../../public/images/airQualitySystem/AirQualitySystem1.webp"; +import img2 from "../../../public/images/airQualitySystem/AirQualitySystem2.webp"; +import img3 from "../../../public/images/airQualitySystem/AirQualitySystem3.gif"; + const AirQuality = () => { return ( -
-
- -

+

+
+ +

Air quality has overtime deteriorated due to developing countries industrialization. This has in turn put the health of population in risk of respiratory disorders, cardiovascular diseases and @@ -16,15 +19,13 @@ const AirQuality = () => { the air.

-
- Air Quality System 1 -
- -
- + Air Quality System 1 +
+
    {
-
- Air Quality System 2 -
+ Air Quality System 2 -
- +
+
    {
-
- Air Quality System 3 -
+ Air Quality System 3
); }; diff --git a/src/components/projects/Header.jsx b/src/components/projects/Header.jsx index ac9e159..eda926e 100644 --- a/src/components/projects/Header.jsx +++ b/src/components/projects/Header.jsx @@ -2,10 +2,14 @@ import Title from "../Title"; const Header = ({ img, title }) => { return ( -
- Image + <> + Image - </div> + </> ); };