Skip to content

Commit

Permalink
Merge pull request #82 from acm-ucr/dev
Browse files Browse the repository at this point in the history
merge to main
  • Loading branch information
menthy-wu authored Nov 12, 2023
2 parents e66a230 + 1fc15df commit 65712e1
Show file tree
Hide file tree
Showing 34 changed files with 711 additions and 111 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"
- name: Setup Pages
uses: actions/configure-pages@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.14.2"
node-version: "18"
- run: npm ci
- run: npm run check
lint:
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.14.2"
node-version: "18"
- run: npm ci
- run: npm run eslint
build:
Expand All @@ -38,6 +38,6 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.14.2"
node-version: "18"
- run: npm ci
- run: npm run build
92 changes: 46 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
},
"dependencies": {
"bootstrap": "^5.3.0",
"next": "^13.5.4",
"next": "^14.0.2",
"react": "^18.2.0",
"react-bootstrap": "^2.8.0",
"react-dom": "^18.2.0",
"react-icons": "^4.10.1"
"react-icons": "^4.11.0"
},
"devDependencies": {
"autoprefixer": "^10.4.15",
Expand Down
Binary file added public/images/landing.webp
Binary file not shown.
25 changes: 24 additions & 1 deletion src/app/board/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
import { BOARD } from "../../data/mockBoard";
import Board from "../../components/board/Board";
import Title from "@/components/Title";

const page = () => {
return <div>page</div>;
return (
<div className="relative w-full flex flex-col items-center mt-14">
<div className="absolute w-1/2 aspect-square bg-ewb-blue-100/40 rounded-full -translate-y-14" />
<Title title="MEET THE TEAM" />
<div className="relative grid grid-cols-4 w-9/12 gap-8 mt-14">
{BOARD.map((item, index) => (
<Board
key={index}
name={item.name}
position={item.position}
grade={item.grade}
major={item.major}
links={item.links}
pronouns={item.pronouns}
picture={item.picture}
/>
))}
</div>
</div>
);
};

export default page;
6 changes: 5 additions & 1 deletion src/app/page.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
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 = () => {
return (
<>
<Landing />
<About />
<WhyJoin />
<Projects />
<Events />
<Join />
</>
);
};
Expand Down
11 changes: 10 additions & 1 deletion src/app/projects/air-quality-system/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import AirQuality from "@/components/projects/ AirQuality";
import Header from "@/components/projects/Header";
import header from "../../../../public/images/airQualitySystem/AirQualitySystemHeader.webp";

const page = () => {
return <div>page</div>;
return (
<>
<Header img={header.src} title="Air Quality System" />
<AirQuality />
</>
);
};

export default page;
10 changes: 9 additions & 1 deletion src/app/projects/costa-rica/page.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import React from "react";
import CostaRica from "@/components/projects/CostaRica";
import Header from "@/components/projects/Header";
import header from "../../../../public/images/costaRica/CostaRicaHeader.webp";

const page = () => {
return <div>page</div>;
return (
<>
<Header img={header.src} title="Costa Rica Project" />
<CostaRica />
</>
);
};

export default page;
11 changes: 9 additions & 2 deletions src/app/projects/tanzania/page.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import React from "react";
import Tanzania from "@/components/projects/Tanzania";
import Header from "@/components/projects/Header";
import header from "../../../../public/images/tanzania/tanzaniaHeader.webp";

const page = () => {
return <div>page</div>;
return (
<>
<Header img={header.src} title="Project" />
<Tanzania />
</>
);
};

export default page;
2 changes: 1 addition & 1 deletion src/components/ArrowLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const ArrowLink = ({ text, link }) => {
return (
<Link
href={link}
className="no-underline text-ewb-blue-200 hover:text-ewb-blue-200 flex items-center hover:-translate-y-0.5 duration-300"
className="no-underline text-ewb-blue-200 hover:text-ewb-blue-200 flex items-center hover:-translate-y-0.5 duration-300 text-lg"
>
{text} <BiRightArrowAlt />
</Link>
Expand Down
36 changes: 35 additions & 1 deletion src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
import whiteLogo from "../../public/assets/whiteLogo.svg";
import Image from "next/image";
import Link from "next/link";
import { ICONS } from "@/data/icons";
import { LINKS } from "@/data/links";

const Footer = () => {
return <div>Footer</div>;
return (
<div className="w-full bg-ewb-blue-200 border-t-[20px] border-t-ewb-green pt-32 flex justify-between">
<div className="flex items-end m-3 gap-3 text-white font-bold text-xl w-1/2">
<Image src={whiteLogo} alt="EWB Logo" />
<p className="text-xs md:text-lg">EWB at UCR</p>
</div>

<div className="text-right text-white text-sm flex flex-col m-0 p-0 mx-4 w-1/2">
<div className="flex flex-row ml-20 self-end">
{LINKS.map((social, index) => (
<Link
key={index}
href={social.link}
className="no-underline text-white hover:text-ewb-white mx-1 flex flex-col items-center hover:-translate-y-0.5 duration-300"
>
<icons className="text-2xl">{ICONS[social.text]}</icons>
</Link>
))}
</div>
<div className="py-2">
<div>900 University Ave</div>
<div>Riverside, CA 92521</div>
<div>United States</div>
<div>[email protected]</div>
<div>619-395-3534</div>
</div>
</div>
</div>
);
};

export default Footer;
Loading

0 comments on commit 65712e1

Please sign in to comment.