8000 Update Images to Webp by github-actions[bot] · Pull Request #59 · acm-ucr/3d-website · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update Images to Webp #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/board/IvanVice.webp
Binary file not shown.
Binary file added public/board/TimothyPres.webp
Binary file not shown.
22 changes: 18 additions & 4 deletions src/components/Board/MemberCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import BoxShadow from "@/components/BoxShadow";
import Image, { StaticImageData } from "next/image";

const MemberCard = () => {
interface MemberCardProps {
name: string;
title: string;
image: StaticImageData;
}

const MemberCard = ({ name, title, image }: MemberCardProps) => {
return (
<BoxShadow
boxColor="bg-3d-red-primary"
Expand All @@ -10,16 +17,23 @@ const MemberCard = () => {
<div className="bg-3d-red-primary relative -bottom-5 flex h-80 w-60 items-center justify-center rounded-lg p-2.5">
<div className="h-3/4 w-full rounded-xs border-4 border-white p-2">
<div className="h-full w-full items-center justify-center border-gray-300 bg-gray-200">
{/* Placeholder for image */}
{
<Image
src={image}
alt={`${name}'s image`}
layout="fill"
objectFit="cover"
/>
}
</div>
<BoxShadow
boxColor="bg-3d-blue-primary"
boxShadow="shadow-3d-blue-secondary rounded-sm"
boxPadding="pr-5 pl-5 py-2 relative -bottom-15 inset-x-1.5"
>
<div className="bg-3d-blue-primary font-francois items-center justify-center rounded-lg">
<p className="text-center text-2xl text-black">Timothy Lee</p>
<p className="text-center text-2xl text-black">President</p>
<p className="text-center text-2xl text-black">{name}</p>
<p className="text-center text-2xl text-black">{title}</p>
</div>
</BoxShadow>
</div>
Expand Down
20 changes: 20 additions & 0 deletions src/components/Board/Memb 8000 ers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from "react";
import MemberCard from "./MemberCard";
import { members } from "./members";

const Members = () => {
return (
<div>
{members.map((members, index) => (
<MemberCard
key={index}
name={members.name}
title={members.title}
image={members.image}
></MemberCard>
))}
</div>
);
};

export default Members;
17 changes: 17 additions & 0 deletions src/components/Board/members.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import TimothyImg from "@/public/board/TimothyPres.webp";
import IvanImg from "@/public/board/IvanVice.webp";

export const members = [
{
name: "Timothy Lee",
title: "President",
image: TimothyImg,
},
{
name: "Ivan Marozau",
title: "Vice President",
image: IvanImg,
},
];

export default members;
0