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 -4
View File
@@ -7,17 +7,24 @@ Dark green: #28b485
*/ */
* { *,
*::after,
*::before {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: inherit;
}
html {
font-size: 62.5%;
} }
body { body {
font-family: "Lato", sans-serif; font-family: "Lato", sans-serif;
font-weight: 400; font-weight: 400;
font-size: 16px;
line-height: 1.7; line-height: 1.7;
color: #777; color: #777;
padding: 30px; padding: 3rem;
box-sizing: border-box;
} }
+12 -30
View File
@@ -22,12 +22,12 @@
.logo-box { .logo-box {
position: absolute; position: absolute;
top: 40px; top: 4rem;
left: 40px; left: 4rem;
} }
.logo { .logo {
height: 35px; height: 3.5rem;
} }
.heading-primary { .heading-primary {
@@ -35,41 +35,35 @@
text-transform: uppercase; text-transform: uppercase;
backface-visibility: hidden; backface-visibility: hidden;
margin-bottom: 60px; margin-bottom: 6rem;
} }
.heading-primary-main { .heading-primary-main {
display: block; display: block;
font-size: 60px; font-size: 6rem;
font-weight: 400; font-weight: 400;
letter-spacing: 35px; letter-spacing: 3.5rem;
animation: moveInLeft 1s ease-out; animation: moveInLeft 1s ease-out;
} }
.heading-primary-sub { .heading-primary-sub {
display: block; display: block;
font-size: 20px; font-size: 2rem;
font-weight: 700; font-weight: 700;
letter-spacing: 17.4px; letter-spacing: 1.75rem;
animation: moveInRight 1s ease-out; animation: moveInRight 1s ease-out;
} }
#header-button {
animation: moveInBottom 1s ease-out;
animation-delay: 2s;
opacity: 0;
}
@keyframes moveInLeft { @keyframes moveInLeft {
0% { 0% {
opacity: 0; opacity: 0;
transform: translateX(-100px); transform: translateX(-10rem);
} }
80% { 80% {
transform: translateX(10px); transform: translateX(1rem);
} }
100% { 100% {
@@ -81,23 +75,11 @@
@keyframes moveInRight { @keyframes moveInRight {
0% { 0% {
opacity: 0; opacity: 0;
transform: translateX(100px); transform: translateX(10rem);
} }
80% { 80% {
transform: translateX(-10px); transform: translateX(-1rem);
}
100% {
opacity: 1;
transform: translate(0);
}
}
@keyframes moveInBottom {
0% {
opacity: 0;
transform: translateY(100px);
} }
100% { 100% {
+11 -13
View File
@@ -2,25 +2,27 @@
.btn:visited { .btn:visited {
text-transform: uppercase; text-transform: uppercase;
text-decoration: none; text-decoration: none;
padding: 15px 40px; padding: 1.5rem 4rem;
display: inline-block; display: inline-block;
border-radius: 100px; border-radius: 10rem;
transition: all 0.2s; transition: all 0.2s;
position: relative; position: relative;
font-size: 1.6rem;
} }
.move-in-bottom { .move-in-bottom {
animation: moveInBottom 1s ease-out; animation: moveInBottom 0.5s ease-out 0.75s;
animation-fill-mode: backwards;
} }
.btn:hover { .btn:hover {
transform: translateY(-3px); transform: translateY(-0.3rem);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
} }
.btn:active { .btn:active {
transform: translateY(-1px); transform: translateY(-0.1rem);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
} }
.btn-white { .btn-white {
@@ -33,7 +35,7 @@
display: inline-block; display: inline-block;
height: 100%; height: 100%;
width: 100%; width: 100%;
border-radius: 100px; border-radius: 10rem;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
@@ -53,11 +55,7 @@
@keyframes moveInBottom { @keyframes moveInBottom {
0% { 0% {
opacity: 0; opacity: 0;
transform: translateY(250px); transform: translateY(10rem);
}
50% {
opacity: 0;
} }
100% { 100% {
+3 -2
View File
@@ -1,16 +1,17 @@
import "./button.css"; import "./button.css";
function Button(props) { function Button(props) {
const { text, animationName, link } = props;
return ( return (
<a <a
href="#" href="#"
className={ className={
props.animationName === "move-in-bottom" animationName === "move-in-bottom"
? "btn btn-white move-in-bottom" ? "btn btn-white move-in-bottom"
: "btn btn-white" : "btn btn-white"
} }
> >
{props.text} {text}
</a> </a>
); );
} }