Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added PullReq/ERDiagram.pdf
Binary file not shown.
79 changes: 79 additions & 0 deletions PullReq/Headstorm(Frontend).html
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<!DOCTYPE html>

<html lang="en">


<head>
<meta charset="UTF-8">


<title>Headstorm</title>
<link rel="icon" href="https://headstorm.com/wp-content/uploads/2020/10/Logo-Bolt.png">
</head>


<body style="background-color:#FFE5B4;">
<style>
h1 {
text-align: center;
text-shadow: 0px 6px #D3D3D3;
}
</style>
<h1>Welcome to Headstorm</h1>

<link href="contact-form.css" rel="stylesheet">

<div class="fcf-body">

<div id="fcf-form">
<h3 class="fcf-h3">Contact us</h3>

<form id="fcf-form-id" class="fcf-form-class" method="post" action="contact-form-process.php">

<div class="fcf-form-group">
<label for="Name" class="fcf-label">Your name</label>
<div class="fcf-input-group">
<input type="text" id="Name" name="Name" class="fcf-form-control" required>
</div>
</div>

<div class="fcf-form-group">
<label for="Email" class="fcf-label">Your email address</label>
<div class="fcf-input-group">
<input type="email" id="Email" name="Email" class="fcf-form-control" required>
</div>
</div>

<div class="fcf-form-group">
<label for="Message" class="fcf-label">Your message</label>
<div class="fcf-input-group">
<textarea id="Message" name="Message" class="fcf-form-control" rows="6" maxlength="3000" required></textarea>
</div>
</div>

<div class="fcf-form-group">
<script src="https://www.google.com/recaptcha/api.js"></script>
<script>
function onSubmit(token) {
console.log(document.getElementById("fcf-form-id").submit());
}
</script>
<button class="g-recaptcha"
data-sitekey="reCAPTCHA_site_key"
data-callback='onSubmit'
data-action='submit' type="submit" id="fcf-button">Send Message</button>
</div>

<div class="fcf-credit" id="fcf-credit">
Simple HTML email form provided by <a href="https://www.majesticform.com" target="_blank">MajesticForm</a>
</div>

</form>
</div>

</div>

</body>


</html>
Binary file added PullReq/Write Up Documentation.pdf
Binary file not shown.
160 changes: 160 additions & 0 deletions PullReq/contact-form.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
#fcf-form {
display:block;
}

.fcf-body {
margin: 0;
font-family: -apple-system, Arial, sans-serif;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
padding: 30px;
padding-bottom: 10px;
border: 1px solid #ced4da;
border-radius: 0.25rem;
max-width: 25%;
}

.fcf-form-group {
margin-bottom: 1rem;
}

.fcf-input-group {
position: relative;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-align: stretch;
align-items: stretch;
width: 300%;
}

.fcf-form-control {
display: block;
width: 25%;
height: calc(1.5em + 0.75rem + 2px);
padding: 0.375rem 0.75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
outline: none;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.fcf-form-control:focus {
border: 1px solid #313131;
}

select.fcf-form-control[size], select.fcf-form-control[multiple] {
height: auto;
}

textarea.fcf-form-control {
font-family: -apple-system, Arial, sans-serif;
height: auto;
}

label.fcf-label {
display: inline-block;
margin-bottom: 0.5rem;
}

.fcf-credit {
padding-top: 10px;
font-size: 0.9rem;
color: #545b62;
}

.fcf-credit a {
color: #545b62;
text-decoration: underline;
}

.fcf-credit a:hover {
color: #0056b3;
text-decoration: underline;
}

.fcf-btn {
display: inline-block;
font-weight: 400;
color: #212529;
text-align: center;
vertical-align: middle;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: transparent;
border: 1px solid transparent;
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
border-radius: 0.25rem;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
.fcf-btn {
transition: none;
}
}

.fcf-btn:hover {
color: #212529;
text-decoration: none;
}

.fcf-btn:focus, .fcf-btn.focus {
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.fcf-btn-primary {
color: #fff;
background-color: #007bff;
border-color: #007bff;
}

.fcf-btn-primary:hover {
color: #fff;
background-color: #0069d9;
border-color: #0062cc;
}

.fcf-btn-primary:focus, .fcf-btn-primary.focus {
color: #fff;
background-color: #0069d9;
border-color: #0062cc;
box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.fcf-btn-lg, .fcf-btn-group-lg>.fcf-btn {
padding: 0.5rem 1rem;
font-size: 1.25rem;
line-height: 1.5;
border-radius: 0.3rem;
}

.fcf-btn-block {
display: block;
width: 100%;
}

.fcf-btn-block+.fcf-btn-block {
margin-top: 0.5rem;
}

input[type="submit"].fcf-btn-block, input[type="reset"].fcf-btn-block, input[type="button"].fcf-btn-block {
width: 100%;
}
25 changes: 25 additions & 0 deletions PullReq/headstorm_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import json
import random

from flask import Flask
from flask_restful import Resource, Api, reqparse

app = Flask(__name__)
api = Api(app)

LIST_NUM = json.loads('''file''')

if __name__ == "__main__":
app.run(debug=True)

class NumList(Resource):
def get(self):
return NumList
parser = reqparse.RequestParser()
def post(self):
parser.add_argument("num");
id = random.randint(1, 500);
return NumList[id];

api.add_resource(NumList, '/data/')