Skip to content

Commit ec62f3a

Browse files
Merge pull request #279 from HaudinFlorence/add-notebook-link-banner
Add a banner for introducing Notebook.link.
2 parents b116bb9 + d280ef0 commit ec62f3a

File tree

10 files changed

+413
-5
lines changed

10 files changed

+413
-5
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// src/components/PageBanner.tsx
2+
import React from 'react';
3+
import styles from "./styles.module.css";
4+
import LinkToNotebookLink from './LinkToNotebookLink';
5+
6+
export default function Banner() {
7+
return (
8+
<div className={styles.banner_container}>
9+
<div className={styles.banner_text_overlay}>
10+
<div className={styles.banner_text_overlay_title}>Introducing <span className={styles.notebook_link}>Notebook.link</span></div>
11+
<div className={styles.banner_text_overlay_subtile}>The future of notebook sharing</div>
12+
<LinkToNotebookLink label={"Get started"}/>
13+
</div>
14+
</div>
15+
);
16+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import styles from "./styles.module.css";
2+
3+
export default function LinkToNotebookLink({label}) {
4+
return (
5+
<div className="flex-full-centered">
6+
<a className={`link-to-button ${styles.link_to_notebook_link}`} href="https://notebook.link" > {label} </a>
7+
</div>
8+
);
9+
}

src/components/home/Hero/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
import styles from "./styles.module.css";
22
import SimpleSlider from "./LogosTableBy8";
33
import Astronaut from "/img/quantstack/astronaut.svg";
4+
import Banner from "./Banner";
5+
46

57
export function Hero() {
68
return (
79
<div className={styles.hero_container}>
10+
<Banner/>
11+
<div className={styles.banner_image}>
12+
</div>
813
<div className="main-container-with-margins">
9-
<div className="container upper-container-with-margin-top">
14+
<div>
1015
<div className={"row row--no-gutters flex-full-centered"}>
1116
<div className="col col--6 col--offset-1">
1217
<h1 className="padding-none">

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

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,80 @@
1111
padding-bottom: var(--ifm-spacing-3xl);
1212
}
1313

14+
.banner_container {
15+
position: relative;
16+
width: 100%;
17+
display: flex;
18+
align-items: center;
19+
background-image: url('/img/banner/notebook-link-banner.svg');
20+
background-position: center;
21+
background-repeat: no-repeat;
22+
height: 464px;
23+
padding-bottom: 110px;
24+
}
25+
26+
.banner_image {
27+
width: 100%;
28+
height: auto;
29+
display: block;
30+
}
31+
32+
.banner_text_overlay {
33+
margin-top: 50px;
34+
margin-left: auto;
35+
margin-right: auto;
36+
text-align: center;
37+
color: white;
38+
/* or whatever contrasts with your SVG */
39+
font-size: 2rem;
40+
font-family: var(--ifm-font-family-kode-mono);
41+
}
42+
43+
.banner_text_overlay_title {
44+
font-size: 48px;
45+
font-weight: 400;
46+
font-style: normal;
47+
line-height: 100%;
48+
}
49+
50+
.banner_text_overlay_subtitle {
51+
font-size: 32px;
52+
font-style: normal;
53+
}
54+
55+
.notebook_link {
56+
color: #FCF12B;
57+
font-weight: 700;
58+
font-style: bold;
59+
line-height: 100%;
60+
font-family: var(--ifm-font-family-inter);
61+
}
62+
63+
.link_to_notebook_link {
64+
display: flex;
65+
align-items: center;
66+
justify-content: center;
67+
background: linear-gradient(135deg,
68+
#5242FF,
69+
#2A2A2A);
70+
color: white;
71+
width: 358px;
72+
font-weight: 700;
73+
font-family: var(--ifm-font-family-roboto);
74+
font-weight: 600;
75+
font-size: 24px;
76+
}
77+
1478
@media only screen and (max-width: 996px) {
79+
1580
/*Mobile*/
1681
.logos_carousel {
1782
display: none;
1883
}
1984
}
2085

2186
@media only screen and (min-width: 996px) {
87+
2288
/*Desktop*/
2389
.table_with_8_customers {
2490
margin-bottom: var(--ifm-spacing-xl);

src/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
@import url("https://fonts.cdnfonts.com/css/rubik-one");
44
@import url("https://fonts.cdnfonts.com/css/roboto-flex");
55
@import url("https://fonts.googleapis.com/css2?family=Dosis");
6+
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400;500;600;700&display=swap');
7+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
68

79
:root {
810
--ifm-color-orange-jupyter: #f37726;
@@ -47,6 +49,8 @@
4749
--ifm-font-family-bebas-neue: "Bebas Neue";
4850
--ifm-font-family-rubik-one: "Rubik One";
4951
--ifm-font-family-dosis: "Dosis";
52+
--ifm-font-family-kode-mono: "Kode Mono";
53+
--ifm-font-family-inter: "Inter";
5054

5155
/* Spacing for margins and paddings */
5256
--ifm-spacing-none: 0px;

static/atom.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/atom_all.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)