Skip to content

Commit e70eb6b

Browse files
committed
Attempt
1 parent 627add0 commit e70eb6b

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
// src/components/PageBanner.tsx
22
import React from 'react';
3-
import BannerSvg from '@site/static/img/banner/notebook-link-banner.svg';
43
import styles from "./styles.module.css";
54
import LinkToNotebookLink from './LinkToNotebookLink';
65

76
export 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
}

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
position: relative;
1616
width: 100%;
1717
display: inline-block;
18+
background-image: url('/img/banner/notebook-link-banner.svg');
19+
height: 464px;
1820
}
1921

2022
.banner_image {
@@ -24,10 +26,9 @@
2426
}
2527

2628
.banner_text_overlay {
27-
position: absolute;
28-
top: 50%;
29-
left: 50%;
30-
transform: translate(-50%, -50%);
29+
margin-top: 50px;
30+
margin-left: auto;
31+
margin-right: auto;
3132
text-align: center;
3233
color: white;
3334
/* or whatever contrasts with your SVG */
@@ -99,4 +100,4 @@
99100
text-align: center;
100101
margin: var(--ifm-spacing-2xl) 0;
101102
}
102-
}
103+
}

0 commit comments

Comments
 (0)