Skip to content

Commit cc273e5

Browse files
Change the color of the text header
Add an additionnal media query for smaller mobile screen sizes Adjust the font sizes
1 parent fdb1b8f commit cc273e5

File tree

2 files changed

+45
-7
lines changed

2 files changed

+45
-7
lines changed

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

+44-7
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@
99
position: relative;
1010
}
1111

12-
@media only screen and (max-width: 996px) {
13-
/*Mobile*/
12+
13+
@media only screen and (max-width: 530px) {
14+
/*Small mobile screens*/
1415
.logos_carousel {
1516
display: none;
1617
}
1718

1819
.pydata_header {
1920
text-align: center;
20-
color: var(--ifm-color-primary-p1);
21-
font-size: 1em;
21+
color: var(--ifm-color-blue-jupyter);
22+
font-family: var(--ifm-font-family-bebas-neue);
23+
font-size: var(--ifm-font-normal);
24+
font-weight: 600;
2225
position: absolute;
2326
top: 40%;
2427
left: 50%;
@@ -39,6 +42,38 @@
3942
color: var(--ifm-color-primary-p1);
4043
}
4144
}
45+
@media only screen and (min-width: 530px) and (max-width: 996px) {
46+
/*Mobile*/
47+
.logos_carousel {
48+
display: none;
49+
}
50+
51+
.pydata_header {
52+
text-align: center;
53+
color: var(--ifm-color-blue-jupyter);
54+
font-family: var(--ifm-font-family-bebas-neue);
55+
font-size: var(--ifm-font-size-medium);
56+
font-weight: 600;
57+
position: absolute;
58+
top: 40%;
59+
left: 50%;
60+
transform: translate(-50%, -50%);
61+
}
62+
63+
.pydata_informations {
64+
text-align: center;
65+
color: white;
66+
font-size: var(--ifm-font-size-small);
67+
position: absolute;
68+
top: 70%;
69+
left: 50%;
70+
transform: translate(-50%, -50%);
71+
}
72+
73+
a {
74+
color: var(--ifm-color-primary-p1);
75+
}
76+
}
4277

4378
.hero_container {
4479
background-color: var(--ifm-color-primary-p0);
@@ -75,8 +110,10 @@
75110
/*Desktop*/
76111
.pydata_header {
77112
text-align: center;
78-
color: var(--ifm-color-primary-p1);
79-
font-size: 2em;
113+
color: var(--ifm-color-blue-jupyter);
114+
font-family: var(--ifm-font-family-bebas-neue);
115+
font-size: var(--ifm-font-size-large);
116+
font-weight: 600;
80117
position: absolute;
81118
top: 40%;
82119
left: 50%;
@@ -86,7 +123,7 @@
86123
.pydata_informations {
87124
text-align: center;
88125
color: white;
89-
font-size: 1.5em;
126+
font-size: var(--ifm-font-size-normal);
90127
position: absolute;
91128
top: 70%;
92129
left: 50%;

src/css/custom.css

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
--ifm-font-size-small: 14px;
3737
--ifm-font-size-normal: 18px;
3838
--ifm-font-size-medium: 24px;
39+
--ifm-font-size-large: 40px;
3940
--ifm-font-size-main-title: 48px;
4041
--ifm-font-size-secondary-title: 32px;
4142

0 commit comments

Comments
 (0)