Skip to content

Commit

Permalink
Merge pull request #31 from acm-ucr/kelly/joinCard
Browse files Browse the repository at this point in the history
created join card
  • Loading branch information
rfairooz authored Feb 18, 2024
2 parents 174d5c6 + be9be75 commit c8f5316
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 5 deletions.
25 changes: 22 additions & 3 deletions src/app/join/page.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
import React from "react";
import PageTitle from "@/components/PageTitle";
import Card from "@/components/join/Card";
import Card2 from "@/components/join/Card2";
import { MdGroups } from "react-icons/md";
import { FaDiscord } from "react-icons/fa";
import { FaBell } from "react-icons/fa";

const page = () => {
return (
<div>
<PageTitle title="JOIN US" />
<div className="justify justify-center grid grid-cols-3 my-28 mx-14">
<Card2
title="Come to our meetings and events"
description="HSP regularly conducts meetings and work sessions that build towards competitions."
icon={<MdGroups className="text-black" size={100} />}
/>
<Card
title="Join Our Discord"
description="Join our Discord to communicate with us and have access to all our channels. It’s a great resource for seeking internships and on-campus jobs."
icon={<FaDiscord className="text-black pt-3" size={75} />}
/>
<Card2
title="Follow our Socials"
description="Following our socials will keep you updated on what's happening with HSP!"
icon={<FaBell className="text-black justify pt-20" size={150} />}
/>
</div>
);
};
Expand Down
29 changes: 27 additions & 2 deletions src/components/join/Card.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
import React from "react";
import { IoIosCloseCircle } from "react-icons/io";
import { MdRemoveCircle } from "react-icons/md";
import { MdExpandCircleDown } from "react-icons/md";
import Link from "next/link";

const Card = () => {
return <div>Card</div>;
const Card = ({ title, description, icon }) => {
return (
<div className="bg-white text-black border border-black rounded-3xl">
<div className="flex items-center text-2xl mx-4 my-2">
<IoIosCloseCircle className="mx-1" />
<MdRemoveCircle className="mx-1" />
<MdExpandCircleDown className="mx-1" />
</div>
<div className="border border-black"></div>
<div className="font-montserrat text-3xl font-extrabold leading-10 p-3">
{title}
</div>
<div className="font-sans-arial text-xl font-light leading-9 px-3">
{description}
</div>
<div className="flex justify justify-center">
<div>{icon}</div>
</div>
<div className="flex justify justify-center font-montserrat text-3xl font-extrabold text-blue-600 underline mt-5">
<Link href="www.google.com">Join Here</Link>
</div>
</div>
);
};

export default Card;
27 changes: 27 additions & 0 deletions src/components/join/Card2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from "react";
import { IoIosCloseCircle } from "react-icons/io";
import { MdRemoveCircle } from "react-icons/md";
import { MdExpandCircleDown } from "react-icons/md";
const Card2 = ({ title, description, icon }) => {
return (
<div className="bg-white text-black border border-black rounded-3xl my-5 mx-4">
<div className="flex items-center text-2xl mx-4 my-2">
<IoIosCloseCircle className="mx-1" />
<MdRemoveCircle className="mx-1" />
<MdExpandCircleDown className="mx-1" />
</div>
<div className="border border-black"></div>
<div className="font-montserrat text-3xl font-extrabold leading-10 p-3">
{title}
</div>
<div className="font-sans-arial text-xl font-light leading-9 px-3">
{description}
</div>
<div className="flex justify justify-center">
<div>{icon}</div>
</div>
</div>
);
};

export default Card2;

0 comments on commit c8f5316

Please sign in to comment.