Skip to content

Commit e8eba00

Browse files
Modify the background color to introduce a gradient of colors and update the text elements.
1 parent 4590a28 commit e8eba00

File tree

3 files changed

+51
-61
lines changed

3 files changed

+51
-61
lines changed

src/components/home/Hero/index.tsx

+22-19
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styles from "./styles.module.css";
22
import SimpleSlider from "./LogosTableBy8";
33
import Astronaut from "/img/quantstack/astronaut.svg";
4-
import CiteDesSciencesUrl from "@site/static/img/quantstack/geode-cropped.png";
4+
import CiteDesSciencesUrl from "@site/static/img/quantstack/geode-cropped-with-white-rectangle.png";
55
import LogoPyDataParisUrl from "@site/static/img/quantstack/PyData_logo.png";
66
import Link from "@docusaurus/Link";
77

@@ -16,24 +16,27 @@ export function PydataParis() {
1616
width={"100%"}
1717
/>
1818
</Link>
19-
<Link href={"https://pydata.org/paris2024"}>
20-
<p className={styles.pydata_header}>Join QuantStack at PyData Paris</p>
21-
</Link>
22-
<Link href={"https://pydata.org/paris2024"}>
23-
<img
24-
className={styles.pydata_logo}
25-
src={LogoPyDataParisUrl}
26-
alt={"Logo of PyData Paris Conference."}
27-
width={"10%"}
28-
/>
29-
</Link>
30-
<p className={styles.pydata_informations}>
31-
September 25-26 2024
32-
<br />
33-
Cité des Sciences, Paris, France
34-
<br />
35-
</p>
36-
</div>
19+
<Link href={"https://pydata.org/paris2024"}>
20+
<p className={styles.pydata_header}>
21+
Join QuantStack at PyData Paris
22+
</p>
23+
</Link>
24+
<Link href={"https://pydata.org/paris2024"}>
25+
<div className={styles.pydata_logo_container}>
26+
<img
27+
className={styles.pydata_logo}
28+
src={LogoPyDataParisUrl}
29+
alt={"Logo of PyData Paris Conference."}
30+
/>
31+
</div>
32+
</Link>
33+
<p className={styles.pydata_informations}>
34+
September 25-26 2024
35+
<br />
36+
Cité des Sciences, Paris, France
37+
<br />
38+
</p>
39+
</div>
3740
);
3841
}
3942

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

+29-42
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,42 @@
77
}
88

99
.pydata_banner {
10+
background-color: white;
1011
position: relative;
11-
background-color: var(--ifm-color-secondary-s1);
1212
}
1313

14-
1514
@media only screen and (max-width: 530px) {
1615
/*Small mobile screens*/
1716
.logos_carousel {
1817
display: none;
1918
}
2019

2120
.pydata_header {
22-
text-align: center;
2321
color: var(--ifm-color-primary-p2);
2422
font-family: var(--ifm-font-family-bebas-neue);
2523
font-size: var(--ifm-font-size-normal);
2624
font-weight: 600;
2725
position: absolute;
2826
top: 10%;
29-
left: 50%;
30-
transform: translate(-50%, -50%);
31-
min-width: 250px;
27+
left: 5%;
28+
text-align: start;
3229
}
3330

3431
.pydata_logo {
3532
position: absolute;
36-
top: 35%;
37-
left: 50%;
38-
transform: translate(-50%, -50%);
33+
top: 32%;
34+
left: 5%;
35+
width: 10%
3936
}
4037

4138
.pydata_informations {
42-
text-align: center;
43-
color:white;
39+
color: grey;
4440
font-size: 12px;
4541
font-weight: 600;
4642
position: absolute;
47-
top: 65%;
48-
left: 50%;
49-
transform: translate(-50%, -50%);
50-
min-width: 250px;
43+
top: 53%;
44+
left: 5%;
45+
text-align: start;
5146
}
5247
}
5348

@@ -58,34 +53,30 @@
5853
}
5954

6055
.pydata_header {
61-
text-align: center;
6256
color: var(--ifm-color-primary-p2);
6357
font-family: var(--ifm-font-family-bebas-neue);
6458
font-size: var(--ifm-font-size-secondary-title);
6559
font-weight: 600;
6660
position: absolute;
67-
top: 30%;
68-
left: 50%;
69-
transform: translate(-50%, -50%);
70-
min-width: 350px;
61+
top: 10%;
62+
left: 10%;
7163
}
7264

7365
.pydata_logo {
7466
position: absolute;
75-
top: 10%;
76-
left: 50%;
77-
transform: translate(-50%, -50%);
67+
top: 28%;
68+
left: 10%;
69+
width: 12%
7870
}
7971

8072
.pydata_informations {
81-
text-align: center;
82-
color: var(--ifm-color-primary-p2);
73+
color: grey;
8374
font-size: var(--ifm-font-size-small);
8475
font-weight: 600;
8576
position: absolute;
86-
top: 60%;
87-
left: 50%;
88-
transform: translate(-50%, -50%);
77+
top: 55%;
78+
left: 10%;
79+
text-align: start;
8980
}
9081
}
9182

@@ -123,34 +114,30 @@
123114
@media only screen and (min-width: 996px) {
124115
/*Desktop*/
125116
.pydata_header {
126-
text-align: center;
127117
color: var(--ifm-color-primary-p2);
128118
font-family: var(--ifm-font-family-bebas-neue);
129119
font-size: var(--ifm-font-size-main-title);
130120
font-weight: 600;
131121
position: absolute;
132-
top: 20%;
133-
left: 50%;
134-
transform: translate(-50%, -50%);
135-
min-width: 600px;
122+
top: 10%;
123+
left: 10%;
124+
text-align: start;
136125
}
137126

138127
.pydata_logo {
139128
position: absolute;
140-
top: 32%;
141-
left: 50%;
142-
transform: translate(-50%, -50%);
129+
top: 35%;
130+
left: 10%;
131+
width: 12%
143132
}
144133

145134
.pydata_informations {
146-
text-align: center;
147-
color:white;
135+
color: grey;
148136
font-size: var(--ifm-font-size-medium);
149137
font-weight: 600;
150138
position: absolute;
151-
top: 70%;
152-
left: 50%;
153-
transform: translate(-50%, -50%);
139+
top: 60%;
140+
left: 10%;
141+
text-align: start;
154142
}
155-
156143
}
Loading

0 commit comments

Comments
 (0)