Skip to content

Commit

Permalink
Merge branch 'kavinphab/ProfileCard' of https://github.com/acm-ucr/hs…
Browse files Browse the repository at this point in the history
…p-website into kavinphab/ProfileCard
  • Loading branch information
rfairooz committed Jan 23, 2024
2 parents 2afdbac + 73efe3a commit 7fe0b44
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
13 changes: 2 additions & 11 deletions src/app/page.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import React from "react";
import Profile from "../components/board/Profile";
import Javen from "../public/assets/board/Javen.svg";

const Home = () => {
return (
<Profile
name={"Javen Dosanjh"}
image={Javen}
title={"Chief Engineer & President of Operations"}
year={"4th year"}
major={"Mechanical Engineering"}
/>
);
return <>Hello World</>;
};

export default Home;
24 changes: 17 additions & 7 deletions src/components/board/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from "react";
import Image from "next/image";
import { MdEmail } from "react-icons/md";
import { GrLinkedinOption } from "react-icons/gr";
import { IoMdStar } from "react-icons/io";
import Link from "next/link";

const Profile = ({
name,
Expand All @@ -14,24 +16,32 @@ const Profile = ({
pronouns,
}) => {
return (
<div className="border-2 border-black font-poppins bg-white w-64 h-96 m-5">
<div className="border-2 border-black font-poppins bg-white w-72 h-auto rounded-xl">
<Image
src={image}
alt="Picture of board member"
className="rounded-full border-2 border-black mt-3 mr-3 ml-3"
className="rounded-xl border-2 border-black mt-3 mr-auto ml-auto w-60 h-58"
/>
<div className="ml-3">
<div className="ml-5">
<div className="font-bold text-xl mt-3">{name}</div>
<div className="text-l">{title}</div>
<div className="flex space-x-2 text-slate-700">
<MdEmail className="h-8 w-8 " />
<GrLinkedinOption className="h-7 w-7" />
<div className="flex space-x-2">
<Link href={email}>
<MdEmail className="h-8 w-8 text-slate-800" />
</Link>
<Link href={linkedin}>
<GrLinkedinOption className="h-7 w-7 text-slate-800" />
</Link>
</div>
<div className="text-l">
{year}

&nbsp;
{major}
</div>
<div className="text-l">Pronouns: {pronouns}</div>
</div>
<div className="flex justify-end ">
<IoMdStar className="text-3xl pr-2 pb-2" />
</div>
</div>
);
Expand Down
Binary file added src/public/Joel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7fe0b44

Please sign in to comment.