Skip to content
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
26 changes: 26 additions & 0 deletions JSX CSS Simple Button/button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.button {
width: 100px;
height: 40px;

border: none;
border-radius: 8px;
background-color: #000;
color: #fff;
font-size: 16px;
font-weight: bold;
cursor: pointer;
font-family: monospace;

display: flex;
align-items: center;
justify-content: center;

transition: background-color 0.5s ease, color 0.5s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.button:hover {
background-color: #fff;
color: #000;
}

15 changes: 15 additions & 0 deletions JSX CSS Simple Button/button.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react";
import "./button.css";

return function Button(props) {
<button
id={props.buttonName}
type="submit"
className="button"
onClick={Home}
>
<div className="sign-up-name">Sign Up</div>
</button>
}

export default Button;