-
Notifications
You must be signed in to change notification settings - Fork 2
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 #172 from 100-hours-a-week/dev
Main <- Dev
- Loading branch information
Showing
29 changed files
with
745 additions
and
684 deletions.
There are no files selected for viewing
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
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
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
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
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,25 @@ | ||
import React from "react"; | ||
import "./DeleteButtonStyle.css"; | ||
|
||
interface AnimatedButtonProps { | ||
onClick: () => void; | ||
} | ||
|
||
const DeleteButton2: React.FC<AnimatedButtonProps> = ({ onClick }) => { | ||
return ( | ||
<div | ||
className="delete" | ||
onClick={onClick} | ||
style={{ | ||
left: "410px", | ||
cursor: "pointer", | ||
top: "-2px", | ||
}} | ||
> | ||
<div className="top"></div> | ||
<div className="bottom"></div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DeleteButton2; |
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 |
---|---|---|
@@ -1,101 +1,101 @@ | ||
/* Variables converted to standard CSS */ | ||
|
||
.deleteContainer > button { | ||
position: relative; | ||
display: block; | ||
width: 25%; | ||
height: 100%; | ||
border: none; | ||
background: transparent; | ||
cursor: pointer; | ||
z-index: 99; | ||
outline: none; | ||
backface-visibility: hidden; | ||
-webkit-touch-callout: none; | ||
position: relative; | ||
display: block; | ||
width: 25%; | ||
height: 100%; | ||
border: none; | ||
background: transparent; | ||
cursor: pointer; | ||
z-index: 99; | ||
outline: none; | ||
backface-visibility: hidden; | ||
-webkit-touch-callout: none; | ||
} | ||
|
||
.deleteContainer > button > div { | ||
position: absolute; | ||
top: 10px; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
margin: auto; | ||
position: absolute; | ||
top: 10px; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
margin: auto; | ||
} | ||
|
||
/* Delete Button Styles */ | ||
.delete:hover .top { | ||
animation: delete 0.8s ease-out; | ||
background: #615efc; | ||
animation: delete 0.8s ease-out; | ||
background: #615efc; | ||
} | ||
|
||
.delete:hover .top::before { | ||
background: #615efc; | ||
background: #615efc; | ||
} | ||
|
||
.delete:hover .bottom { | ||
background: #615efc; | ||
background: #615efc; | ||
} | ||
|
||
.delete .top { | ||
position: absolute; | ||
top: 2px; | ||
width: 24px; | ||
height: 4px; | ||
background: rgb(88, 88, 88); | ||
z-index: 1; | ||
position: absolute; | ||
top: 2px; | ||
width: 24px; | ||
height: 4px; | ||
background: rgb(88, 88, 88); | ||
z-index: 1; | ||
} | ||
|
||
.delete .top::before { | ||
content: ""; | ||
position: absolute; | ||
top: -2px; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
margin: auto; | ||
width: 14px; | ||
height: 6px; | ||
background: rgb(88, 88, 88); | ||
border-radius: 8px; | ||
content: ""; | ||
position: absolute; | ||
top: -2px; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
margin: auto; | ||
width: 14px; | ||
height: 6px; | ||
background: rgb(88, 88, 88); | ||
border-radius: 8px; | ||
} | ||
|
||
.delete .bottom { | ||
position: absolute; | ||
top: 8px; | ||
width: 24px; | ||
height: 26px; | ||
background: rgb(88, 88, 88); | ||
border-radius: 0 0 6px 6px; | ||
position: absolute; | ||
top: 8px; | ||
width: 24px; | ||
height: 26px; | ||
background: rgb(88, 88, 88); | ||
border-radius: 0 0 6px 6px; | ||
} | ||
|
||
/* Keyframes for Delete */ | ||
@keyframes delete { | ||
0% { | ||
transform: rotate(0) translateY(0); | ||
} | ||
20% { | ||
transform: rotate(0) translateY(-4px); | ||
} | ||
30% { | ||
transform: rotate(20deg) translateY(-4px); | ||
} | ||
40% { | ||
transform: rotate(-20deg) translateY(-4px); | ||
} | ||
50% { | ||
transform: rotate(20deg) translateY(-4px); | ||
} | ||
60% { | ||
transform: rotate(-10deg) translateY(-4px); | ||
} | ||
70% { | ||
transform: rotate(10deg) translateY(-4px); | ||
} | ||
80% { | ||
transform: rotate(0) translateY(-4px); | ||
} | ||
100% { | ||
transform: rotate(0) translateY(0); | ||
} | ||
0% { | ||
transform: rotate(0) translateY(0); | ||
} | ||
20% { | ||
transform: rotate(0) translateY(-4px); | ||
} | ||
30% { | ||
transform: rotate(20deg) translateY(-4px); | ||
} | ||
40% { | ||
transform: rotate(-20deg) translateY(-4px); | ||
} | ||
50% { | ||
transform: rotate(20deg) translateY(-4px); | ||
} | ||
60% { | ||
transform: rotate(-10deg) translateY(-4px); | ||
} | ||
70% { | ||
transform: rotate(10deg) translateY(-4px); | ||
} | ||
80% { | ||
transform: rotate(0) translateY(-4px); | ||
} | ||
100% { | ||
transform: rotate(0) translateY(0); | ||
} | ||
} |
Oops, something went wrong.