Skip to content

Commit fdb1b8f

Browse files
Update style for the banner.
1 parent 92d9c10 commit fdb1b8f

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

src/components/home/Hero/styles.module.css

+25-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.pydata_image {
2-
height: 100%;
32
filter: grayscale(0.8);
3+
width: 100%;
4+
height: auto;
5+
display: block;
46
}
57

68
.pydata_banner {
@@ -14,20 +16,23 @@
1416
}
1517

1618
.pydata_header {
17-
position: absolute;
18-
top: 20%;
19-
left: 17%;
19+
text-align: center;
2020
color: var(--ifm-color-primary-p1);
21-
font-size: 16px;
21+
font-size: 1em;
22+
position: absolute;
23+
top: 40%;
24+
left: 50%;
25+
transform: translate(-50%, -50%);
2226
}
2327

2428
.pydata_informations {
2529
text-align: center;
26-
position: absolute;
27-
top: 40%;
28-
left: 25%;
2930
color: white;
30-
font-size: 12px;
31+
font-size: 0.75em;
32+
position: absolute;
33+
top: 70%;
34+
left: 50%;
35+
transform: translate(-50%, -50%);
3136
}
3237

3338
a {
@@ -69,20 +74,23 @@
6974
@media only screen and (min-width: 996px) {
7075
/*Desktop*/
7176
.pydata_header {
72-
position: absolute;
73-
top: 18%;
74-
left: 37%;
77+
text-align: center;
7578
color: var(--ifm-color-primary-p1);
76-
font-size: 32px;
79+
font-size: 2em;
80+
position: absolute;
81+
top: 40%;
82+
left: 50%;
83+
transform: translate(-50%, -50%);
7784
}
7885

7986
.pydata_informations {
8087
text-align: center;
81-
position: absolute;
82-
top: 40%;
83-
left: 40%;
8488
color: white;
85-
font-size: 24px;
89+
font-size: 1.5em;
90+
position: absolute;
91+
top: 70%;
92+
left: 50%;
93+
transform: translate(-50%, -50%);
8694
}
8795

8896
a {

0 commit comments

Comments
 (0)