changed fonts to rem

This commit is contained in:
Yusuf Ipek
2021-04-30 11:00:09 +03:00
parent 177ec52f38
commit 379b0a0a8b
4 changed files with 37 additions and 49 deletions
+11 -13
View File
@@ -2,25 +2,27 @@
.btn:visited {
text-transform: uppercase;
text-decoration: none;
padding: 15px 40px;
padding: 1.5rem 4rem;
display: inline-block;
border-radius: 100px;
border-radius: 10rem;
transition: all 0.2s;
position: relative;
font-size: 1.6rem;
}
.move-in-bottom {
animation: moveInBottom 1s ease-out;
animation: moveInBottom 0.5s ease-out 0.75s;
animation-fill-mode: backwards;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
transform: translateY(-0.3rem);
box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}
.btn:active {
transform: translateY(-1px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
transform: translateY(-0.1rem);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}
.btn-white {
@@ -33,7 +35,7 @@
display: inline-block;
height: 100%;
width: 100%;
border-radius: 100px;
border-radius: 10rem;
position: absolute;
top: 0;
left: 0;
@@ -53,11 +55,7 @@
@keyframes moveInBottom {
0% {
opacity: 0;
transform: translateY(250px);
}
50% {
opacity: 0;
transform: translateY(10rem);
}
100% {
+3 -2
View File
@@ -1,16 +1,17 @@
import "./button.css";
function Button(props) {
const { text, animationName, link } = props;
return (
<a
href="#"
className={
props.animationName === "move-in-bottom"
animationName === "move-in-bottom"
? "btn btn-white move-in-bottom"
: "btn btn-white"
}
>
{props.text}
{text}
</a>
);
}