Skip to content

Commit 92d9c10

Browse files
Add a temporary banner to the home page hero.
1 parent ac04cb2 commit 92d9c10

File tree

4 files changed

+78
-0
lines changed

4 files changed

+78
-0
lines changed

src/components/home/Hero/index.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,33 @@
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";
5+
6+
export function PydataParis() {
7+
return (
8+
<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>
16+
<p className={styles.pydata_informations}>
17+
September 25-26 2024
18+
<br />
19+
Cité des Sciences, Paris, France
20+
<br />
21+
<a>https://pydata.org/paris2024</a>
22+
</p>
23+
</div>
24+
);
25+
}
426

527
export function Hero() {
628
return (
729
<div className={styles.hero_container}>
30+
<PydataParis />
831
<div className="main-container-with-margins">
932
<div className="container upper-container-with-margin-top">
1033
<div className={"row row--no-gutters flex-full-centered"}>

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

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,40 @@
1+
.pydata_image {
2+
height: 100%;
3+
filter: grayscale(0.8);
4+
}
5+
6+
.pydata_banner {
7+
position: relative;
8+
}
9+
110
@media only screen and (max-width: 996px) {
211
/*Mobile*/
312
.logos_carousel {
413
display: none;
514
}
15+
16+
.pydata_header {
17+
position: absolute;
18+
top: 20%;
19+
left: 17%;
20+
color: var(--ifm-color-primary-p1);
21+
font-size: 16px;
22+
}
23+
24+
.pydata_informations {
25+
text-align: center;
26+
position: absolute;
27+
top: 40%;
28+
left: 25%;
29+
color: white;
30+
font-size: 12px;
31+
}
32+
33+
a {
34+
color: var(--ifm-color-primary-p1);
35+
}
636
}
37+
738
.hero_container {
839
background-color: var(--ifm-color-primary-p0);
940
padding-bottom: var(--ifm-spacing-3xl);
@@ -34,3 +65,27 @@
3465
.sub_header {
3566
text-align: left;
3667
}
68+
69+
@media only screen and (min-width: 996px) {
70+
/*Desktop*/
71+
.pydata_header {
72+
position: absolute;
73+
top: 18%;
74+
left: 37%;
75+
color: var(--ifm-color-primary-p1);
76+
font-size: 32px;
77+
}
78+
79+
.pydata_informations {
80+
text-align: center;
81+
position: absolute;
82+
top: 40%;
83+
left: 40%;
84+
color: white;
85+
font-size: 24px;
86+
}
87+
88+
a {
89+
color: var(--ifm-color-primary-p1);
90+
}
91+
}
362 KB
Loading

static/img/quantstack/geode.png

675 KB
Loading

0 commit comments

Comments
 (0)