All is docusaurus
Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
22 files changed
+530
-41
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import styles from './styles.module.css';
|
||||
|
||||
const HeroBanner = ({ title, subheading, backgroundImage }) => {
|
||||
return (
|
||||
<div
|
||||
className={styles.heroBanner}
|
||||
style={{ backgroundImage: `url(${backgroundImage})` }}
|
||||
>
|
||||
<div className={styles.textSection}>
|
||||
<h1>{title}</h1>
|
||||
<p>{subheading}</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default HeroBanner;
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
.heroBanner {
|
||||
width: 100%;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
height: 300px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.textSection {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.textSection::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: var(--ifm-background-color);
|
||||
z-index: -1;
|
||||
transform-origin: top right;
|
||||
transform: skewX(-16deg);
|
||||
overflow: hidden;
|
||||
width: 110%;
|
||||
}
|
||||
|
||||
[data-theme='light'] .textSection::after {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.heroBanner h1 {
|
||||
font-size: 2.5em;
|
||||
}
|
||||
|
||||
.heroBanner p {
|
||||
font-size: 1.2em;
|
||||
line-height: 1em;
|
||||
}
|
||||
Reference in new issue
Block a user