-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHero.module.css
92 lines (85 loc) · 1.89 KB
/
Hero.module.css
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/* CSS for Hero section */
.heroimage{
overflow-x: hidden;
width: 100vw;
background-image: var(--bg-hero);
background-size: contain;
background-position: left -200px bottom -50px;
background-repeat: no-repeat;
/* Overlay white onto the image */
}
.content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
width: 80vw;
min-height: 100vh;
margin: auto;
text-align: right;
}
.content h1, .content p {
text-shadow: 0px 0px 20px var(--shadow-text-primary), 0px 0px 20px var(--shadow-text-primary), 0px 0px 20px var(--shadow-text-primary);
}
.secondary{
border: 3px solid var(--button-learnmore-secondary);
background-color: var(--button-learnmore-primary);
}
.title {
margin: 0;
text-align: center;
font-size: 81px;
font-weight: 900;
color: var(--color-text-hero);
}
.caption{
font-size: 40px;
font-weight: bold;
color: var(--color-text-hero);
}
.action {
border: 3px solid var(--button-signup-secondary) !important;
background-color: var(--button-signup-primary) !important;
color: var(--button-signup-text);
}
.action:hover,
.action:focus,
.action:active {
background-color: var(--button-signup-hover) !important;
}
.buttonGrid{
justify-content: flex-end;
width: var(--contentWidth);
margin-right: -1rem;
}
/* Mobile Styles */
@media (max-width: 868px) {
.heroimage{
background-size: contain;
background-position: center bottom;
}
.content{
align-items: center;
width: var(--contentWidth);
height: 80vh;
margin: auto;
padding: 0;
text-align: center;
}
.title{
line-height: 1;
font-size: 50px;
}
.caption{
font-size: 30px;
}
.buttonGrid{
margin-right: 0;
}
}
/* Adjust tree on vertical monitors */
@media (max-aspect-ratio: 1/1) and (min-aspect-ratio: 1/16) and (min-width: 769px) {
.heroimage{
background-position: left calc(130% - 20vw) center;
}
}