maj de la page d'acceuil

création d’un repertoire image
maj du app.css
maj du home.blade.php
selection d’un fond d’ecran
j’ai ajouté des users dans la bdd
This commit is contained in:
Jerome Morjon 2015-02-16 02:41:12 +01:00
parent 0d61ee1ebb
commit b94a1c7cba
12 changed files with 82 additions and 42 deletions

View File

@ -1,5 +1,6 @@
<?php namespace App\Http\Controllers; <?php namespace App\Http\Controllers;
use DB;
class GameController extends Controller { class GameController extends Controller {
/** /**
@ -19,7 +20,8 @@ class GameController extends Controller {
*/ */
public function index() public function index()
{ {
return view('home'); $res = DB::select('SELECT * FROM `referent`');
return view('home',['referent' => $res]);
} }
/** /**

View File

@ -34,3 +34,5 @@ class HomeController extends Controller {
} }
} }
?>

0
SRC/bootstrap/home.css Normal file
View File

View File

@ -6,7 +6,13 @@ html {
} }
body { body {
margin: 0; margin: 0;
background-image:url(../pictures/homePic/fond.jpg);
background-attachment:fixed;
background-repeat:no-repeat;
background-position:100% 100%;
background-size:cover;
} }
article, article,
aside, aside,
details, details,
@ -2326,6 +2332,7 @@ output {
line-height: 1.42857143; line-height: 1.42857143;
color: #555555; color: #555555;
} }
.form-control { .form-control {
display: block; display: block;
width: 100%; width: 100%;
@ -3431,6 +3438,13 @@ tbody.collapse.in {
clip: rect(0, 0, 0, 0); clip: rect(0, 0, 0, 0);
pointer-events: none; pointer-events: none;
} }
.form-group img
{
width: 2%;
height: 2%;
}
.input-group { .input-group {
position: relative; position: relative;
display: table; display: table;
@ -5339,7 +5353,7 @@ a.list-group-item-danger.active:focus {
padding: 19px; padding: 19px;
margin-bottom: 20px; margin-bottom: 20px;
background-color: #f5f5f5; background-color: #f5f5f5;
border: 1px solid #e3e3e3; border: 1px solid silver;
border-radius: 4px; border-radius: 4px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
} }
@ -5349,7 +5363,14 @@ a.list-group-item-danger.active:focus {
} }
.well-lg { .well-lg {
padding: 24px; padding: 24px;
margin: 5%;
margin-left : 25%;
margin-right: 25%;
border-radius: 6px; border-radius: 6px;
-moz-box-shadow: 0px 0px 8px black inset;
-webkit-box-shadow: 0px 0px 5px black inset;
-o-box-shadow: 0px 0px 5px black inset;
box-shadow: 0px 0px 8px black inset;
} }
.well-sm { .well-sm {
padding: 9px; padding: 9px;
@ -5727,16 +5748,22 @@ button.close {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
} }
.carousel-inner > .item { .carousel-inner > .item {
display: none; display: none;
position: relative; position: relative;
transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left;
} }
.carousel-inner > .item > img, .carousel-inner > .item > img,
.carousel-inner > .item > a > img { .carousel-inner > .item > a > img
{
line-height: 1; line-height: 1;
} }
@media all and (transform-3d), (-webkit-transform-3d) { @media all and (transform-3d), (-webkit-transform-3d) {
.carousel-inner > .item { .carousel-inner > .item {
transition: -webkit-transform 0.6s ease-in-out; transition: -webkit-transform 0.6s ease-in-out;
@ -5878,17 +5905,22 @@ button.close {
height: 10px; height: 10px;
margin: 1px; margin: 1px;
text-indent: -999px; text-indent: -999px;
border: 1px solid #ffffff; border: 1px solid transparent; /*#ffffff; */ /*cerclage du rond */
border-radius: 10px; border-radius: 10px;
cursor: pointer; cursor: pointer;
background-color: #000 \9; background-color: silver; /*#000 \9;*/
background-color: rgba(0, 0, 0, 0);
} }
.carousel-indicators .active { .carousel-indicators .active
{
margin: 0; margin: 0;
width: 12px; width: 12px;
height: 12px; height: 12px;
background-color: #ffffff; background: #39CEF0;
-moz-box-shadow: 0px 1px 2px 0px #656565;
-webkit-box-shadow: 0px 1px 2px 0px #656565;
-o-box-shadow: 0px 1px 2px 0px #656565;
box-shadow: 0px 1px 2px 0px #656565;
} }
.carousel-caption { .carousel-caption {
position: absolute; position: absolute;
@ -5898,7 +5930,7 @@ button.close {
z-index: 10; z-index: 10;
padding-top: 20px; padding-top: 20px;
padding-bottom: 20px; padding-bottom: 20px;
color: #ffffff; color: *#ffffff;
text-align: center; text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -3,54 +3,58 @@
@section('content') @section('content')
<br> <br>
<center><h1>Bienvenue!</h1> <center>
<img style="height:auto; width:auto; max-width:400px; alt="" src="./pictures/homePic/bienvenue.png">
<br>
<br> <br>
<form class="form-inline"> <form class="form-inline">
<div class="form-group"> <div class="form-group">
<img alt="" src="./pictures/homePic/search.png">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" placeholder="Search"> <input type="text" class="form-control" placeholder="Rechercher un Référant">
</div> </div>
</div> </div>
<button type="submit" class="btn btn-primary">Search</button>
</form> </form>
<br> <br>
<br> <br>
<div style="margin-left: 200px, margin-right: 200px" id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <div style="margin-left: 200px, margin-right: 200px" id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<!-- indicateur, à incrementé en fonction du nombre d'images -->
<ol class="carousel-indicators"> <ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> @foreach ($referent as $ref)
<li data-target="#carousel-example-generic" data-slide-to="1"></li> @if ($ref -> idreferent == 1)
<li data-target="#carousel-example-generic" data-slide-to="{{ $ref -> idreferent }}" class='active' ></li>
@else
<li data-target="#carousel-example-generic" data-slide-to="{{ $ref -> idreferent }} "></li>
@endif
@endforeach
</ol> </ol>
<!-- Wrapper for slides --> <!-- Parametres des images -->
<div class="carousel-inner" role="listbox"> <div class="carousel-inner" role="listbox">
<div class="item active"> @foreach ($referent as $ref)
<a href="/referents/vive.linux/games"><img src="./pictures/1.jpg" width="35%" alt="indians"></a> @if ($ref -> idreferent == 1)
<div class="carousel-caption"> <div class="item active">
Ceci est une image @else
</div> <div class="item">
</div> @endif
<div class="item"> <a href="/referents/vive.linux/games"><img src="./pictures/referent/{{ $ref-> image }}" width="35%" alt="{{ $ref -> prenom }}-{{ $ref -> nom }}"></a>
<a href="/referents/vive.linux/games"><img src="./pictures/2.jpg" width="35%" alt="others indians"></a> <div class="well well-lg">{{$ref -> prenom}}, {{$ref -> nom}}</div>
<div class="carousel-caption"> </div>
Ceci est une image différente de l'autre @endforeach
</div> </div>
</div>
</div> <!-- Controles -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<!-- Controls --> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> <span class="sr-only">Précédant</span>
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> </a>
<span class="sr-only">Previous</span> <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
</a> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> <span class="sr-only">Suivant</span>
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> </a>
<span class="sr-only">Next</span>
</a>
</div> </div>
<div class="well well-lg">Information du référent</div>
</center> </center>
@endsection @endsection