Skip to content

Commit

Permalink
Resign Button made, still lacking functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
hero346 committed Apr 17, 2024
1 parent dce675c commit db42c91
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
18 changes: 16 additions & 2 deletions src/Game/ResignButton.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
import React from "react";
import style from "./ResignButton.module.css";
import Button from "@mui/material/Button";

const ResignButton = ({ onClick }) => {
return (
<Button variant="contained" color="secondary" onClick={onClick}>
<Button
variant="contained"
color="secondary"
onClick={onClick}
sx={{
left: "1300px",
bottom: "190px",
width: "386px",
height: "190px",
fontSize: "80px",
backgroundColor: "blue",
"&:hover": {
backgroundColor: "blue",
},
}}
>
Resign
</Button>
);
Expand Down
7 changes: 3 additions & 4 deletions src/Game/ResignButton.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {
display: inline-block;
padding: 10px 20px;
font-size: 16px;
margin-left: 500px;
margin-left: 100px;
font-weight: bold;
text-transform: uppercase;
border: none;
Expand All @@ -21,7 +21,7 @@ body {
}

.primary {
background-color: #007bff;
background-color: rgb(238, 14, 14);
color: #fff;
}

Expand All @@ -30,8 +30,7 @@ body {
}

.secondary {
background-color: #6c757d;
color: #fff;
background-color: #ff000f
}

.secondary:hover {
Expand Down

0 comments on commit db42c91

Please sign in to comment.