mirror of
https://github.com/kingomarnajjar/innovationdrive.git
synced 2026-07-25 22:27:27 +10:00
added form-testing with netlify
This commit is contained in:
parent
36a3aeeaaf
commit
314ebe15cb
6 changed files with 84 additions and 37 deletions
10
src/App.css
10
src/App.css
|
|
@ -1,14 +1,20 @@
|
|||
.App {
|
||||
text-align: center;
|
||||
background-image: url("./kidRocket.jpg");
|
||||
|
||||
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
/* animation: App-logo-spin infinite 20s linear; */
|
||||
height: 80px;
|
||||
min-height: 55px;
|
||||
max-height: 78.2px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* .App-header {
|
||||
background-color: #222;
|
||||
height: 150px;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ export default class Drift extends React.Component {
|
|||
render() {
|
||||
return (
|
||||
<div className="Drift">
|
||||
onClick
|
||||
Add Drift here
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,32 +1,40 @@
|
|||
import React, { Component } from "react";
|
||||
import ThankYouAlert from "./ThankYouAlert";
|
||||
import { Button, Input, InputGroup, Form, FormGroup, Label } from "reactstrap";
|
||||
|
||||
export default class Form extends React.Component {
|
||||
render() {
|
||||
export default class EmailForm extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<Form method="POST" netlify="true">
|
||||
<h1>Free Video Consultation </h1>
|
||||
<FormGroup>
|
||||
<Input
|
||||
type="email"
|
||||
name="email"
|
||||
id="exampleEmail"
|
||||
placeholder="Email"
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<div>
|
||||
<form name="contact" method="POST" netlify>
|
||||
<p>
|
||||
<label>Email: <input type="text" name="name" /></label>
|
||||
</p>
|
||||
<p>
|
||||
<label>Message: <textarea name="message"></textarea></label>
|
||||
</p>
|
||||
<div data-netlify-recaptcha></div>
|
||||
<p>
|
||||
<button type="submit" >Send</button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
);
|
||||
}
|
||||
<FormGroup>
|
||||
<Input
|
||||
type="textarea"
|
||||
name="text"
|
||||
id="exampleText"
|
||||
placeholder="tell us a little about your idea without giving much away"
|
||||
/>
|
||||
</FormGroup>
|
||||
<div data-netlify-recaptcha />
|
||||
<Button color="success" type="submit">Send</Button>
|
||||
</Form>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// the logic is sign up to recieve free video consultation and invention workbook
|
||||
// First name, last name
|
||||
// then email text area with validation
|
||||
// tell us a little about your idea...
|
||||
// Once it goes through trigger thank you alert or just change CTA text/colour
|
||||
// Once it goes through trigger thank you alert or just change CTA text/colour
|
||||
|
|
|
|||
|
|
@ -2,6 +2,5 @@ body {
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: sans-serif;
|
||||
background-image: url("./kidRocket.jpg");
|
||||
background-size: ;
|
||||
|
||||
}
|
||||
|
|
|
|||
14
src/layouts/AboveTheFold.css
Normal file
14
src/layouts/AboveTheFold.css
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
.backgroundContainer {
|
||||
background-image: url("../kidRocket.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100%;
|
||||
/* background-position: center; */
|
||||
|
||||
}
|
||||
|
||||
|
||||
.CTA {
|
||||
align-items: center;
|
||||
color: red;
|
||||
}
|
||||
|
|
@ -1,15 +1,35 @@
|
|||
import React, { Component } from "react";
|
||||
import Form from '../components/Form.js';
|
||||
import HeadNavbar from '../components/Navbar.js'
|
||||
import { Container, Row, Col } from "reactstrap";
|
||||
import Form from "../components/Form.js";
|
||||
import "./AboveTheFold.css";
|
||||
import HeadNavbar from "../components/Navbar.js";
|
||||
|
||||
export default class AboveTheFold extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
render() {
|
||||
return (
|
||||
<div className="backgroundContainer">
|
||||
<HeadNavbar />
|
||||
<Form />
|
||||
boob
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
<Container />
|
||||
<Container>
|
||||
<Row >
|
||||
<Col xs="6" sm="4">
|
||||
</Col>
|
||||
<Col xs="6" sm="4">
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</Col>
|
||||
<Col sm="4"><Form /></Col>
|
||||
</Row>
|
||||
|
||||
</Container>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue