This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
generated from acm-ucr/acm-ucr-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from acm-ucr/iambyt3z/project-button
Created Project Button component
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import Image from "next/image"; | ||
import TrainImage from "@/public/projects/projectbuttontrain.webp"; | ||
|
||
interface ProjectButtonProps { | ||
description: string; | ||
difficulty: string; | ||
name: string; | ||
} | ||
|
||
const ProjectButton: React.FC<ProjectButtonProps> = ({ | ||
description, | ||
difficulty, | ||
name, | ||
}) => { | ||
return ( | ||
<div className="flex flex-col gap-2 text-center font-normal text-devstation-yellow-400"> | ||
<div className="text-5xl">{name}</div> | ||
|
||
<button | ||
className="rounded-full px-10 py-5" | ||
style={{ | ||
background: | ||
"radial-gradient(50% 50% at 50% 50%, rgba(5, 86, 160, 0.7) 0%, rgba(204, 231, 255, 0.7) 100%)", | ||
}} | ||
> | ||
<Image src={TrainImage} alt={`${name}-project-button-train`} /> | ||
</button> | ||
|
||
<div className="flex items-center justify-center gap-6 text-lg leading-none"> | ||
<div className="pt-1">{description}</div> | ||
|
||
<div className="h-4 w-px bg-devstation-yellow-400"></div> | ||
|
||
<div className="pt-1">{difficulty}</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProjectButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters