This commit is contained in:
jenoh 2020-03-13 11:39:12 +01:00
commit 6fdc35f4d4
6 changed files with 70 additions and 86 deletions

10
public/css/style.css vendored
View File

@ -25,14 +25,14 @@ body {
background-color: #E7E7E7; background-color: #E7E7E7;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-weight: 200; font-weight: 200;
color: #B1B0B7; color: #FAFAFA;
text-align: center; text-align: center;
} }
a:link, a:visited { a:link, a:visited {
font-weight: 700; font-weight: 700;
background-color: #92F2DC; background-color: #636b6f;
color: white; color: #FAFAFA;
padding: 14px 25px; padding: 14px 25px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
@ -40,5 +40,7 @@ a:link, a:visited {
} }
a:hover, a:active { a:hover, a:active {
background-color: #9DFFB3; background-color: #FF0448;
color: #FAFAFA;
} }

View File

@ -1,42 +1,44 @@
<!DOCTYPE html> @extends('layout')
<html> @section('title')
<head> <title>Contact</title>
<title>Laravel 5.4 Cloudways Contact US Form Example</title> @endsection
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> @section('content')
</head> <br>
<body> <br>
<div class="container"> <div class="container">
<h1>Contactez-nous</h1>
@if(Session::has('success')) @if(Session::has('success'))
<div class="alert alert-success"> <div class="alert alert-success">
{{ Session::get('success') }} {{ Session::get('success') }}
</div> </div>
@endif @endif
@if(Session::has('error'))
<div class="alert alert-danger"> {!! Form::open(['route'=>'contactus.store']) !!}
{{ Session::get('error') }}
</div> <div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
@endif {{--{!! Form::label('Nom:') !!}--}}
{!! Form::open(['route'=>'contactus.store']) !!} {!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=>'Enter Name']) !!}
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}"> <span class="text-danger">{{ $errors->first('name') }}</span>
{!! Form::label('Nom:') !!} </div>
{!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=>'Enter Name']) !!}
<span class="text-danger">{{ $errors->first('name') }}</span> <div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
</div> {{--{!! Form::label('Email:') !!}--}}
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}"> {!! Form::text('email', old('email'), ['class'=>'form-control', 'placeholder'=>'Enter Email']) !!}
{!! Form::label('Email:') !!} <span class="text-danger">{{ $errors->first('email') }}</span>
{!! Form::text('email', old('email'), ['class'=>'form-control', 'placeholder'=>'Enter Email']) !!} </div>
<span class="text-danger">{{ $errors->first('email') }}</span>
</div> <div class="form-group {{ $errors->has('message') ? 'has-error' : '' }}">
<div class="form-group {{ $errors->has('message') ? 'has-error' : '' }}"> {{--{!! Form::label('Message:') !!}--}}
{!! Form::label('Message:') !!} {!! Form::textarea('message', old('message'), ['class'=>'form-control', 'placeholder'=>'Enter Message']) !!}
{!! Form::textarea('message', old('message'), ['class'=>'form-control', 'placeholder'=>'Enter Message']) !!} <span class="text-danger">{{ $errors->first('message') }}</span>
<span class="text-danger">{{ $errors->first('message') }}</span> </div>
</div>
<div class="form-group"> <div class="form-group">
<button class="btn btn-success">Ziiing !</button> <button class="btn btn-success">Ziiing !</button>
</div> </div>
{!! Form::close() !!}
</div> {!! Form::close() !!}
</body>
</html> </div>
@endsection

View File

@ -1,23 +1,9 @@
@extends('layouts.app') @extends('layout')
@section('title')
@section('content') <title>Home</title>
<div class="container"> @endsection
<div class="row justify-content-center"> @section('content')
<div class="col-md-8"> <img src="img/app.png" weight=700px height=400px alt="">
<div class="card"> <br>
<div class="card-header">Dashboard</div> <a href="{{ url('/contact-us') }}">Contactez-nous!</a>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
You are logged in!
</div>
</div>
</div>
</div>
</div>
@endsection @endsection

View File

@ -1,28 +1,25 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>HOME</title> @yield('title')
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap" rel="stylesheet">
<!-- Styles --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ asset('css/style.css') }}"> <link rel="stylesheet" href="{{ asset('css/style.css') }}">
</head> </head>
<body> <body>
<header> <header>
@include('header') <div class="logo">
KOLIG
</div>
<div class="title">
Défendez votre clan!
</div>
<div class="description">
Créer un nouveau groupe d'amis et commencer des maintenant à parier!
</div>
</header> </header>
<p>
<img src="img/app.png" weight=700px height=400px alt="">
</p>
@include('menu')
@yield('content') @yield('content')
</body> </body>
</html> </html>

View File

@ -1,3 +0,0 @@
<p>
<a href="{{ url('/contact-us') }}">Contactez-nous!</a>
</p>

View File

@ -12,7 +12,7 @@
*/ */
Route::get('/', function () { Route::get('/', function () {
return view('index'); return view('home');
}); });
Route::get('contact-us', 'ContactUSController@contactUS'); Route::get('contact-us', 'ContactUSController@contactUS');