Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Merge pull request #43 from acm-ucr/iambyt3z/project-button
Browse files Browse the repository at this point in the history
Created Project Button component
  • Loading branch information
shahdivyank authored Nov 4, 2024
2 parents 6e60d4b + 683cd71 commit 8d46e98
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
Binary file added public/projects/projectbuttontrain.webp
Binary file not shown.
40 changes: 40 additions & 0 deletions src/components/projects/ProjectButton.tsx
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;
1 change: 1 addition & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
"yellow-100": "#ece8bc",
"yellow-200": "#FDE491",
"yellow-300": "#FFE485",
"yellow-400": "#FFE248",
},
},
fontFamily: {
Expand Down

0 comments on commit 8d46e98

Please sign in to comment.