File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11// src/components/PageBanner.tsx
22import React from 'react' ;
3- import BannerSvg from '@site/static/img/banner/notebook-link-banner.svg' ;
43import styles from "./styles.module.css" ;
54import LinkToNotebookLink from './LinkToNotebookLink' ;
65
76export default function Banner ( ) {
87 return (
98 < div className = { styles . banner_container } >
10- < BannerSvg className = { styles . banner_image } role = "img" />
119 < div className = { styles . banner_text_overlay } >
1210 < div className = { styles . banner_text_overlay_title } > Introducing < span className = { styles . notebook_link } > Notebook.link</ span > </ div >
1311 < div className = { styles . banner_text_overlay_subtile } > The future of notebook sharing</ div >
1412 < LinkToNotebookLink label = { "Get started" } />
1513 </ div >
16-
1714 </ div >
1815 ) ;
1916}
Original file line number Diff line number Diff line change 1515 position : relative;
1616 width : 100% ;
1717 display : inline-block;
18+ display : flex;
19+ align-items : center;
20+ background-image : url ('/img/banner/notebook-link-banner.svg' );
21+ height : 464px ;
22+ padding-bottom : 110px ;
1823}
1924
2025.banner_image {
2429}
2530
2631.banner_text_overlay {
27- position : absolute;
28- top : 50% ;
29- left : 50% ;
30- transform : translate (-50% , -50% );
32+ margin-top : 50px ;
33+ margin-left : auto;
34+ margin-right : auto;
3135 text-align : center;
3236 color : white;
3337 /* or whatever contrasts with your SVG */
3943 font-size : 48px ;
4044 font-weight : 400 ;
4145 font-style : normal;
42- letter-spacing : -4% ;
4346 line-height : 100% ;
4447}
4548
99102 text-align : center;
100103 margin : var (--ifm-spacing-2xl ) 0 ;
101104 }
102- }
105+ }
You can’t perform that action at this time.
0 commit comments