mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
work and created develop branch
This commit is contained in:
45
components/Hero/index.tsx
Normal file
45
components/Hero/index.tsx
Normal file
@@ -0,0 +1,45 @@
|
||||
import React from 'react';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import MuiLink from '@mui/material/Link';
|
||||
import Button from '@mui/material/Button';
|
||||
|
||||
export default class Hero extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
show: true,
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
|
||||
<div className="hero" styles={{ backgroundImage:`url({${this.props.image}})` }}>
|
||||
<div className="hero-text">
|
||||
<h3>{this.props.heading}</h3>
|
||||
<p>{this.props.subheading}</p>
|
||||
<Button href={this.props.link} variant="contained" color="primary">
|
||||
{this.props.linktext}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<style jsx>{`
|
||||
.hero {
|
||||
// background:url('/gb-hero.jpg');
|
||||
background-size:cover;
|
||||
min-height:35vw;
|
||||
color: #fff;
|
||||
display:flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.hero-text {
|
||||
padding: 2em;
|
||||
}
|
||||
`}</style>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
23
components/Hero/package.json
Normal file
23
components/Hero/package.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "hero",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"main": "./index",
|
||||
"author": {
|
||||
"name": "Don Strawsburg",
|
||||
"email": "don@goforward.group",
|
||||
"url": "https://goforward.group/"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Don Strawsburg",
|
||||
"email": "don@goforward.group",
|
||||
"url": "https://goforward.group/"
|
||||
},
|
||||
{
|
||||
"name": "Sean Strawsburg",
|
||||
"email": "sean@goforward.group",
|
||||
"url": "https://goforward.group/"
|
||||
}
|
||||
]
|
||||
}
|
||||
0
components/Hero/styles.module.css
Normal file
0
components/Hero/styles.module.css
Normal file
Reference in New Issue
Block a user