From 27a5e3824e580257db9141d6c38a2f78b69943cd Mon Sep 17 00:00:00 2001 From: Ryan Villanueva Date: Tue, 19 Dec 2023 21:11:50 +0000 Subject: [PATCH] Add company list --- package.json | 2 + src/pages/Home/Companies.tsx | 76 +++++++++++++++++++++ src/pages/Home/HomePage.jsx | 6 +- src/pages/Home/Skills.tsx | 9 +-- src/pages/Home/components/Header/Header.css | 2 +- src/pages/Home/home-page.css | 50 +++++++++++++- yarn.lock | 31 +++++++++ 7 files changed, 169 insertions(+), 7 deletions(-) create mode 100644 src/pages/Home/Companies.tsx diff --git a/package.json b/package.json index 580e8dd..f86ff6f 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,8 @@ }, "devDependencies": { "@testing-library/jest-dom": "^6.1.5", + "@types/react": "^18.2.45", + "@types/react-dom": "^18.2.18", "@vitejs/plugin-react": "^4.2.1", "dotenv": "^8.2.0", "prettier": "^3.1.0", diff --git a/src/pages/Home/Companies.tsx b/src/pages/Home/Companies.tsx new file mode 100644 index 0000000..4d1f08e --- /dev/null +++ b/src/pages/Home/Companies.tsx @@ -0,0 +1,76 @@ +function CompanyList({ + companies, + reverse, +}: { + companies: string[]; + reverse?: boolean; +}) { + return ( +
+
+ {companies.map((company) => ( + + {company} + + ))} +
+
+ {companies.map((company) => ( + + {company} + + ))} +
+
+ {companies.map((company) => ( + + {company} + + ))} +
+
+ ); +} + +export default function Companies() { + const companiesA = [ + "IBM Research", + "Pepsi", + "Sephora", + "Neutrogena", + "McDonalds", + "Sunglass Hut", + "Maui Jim", + "Petco", + ]; + + const companiesB = [ + "Neiman Marcus", + "Coravin", + "Perch Interactive", + "Leif Technologies", + "VotER", + "Bubble & Bubble", + "Bayer", + "Jo Malone", + ]; + + return ( +
+ + +
+ ); +} diff --git a/src/pages/Home/HomePage.jsx b/src/pages/Home/HomePage.jsx index 57f3043..48a5301 100644 --- a/src/pages/Home/HomePage.jsx +++ b/src/pages/Home/HomePage.jsx @@ -6,6 +6,7 @@ import portfolioData from "../../data/portfolioData"; import "./home-page.css"; import { CSSTransition } from "react-transition-group"; import Skills from "./Skills"; +import Companies from "./Companies"; function HomePage({ isLoaded, @@ -18,9 +19,12 @@ function HomePage({
{loadBackground ? : null}
-
+
+
+ +
{loadPortfolio ? null :
} {skills.map((skill) => (