-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTitleHero.css
More file actions
75 lines (66 loc) · 1.32 KB
/
TitleHero.css
File metadata and controls
75 lines (66 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.hero-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.hero-bigtext {
/* position: relative; */
display: flex;
flex-direction: column;
justify-content: flex-end;
flex-basis: auto
}
.hero-background {
z-index: -10;
color: transparent;
-webkit-text-stroke: 1px #767676;
font-weight: 900;
font-size: 9rem;
white-space: nowrap;
line-height: 1;
margin-bottom: -100px;
/* padding-bottom: 5rem; */
-webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
@media (min-width: 768px) {
.hero-background {
font-size: 16rem; /* md:text-[256px] */
}
}
@media (min-width: 768px) {
.hero-content {
align-items: center;
gap: 1.25rem;
}
}
.hero-title {
z-index: 1;
font-weight: 900;
font-size: 3rem; /* text-5xl */
line-height: 1;
white-space: nowrap;
text-align: center;
/* position: absolute;
bottom: 5.5rem; */
}
@media (min-width: 768px) {
.hero-title {
font-size: 4.5rem; /* md:text-7xl */
}
}
@media (min-width: 1024px) {
.hero-title {
font-size: 6rem; /* lg:text-[96px] */
}
}
.hero-description {
max-width: 40%;
margin-top: 2rem;
}
@media (max-width: 767px) {
.hero-description {
max-width: 100%;
}
}