mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-02-04 01:32:54 +08:00
fix hero title width
This commit is contained in:
parent
bf8c4f0b70
commit
26a517726c
@ -28,13 +28,14 @@ const StyledHeroSection = styled.main`
|
|||||||
|
|
||||||
const StyledHeroTitle = styled.h1`
|
const StyledHeroTitle = styled.h1`
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 2rem;
|
font-size: 3rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
display: inline;
|
display: inline;
|
||||||
color: #272727;
|
color: #272727;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
letter-spacing: -2px;
|
letter-spacing: -2px;
|
||||||
|
max-width: 30rem;
|
||||||
|
|
||||||
@keyframes textShine {
|
@keyframes textShine {
|
||||||
0% {
|
0% {
|
||||||
@ -47,23 +48,24 @@ const StyledHeroTitle = styled.h1`
|
|||||||
|
|
||||||
@media only screen and (min-width: 576px) {
|
@media only screen and (min-width: 576px) {
|
||||||
font-size: 3.2rem;
|
font-size: 3.2rem;
|
||||||
|
max-width: 32rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 992px) {
|
@media only screen and (min-width: 992px) {
|
||||||
max-width: 75%;
|
|
||||||
font-size: 3.6rem;
|
font-size: 3.6rem;
|
||||||
|
max-width: 40rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 1400px) {
|
@media only screen and (min-width: 1400px) {
|
||||||
max-width: 50%;
|
|
||||||
font-size: 4rem;
|
font-size: 4rem;
|
||||||
|
max-width: 48rem;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledHeroText = styled.p`
|
const StyledHeroText = styled.p`
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #898989;
|
color: #696969;
|
||||||
font-weight: 500;
|
font-weight: 400;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
min-width: 400px;
|
min-width: 400px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user