New home page, hid about page until I can add content.

This commit is contained in:
William Brawner 2015-09-01 23:20:36 -07:00
parent e7db79a9a9
commit 41c8826c6f
5 changed files with 47 additions and 7 deletions

View file

@ -14,6 +14,9 @@ class CreateExercisesTable extends Migration
{ {
Schema::create('exercises', function (Blueprint $table) { Schema::create('exercises', function (Blueprint $table) {
$table->increments('id'); $table->increments('id');
$table->string('exercise_name');
$table->string('muscle_group');
$table->string('exercise_type');
$table->timestamps(); $table->timestamps();
}); });
} }

View file

@ -27,6 +27,43 @@ body {
display:inline-block; display:inline-block;
} }
.banner {
position:relative;
width:100%;
display:block;
}
.banner img {
width:100%;
height:auto;
}
.banner h1 {
background-color:rgba(0, 0, 0, 0.5) !important;
border-bottom:none !important;
color:#fff;
position:absolute;
width:100%;
max-width:100% !important;
margin:0 !important;
padding:5px 0 !important;
top:45%;
text-align:center;
display:block;
text-shadow:0px 0px 5px #000;
}
.banner button {
font-size: 20px;
color: #fff;
background-color:#87161a;
text-shadow:0px 0px 5px #000;
border:solid 1px #87161a;
border-radius:5px;
margin:10px;
cursor:pointer;
}
#nav { #nav {
float:right; float:right;
margin-right:5px; margin-right:5px;
@ -94,7 +131,7 @@ fieldset {
#nav { #nav {
float:none; float:none;
display:block; display:block;
width:290px width:290px;
margin:auto; margin:auto;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 KiB

View file

@ -6,10 +6,10 @@
@section('content') @section('content')
<div class="content"> <div class="content">
<h2>Stuck in a rut? Just getting started? Getting bored of your routine? We've got you covered. <div class="banner">
<br /> <img src={{ asset('assets/images/banner.jpg') }} class="banner">
<br /> <h1 class="banner_text">Need help with your workouts? We've got you covered.<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. <a href='/generate'><button>Generate My Workout</button></a></h1>
</h2> </div>
</div> </div>
@endsection @endsection

View file

@ -14,7 +14,7 @@
<div id=nav> <div id=nav>
<ul> <ul>
<a href="/"><li>Home</li></a> | <a href="/"><li>Home</li></a> |
<a href="/about"><li>About</li></a> | <!--<a href="/about"><li>About</li></a> |-->
<a href="/generate"><li>Generate</li></a> <a href="/generate"><li>Generate</li></a>
</ul> </ul>
</div> </div>