Skip to content

Commit e322ed9

Browse files
Add pydata logo
Transform the title and the image into links Remove the text giving the url of pydata website.
1 parent 519ccf7 commit e322ed9

File tree

3 files changed

+48
-13
lines changed

3 files changed

+48
-13
lines changed

src/components/home/Hero/index.tsx

+21-8
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,36 @@ import styles from "./styles.module.css";
22
import SimpleSlider from "./LogosTableBy8";
33
import Astronaut from "/img/quantstack/astronaut.svg";
44
import CiteDesSciencesUrl from "@site/static/img/quantstack/geode-cropped.png";
5+
import LogoPyDataParisUrl from "@site/static/img/quantstack/PyData_logo.png";
6+
import Link from "@docusaurus/Link";
57

68
export function PydataParis() {
79
return (
810
<div className={styles.pydata_banner}>
9-
<img
10-
className={styles.pydata_image}
11-
src={CiteDesSciencesUrl}
12-
alt={"Banner to promote Pydata Paris."}
13-
width={"100%"}
14-
/>
15-
<p className={styles.pydata_header}>Join QuantStack at PyData Paris</p>
11+
<Link href={"https://pydata.org/paris2024"}>
12+
<img
13+
className={styles.pydata_image}
14+
src={CiteDesSciencesUrl}
15+
alt={"Banner to promote Pydata Paris."}
16+
width={"100%"}
17+
/>
18+
</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>
1630
<p className={styles.pydata_informations}>
1731
September 25-26 2024
1832
<br />
1933
Cité des Sciences, Paris, France
2034
<br />
21-
<a>https://pydata.org/paris2024</a>
2235
</p>
2336
</div>
2437
);

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

+27-5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
background-color: var(--ifm-color-secondary-s1);
1212
}
1313

14+
1415
@media only screen and (max-width: 530px) {
1516
/*Small mobile screens*/
1617
.logos_carousel {
@@ -24,15 +25,22 @@
2425
font-size: var(--ifm-font-size-normal);
2526
font-weight: 600;
2627
position: absolute;
27-
top: 15%;
28+
top: 35%;
2829
left: 50%;
2930
transform: translate(-50%, -50%);
3031
min-width: 250px;
3132
}
3233

34+
.pydata_logo {
35+
position: absolute;
36+
top: 10%;
37+
left: 50%;
38+
transform: translate(-50%, -50%);
39+
}
40+
3341
.pydata_informations {
3442
text-align: center;
35-
color:var(--ifm-color-primary-p2);
43+
color:white;
3644
font-size: 12px;
3745
font-weight: 600;
3846
position: absolute;
@@ -62,6 +70,13 @@
6270
min-width: 350px;
6371
}
6472

73+
.pydata_logo {
74+
position: absolute;
75+
top: 10%;
76+
left: 50%;
77+
transform: translate(-50%, -50%);
78+
}
79+
6580
.pydata_informations {
6681
text-align: center;
6782
color: var(--ifm-color-primary-p2);
@@ -114,19 +129,26 @@
114129
font-size: var(--ifm-font-size-main-title);
115130
font-weight: 600;
116131
position: absolute;
117-
top: 30%;
132+
top: 40%;
118133
left: 50%;
119134
transform: translate(-50%, -50%);
120135
min-width: 600px;
121136
}
122137

138+
.pydata_logo {
139+
position: absolute;
140+
top: 20%;
141+
left: 50%;
142+
transform: translate(-50%, -50%);
143+
}
144+
123145
.pydata_informations {
124146
text-align: center;
125-
color: var(--ifm-color-primary-p2);
147+
color: white;
126148
font-size: var(--ifm-font-size-medium);
127149
font-weight: 600;
128150
position: absolute;
129-
top: 60%;
151+
top: 70%;
130152
left: 50%;
131153
transform: translate(-50%, -50%);
132154
}

static/img/quantstack/PyData_logo.png

109 KB
Loading

0 commit comments

Comments
 (0)