Skip to content
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

test for learn more button color param #31

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"husky": "^9.1.4",
"postcss": "^8.4.40",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.0"
Expand Down
43 changes: 43 additions & 0 deletions src/components/learnmorebutton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import React from "react";

type LearnMoreButtonProps = {
color: string; // Icon color
};

const LearnMoreButton: React.FC<LearnMoreButtonProps> = ({ color }) => {
return (
<button
style={{
display: "flex",
alignItems: "center",
padding: "10px 20px",
backgroundColor: "#333", // Dark background
color: "#fff", // White text
border: "none",
borderRadius: "5px",
cursor: "pointer",
fontSize: "16px",
fontWeight: "bold",
}}
>
<span style={{ marginRight: "8px" }}>LEARN MORE</span>
{/* Arrow Icon */}
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke={color}
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<line x1="5" y1="12" x2="19" y2="12" />
<polyline points="12 5 19 12 12 19" />
</svg>
</button>
);
};

export default LearnMoreButton;
Loading