File tree Expand file tree Collapse file tree 10 files changed +413
-6
lines changed
Expand file tree Collapse file tree 10 files changed +413
-6
lines changed Original file line number Diff line number Diff line change 1+ // src/components/PageBanner.tsx
2+ import React from 'react' ;
3+ import BannerSvg from '@site/static/img/banner/notebook-link-banner.svg' ;
4+ import styles from "./styles.module.css" ;
5+ import LinkToNotebookLink from './LinkToNotebookLink' ;
6+
7+ export default function Banner ( ) {
8+ return (
9+ < div className = { styles . banner_container } >
10+ < BannerSvg className = { styles . banner_image } role = "img" />
11+ < div className = { styles . banner_text_overlay } >
12+ < div className = { styles . banner_text_overlay_title } > Introducing < span className = { styles . notebook_link } > Notebook.link</ span > </ div >
13+ < div className = { styles . banner_text_overlay_subtile } > The future of notebook sharing</ div >
14+ < LinkToNotebookLink label = { "Get started" } />
15+ </ div >
16+
17+ </ div >
18+ ) ;
19+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 11import styles from "./styles.module.css" ;
22import SimpleSlider from "./LogosTableBy8" ;
33import Astronaut from "/img/quantstack/astronaut.svg" ;
4+ import Banner from "./Banner" ;
5+
46
57export 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" >
Original file line number Diff line number Diff line change 1111 padding-bottom : var (--ifm-spacing-3xl );
1212}
1313
14+ .banner_container {
15+ position : relative;
16+ width : 100% ;
17+ display : inline-block;
18+ }
19+
20+ .banner_image {
21+ width : 100% ;
22+ height : auto;
23+ display : block;
24+ }
25+
26+ .banner_text_overlay {
27+ position : absolute;
28+ top : 50% ;
29+ left : 50% ;
30+ transform : translate (-50% , -50% );
31+ text-align : center;
32+ color : white;
33+ /* or whatever contrasts with your SVG */
34+ font-size : 2rem ;
35+ font-family : var (--ifm-font-family-kode-mono );
36+ }
37+
38+ .banner_text_overlay_title {
39+ font-size : 48px ;
40+ font-weight : 400 ;
41+ font-style : normal;
42+ letter-spacing : -4% ;
43+ line-height : 100% ;
44+ }
45+
46+ .banner_text_overlay_subtitle {
47+ font-size : 32px ;
48+ font-style : normal;
49+ }
50+
51+ .notebook_link {
52+ color : # FCF12B ;
53+ font-weight : 700 ;
54+ font-style : bold;
55+ line-height : 100% ;
56+ font-family : var (--ifm-font-family-inter );
57+ }
58+
59+ .link_to_notebook_link {
60+ display : flex;
61+ align-items : center;
62+ justify-content : center;
63+ background : linear-gradient (135deg ,
64+ # 5242FF,
65+ # 2A2A2A );
66+ color : white;
67+ width : 358px ;
68+ font-weight : 700 ;
69+ font-family : var (--ifm-font-family-roboto );
70+ font-weight : 600 ;
71+ font-size : 24px ;
72+ }
73+
1474@media only screen and (max-width : 996px ) {
75+
1576 /*Mobile*/
1677 .logos_carousel {
1778 display : none;
1879 }
1980}
2081
2182@media only screen and (min-width : 996px ) {
83+
2284 /*Desktop*/
2385 .table_with_8_customers {
2486 margin-bottom : var (--ifm-spacing-xl );
3799 text-align : center;
38100 margin : var (--ifm-spacing-2xl ) 0 ;
39101 }
40- }
102+ }
Original file line number Diff line number Diff line change 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 ;
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 ;
You can’t perform that action at this time.
0 commit comments