Skip to content

Commit d280ef0

Browse files
committed
Update layout
1 parent 627add0 commit d280ef0

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
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: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
.banner_container {
1515
position: relative;
1616
width: 100%;
17-
display: inline-block;
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;
1824
}
1925

2026
.banner_image {
@@ -24,10 +30,9 @@
2430
}
2531

2632
.banner_text_overlay {
27-
position: absolute;
28-
top: 50%;
29-
left: 50%;
30-
transform: translate(-50%, -50%);
33+
margin-top: 50px;
34+
margin-left: auto;
35+
margin-right: auto;
3136
text-align: center;
3237
color: white;
3338
/* or whatever contrasts with your SVG */
@@ -39,7 +44,6 @@
3944
font-size: 48px;
4045
font-weight: 400;
4146
font-style: normal;
42-
letter-spacing: -4%;
4347
line-height: 100%;
4448
}
4549

@@ -99,4 +103,4 @@
99103
text-align: center;
100104
margin: var(--ifm-spacing-2xl) 0;
101105
}
102-
}
106+
}

0 commit comments

Comments
 (0)