Skip to content

Commit a92994b

Browse files
Merge pull request #133 from HaudinFlorence/add_a_temporary_banner_to_the_home_page
Add a temporary banner to the home page hero.
2 parents 2c30002 + e8eba00 commit a92994b

File tree

7 files changed

+148
-1
lines changed

7 files changed

+148
-1
lines changed

docusaurus.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ const config: Config = {
215215

216216
copyright: copyright,
217217
},
218+
218219

219220
colorMode: {
220221
defaultMode: 'light',

src/components/home/Hero/index.tsx

+39
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,49 @@
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-with-white-rectangle.png";
5+
import LogoPyDataParisUrl from "@site/static/img/quantstack/PyData_logo.png";
6+
import Link from "@docusaurus/Link";
7+
8+
export function PydataParis() {
9+
return (
10+
<div className={styles.pydata_banner}>
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}>
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>
40+
);
41+
}
442

543
export function Hero() {
644
return (
745
<div className={styles.hero_container}>
46+
<PydataParis />
847
<div className="main-container-with-margins">
948
<div className="container upper-container-with-margin-top">
1049
<div className={"row row--no-gutters flex-full-centered"}>

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

+108-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,85 @@
1-
@media only screen and (max-width: 996px) {
1+
.pydata_image {
2+
filter: grayscale(0.8);
3+
width: 100%;
4+
height: auto;
5+
display: block;
6+
opacity: calc(0.4);
7+
}
8+
9+
.pydata_banner {
10+
background-color: white;
11+
position: relative;
12+
}
13+
14+
@media only screen and (max-width: 530px) {
15+
/*Small mobile screens*/
16+
.logos_carousel {
17+
display: none;
18+
}
19+
20+
.pydata_header {
21+
color: var(--ifm-color-primary-p2);
22+
font-family: var(--ifm-font-family-bebas-neue);
23+
font-size: var(--ifm-font-size-normal);
24+
font-weight: 600;
25+
position: absolute;
26+
top: 10%;
27+
left: 5%;
28+
text-align: start;
29+
}
30+
31+
.pydata_logo {
32+
position: absolute;
33+
top: 32%;
34+
left: 5%;
35+
width: 10%
36+
}
37+
38+
.pydata_informations {
39+
color: grey;
40+
font-size: 12px;
41+
font-weight: 600;
42+
position: absolute;
43+
top: 53%;
44+
left: 5%;
45+
text-align: start;
46+
}
47+
}
48+
49+
@media only screen and (min-width: 530px) and (max-width: 996px) {
250
/*Mobile*/
351
.logos_carousel {
452
display: none;
553
}
54+
55+
.pydata_header {
56+
color: var(--ifm-color-primary-p2);
57+
font-family: var(--ifm-font-family-bebas-neue);
58+
font-size: var(--ifm-font-size-secondary-title);
59+
font-weight: 600;
60+
position: absolute;
61+
top: 10%;
62+
left: 10%;
63+
}
64+
65+
.pydata_logo {
66+
position: absolute;
67+
top: 28%;
68+
left: 10%;
69+
width: 12%
70+
}
71+
72+
.pydata_informations {
73+
color: grey;
74+
font-size: var(--ifm-font-size-small);
75+
font-weight: 600;
76+
position: absolute;
77+
top: 55%;
78+
left: 10%;
79+
text-align: start;
80+
}
681
}
82+
783
.hero_container {
884
background-color: var(--ifm-color-primary-p0);
985
padding-bottom: var(--ifm-spacing-3xl);
@@ -34,3 +110,34 @@
34110
.sub_header {
35111
text-align: left;
36112
}
113+
114+
@media only screen and (min-width: 996px) {
115+
/*Desktop*/
116+
.pydata_header {
117+
color: var(--ifm-color-primary-p2);
118+
font-family: var(--ifm-font-family-bebas-neue);
119+
font-size: var(--ifm-font-size-main-title);
120+
font-weight: 600;
121+
position: absolute;
122+
top: 10%;
123+
left: 10%;
124+
text-align: start;
125+
}
126+
127+
.pydata_logo {
128+
position: absolute;
129+
top: 35%;
130+
left: 10%;
131+
width: 12%
132+
}
133+
134+
.pydata_informations {
135+
color: grey;
136+
font-size: var(--ifm-font-size-medium);
137+
font-weight: 600;
138+
position: absolute;
139+
top: 60%;
140+
left: 10%;
141+
text-align: start;
142+
}
143+
}

static/img/quantstack/PyData_logo.png

109 KB
Loading
Loading
362 KB
Loading

static/img/quantstack/geode.png

675 KB
Loading

0 commit comments

Comments
 (0)