Oops, forgot to include the actual files.
This commit is contained in:
parent
5675b2e7dd
commit
289732a302
18 changed files with 497 additions and 0 deletions
BIN
app/Http/Controllers/.GeneratorController.php.swp
Normal file
BIN
app/Http/Controllers/.GeneratorController.php.swp
Normal file
Binary file not shown.
11
app/Http/Controllers/GeneratorController.php
Normal file
11
app/Http/Controllers/GeneratorController.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
|
||||||
|
class GeneratorController extends Controller
|
||||||
|
{
|
||||||
|
public function getGoal() {
|
||||||
|
}
|
24
app/Http/routes.php~
Normal file
24
app/Http/routes.php~
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Application Routes
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Here is where you can register all of the routes for an application.
|
||||||
|
| It's a breeze. Simply tell Laravel the URIs it should respond to
|
||||||
|
| and give it the controller to call when that URI is requested.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
Route::get('/', function () {
|
||||||
|
return view('home');
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::get('/about' function () {
|
||||||
|
return view('about');
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::get('/generate' function () {
|
||||||
|
return view('generate');
|
||||||
|
});
|
BIN
public/assets/css/.styles.css.swp
Normal file
BIN
public/assets/css/.styles.css.swp
Normal file
Binary file not shown.
5
public/assets/css/stlyes.css~
Normal file
5
public/assets/css/stlyes.css~
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
body {
|
||||||
|
background:linear-gradient(white, grey);
|
||||||
|
padding:0;
|
||||||
|
margin:0;
|
||||||
|
}
|
86
public/assets/css/styles.css
vendored
Normal file
86
public/assets/css/styles.css
vendored
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
body {
|
||||||
|
background:linear-gradient(white, grey);
|
||||||
|
padding:0;
|
||||||
|
margin:0;
|
||||||
|
font-family:'Helvetica', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#top-grad {
|
||||||
|
border-top:1px black solid;
|
||||||
|
height:5px;
|
||||||
|
background:linear-gradient(grey, white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
width:100%;
|
||||||
|
color:#fff;
|
||||||
|
font-weight:100;
|
||||||
|
font-size:20px;
|
||||||
|
background-color:#87161a;
|
||||||
|
}
|
||||||
|
|
||||||
|
#logo {
|
||||||
|
margin-left:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav {
|
||||||
|
float:right;
|
||||||
|
margin-right:5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav ul {
|
||||||
|
list-style-type:none;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#nav li {
|
||||||
|
display:inline-block;
|
||||||
|
margin:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav a:link, a:visited {
|
||||||
|
text-decoration:none;
|
||||||
|
width:100px;
|
||||||
|
color:#fff;
|
||||||
|
background-color:#87161a;
|
||||||
|
text-align:center;
|
||||||
|
padding:10px;
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav a:hover, a:active {
|
||||||
|
background-color:#9a3d41;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width:95%;
|
||||||
|
max-width:1200px;
|
||||||
|
margin:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
margin:20px auto;
|
||||||
|
border:1px solid black;
|
||||||
|
background-color:#fff;
|
||||||
|
box-shadow:0px 0px 5px #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content h1 {
|
||||||
|
margin-top:0;
|
||||||
|
color:#fff;
|
||||||
|
background-color:#87161a;
|
||||||
|
text-align:center;
|
||||||
|
padding:10px;
|
||||||
|
border-bottom:1px black solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content h2 {
|
||||||
|
margin:20px;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
background-color:white;
|
||||||
|
margin:20px;
|
||||||
|
}
|
86
public/assets/css/styles.css~
Normal file
86
public/assets/css/styles.css~
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
body {
|
||||||
|
background:linear-gradient(white, grey);
|
||||||
|
padding:0;
|
||||||
|
margin:0;
|
||||||
|
font-family:'Helvetica', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#top-grad {
|
||||||
|
border-top:1px black solid;
|
||||||
|
height:5px;
|
||||||
|
background:linear-gradient(grey, white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
width:100%;
|
||||||
|
color:#fff;
|
||||||
|
font-weight:100;
|
||||||
|
font-size:20px;
|
||||||
|
background-color:#87161a;
|
||||||
|
}
|
||||||
|
|
||||||
|
#logo {
|
||||||
|
margin-left:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav {
|
||||||
|
float:right;
|
||||||
|
margin-right:5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav ul {
|
||||||
|
list-style-type:none;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#nav li {
|
||||||
|
display:inline-block;
|
||||||
|
margin:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav a:link, a:visited {
|
||||||
|
text-decoration:none;
|
||||||
|
width:100px;
|
||||||
|
color:#fff;
|
||||||
|
background-color:#87161a;
|
||||||
|
text-align:center;
|
||||||
|
padding:10px;
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav a:hover, a:active {
|
||||||
|
background-color:#9a3d41;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width:95%;
|
||||||
|
max-width:1200px;
|
||||||
|
margin:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
margin:20px auto;;
|
||||||
|
border:1px solid black;
|
||||||
|
background-color:#fff;
|
||||||
|
box-shadow:0px 0px 5px #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content h1 {
|
||||||
|
margin-top:0;
|
||||||
|
color:#fff;
|
||||||
|
background-color:#87161a;
|
||||||
|
text-align:center;
|
||||||
|
padding:10px;
|
||||||
|
border-bottom:1px black solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content h2 {
|
||||||
|
margin:20px;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
background-color:white;
|
||||||
|
margin:20px;
|
||||||
|
}
|
BIN
public/assets/images/logo.png
Normal file
BIN
public/assets/images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
public/assets/images/menu-icon.png
Normal file
BIN
public/assets/images/menu-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 212 B |
BIN
resources/views/.generate.blade.php.swp
Normal file
BIN
resources/views/.generate.blade.php.swp
Normal file
Binary file not shown.
9
resources/views/about.blade.php
Normal file
9
resources/views/about.blade.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
@extends('layouts.master')
|
||||||
|
|
||||||
|
@section('title', 'About')
|
||||||
|
|
||||||
|
@section('header')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<p>This is the about content</p>
|
||||||
|
@endsection
|
9
resources/views/about.blade.php~
Normal file
9
resources/views/about.blade.php~
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
@extends('layouts.master')
|
||||||
|
|
||||||
|
@section('title', 'About')
|
||||||
|
|
||||||
|
@section('header')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<p>This is the about content</p>
|
||||||
|
@endsection
|
93
resources/views/generate.blade.php
Normal file
93
resources/views/generate.blade.php
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
@extends('layouts.master')
|
||||||
|
|
||||||
|
@section('title', 'Generate')
|
||||||
|
|
||||||
|
@section('header')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="content">
|
||||||
|
<h1>Workout Generator</h1>
|
||||||
|
<form method="post">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Background Info:</legend>
|
||||||
|
<label>What is your primary goal?:</label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<select>
|
||||||
|
<option value="strength">Gain Strength</option>
|
||||||
|
<option value="endurance">Gain Endurance</option>
|
||||||
|
<option value="definition">Gain Definition</option>
|
||||||
|
</select>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<label>Which of the following equipment/exercise styles do you have access to and enjoy doing? Check all that apply:</label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" id="free-weights" value="free-weights" onClick="control()">Free Weights
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" id="dumbbells" value="dumbbells" disabled><span class="dtext">Dumbbells</span>
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" id="barbells" value="barbells" disabled><span class="dtext">Barbells</span>
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" value="selectorized">Selectorized Equipment
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" value="cables">Cable Equipment
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" value="calisthenics">Calisthenics
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<label>How long have you consistently followed an exercise routine?</label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<select>
|
||||||
|
<option>0-6 months</option>
|
||||||
|
<option>6 months - 2 years</option>
|
||||||
|
<option>2 or more years</option>
|
||||||
|
</select>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<label>How many days would you like to workout this week?</label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<select>
|
||||||
|
<?php
|
||||||
|
for ($i = 1; $i <= 6; $i++) {
|
||||||
|
echo '<option>' . $i . '</option>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<button name="">Generate My Workout!</button>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
var fw = document.getElementById("free-weights");
|
||||||
|
var db = document.getElementById("dumbbells");
|
||||||
|
var bb = document.getElementById("barbells");
|
||||||
|
var dtext = document.getElementsByClassName("dtext");
|
||||||
|
for (var i = 0; i < dtext.length; i++) {
|
||||||
|
dtext[i].style.color = "#CCCCCC";
|
||||||
|
};
|
||||||
|
function control () {
|
||||||
|
if (fw.checked === true) {
|
||||||
|
db.disabled = false;
|
||||||
|
bb.disabled = false;
|
||||||
|
for (var i = 0; i < dtext.length; i++) {
|
||||||
|
dtext[i].style.color = "#000000";
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
db.disabled = true;
|
||||||
|
bb.disabled = true;
|
||||||
|
for (var i = 0; i < dtext.length; i++) {
|
||||||
|
dtext[i].style.color = "#CCCCCC";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
@endsection
|
90
resources/views/generate.blade.php~
Normal file
90
resources/views/generate.blade.php~
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
@extends('layouts.master')
|
||||||
|
|
||||||
|
@section('title', 'Generate')
|
||||||
|
|
||||||
|
@section('header')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="content">
|
||||||
|
<h1>Workout Generator</h1>
|
||||||
|
<form method="post">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Background Info:</legend>
|
||||||
|
<label>What is your primary goal?:</label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<select>
|
||||||
|
<option value="strength">Gain Strength</option>
|
||||||
|
<option value="endurance">Gain Endurance</option>
|
||||||
|
<option value="definition">Gain Definition</option>
|
||||||
|
</select>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<label>Which of the following equipment/exercise styles do you have access to and enjoy doing? Check all that apply:</label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" id="free-weights" value="free-weights" onClick="control()">Free Weights
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" id="dumbbells" value="dumbbells" disabled><span class="dtext">Dumbbells</span>
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" id="barbells" value="barbells" disabled><span class="dtext">Barbells</span>
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" value="selectorized">Selectorized Equipment
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" value="cables">Cable Equipment
|
||||||
|
<br />
|
||||||
|
<input type="checkbox" value="calisthenics">Calisthenics
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<label>How long have you consistently followed an exercise routine?</label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<select>
|
||||||
|
<option>0-6 months</option>
|
||||||
|
<option>6 months - 2 years</option>
|
||||||
|
<option>2 or more years</option>
|
||||||
|
</select>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<label>How many days would you like to workout this week?</label>
|
||||||
|
<select>
|
||||||
|
<?php
|
||||||
|
for ($i = 1; $i <= 6; $i++) {
|
||||||
|
echo '<option>' . $i . '</option>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<button name="">Generate My Workout!</button>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
var fw = document.getElementById("free-weights");
|
||||||
|
var db = document.getElementById("dumbbells");
|
||||||
|
var bb = document.getElementById("barbells");
|
||||||
|
var dtext = document.getElementsByClassName("dtext");
|
||||||
|
for (var i = 0; i < dtext.length; i++) {
|
||||||
|
dtext[i].style.color = "#CCCCCC";
|
||||||
|
};
|
||||||
|
function control () {
|
||||||
|
if (fw.checked === true) {
|
||||||
|
db.disabled = false;
|
||||||
|
bb.disabled = false;
|
||||||
|
for (var i = 0; i < dtext.length; i++) {
|
||||||
|
dtext[i].style.color = "#000000";
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
db.disabled = true;
|
||||||
|
bb.disabled = true;
|
||||||
|
for (var i = 0; i < dtext.length; i++) {
|
||||||
|
dtext[i].style.color = "#CCCCCC";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
@endsection
|
15
resources/views/home.blade.php
Normal file
15
resources/views/home.blade.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
@extends('layouts.master')
|
||||||
|
|
||||||
|
@section('title', 'Home')
|
||||||
|
|
||||||
|
@section('header')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="content">
|
||||||
|
<h2>Stuck in a rut? Just getting started? Getting bored of your routine? We've got you covered.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
With the workout generator provided exclusively by Fitness 1440, you can take your workouts to the next level. You give us your goals, your preferences, and your experience level and we'll give you a new workout as often as you like.
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
@endsection
|
15
resources/views/home.blade.php~
Normal file
15
resources/views/home.blade.php~
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
@extends('layouts.master')
|
||||||
|
|
||||||
|
@section('title', 'Home')
|
||||||
|
|
||||||
|
@section('header')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="content">
|
||||||
|
<p>Stuck in a rut? Just getting started? Getting bored of your routine? We've got you covered.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
With the workout generator provided exclusively by Fitness 1440, you can take your workouts to the next level. You give us your goals, your preferences, and your experience level and we'll give you a new workout as often as you like.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
@endsection
|
27
resources/views/layouts/master.blade.php
Normal file
27
resources/views/layouts/master.blade.php
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Workout Generator - @yield('title')</title>
|
||||||
|
<link rel="stylesheet" href={{ asset('assets/css/styles.css') }}>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
@section('header')
|
||||||
|
<div class="header">
|
||||||
|
<div class="container">
|
||||||
|
<a href="/"><img id="logo" src={{ asset('assets/images/logo.png') }} alt='Fitness 1440'></a>
|
||||||
|
<div id=nav>
|
||||||
|
<ul>
|
||||||
|
<a href="/"><li>Home</li></a> |
|
||||||
|
<a href="/about"><li>About</li></a> |
|
||||||
|
<a href="/generate"><li>Generate</li></a>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id=top-grad></div>
|
||||||
|
@show
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
@yield('content')
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
27
resources/views/layouts/master.blade.php~
Normal file
27
resources/views/layouts/master.blade.php~
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Workout Generator - @yield('title')</title>
|
||||||
|
<link rel="stylesheet" href={{ asset('assets/css/styles.css') }}>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
@section('header')
|
||||||
|
<div class="header">
|
||||||
|
<div class="container">
|
||||||
|
<a href="/"><img id="logo" src={{ asset('assets/images/logo.png') }} alt='Fitness 1440'></a>
|
||||||
|
<div id=nav>
|
||||||
|
<ul>
|
||||||
|
<a href="/"><li>Home</li></a> |
|
||||||
|
<a href="/about"><li>About</li></a> |
|
||||||
|
<a href="/generate"><li>Generate</li></a>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id=top-grad></div>
|
||||||
|
@show
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
@yield('content')
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in a new issue