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

View File

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

View File

@ -1,23 +1,9 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Dashboard</div>
<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>
@extends('layout')
@section('title')
<title>Home</title>
@endsection
@section('content')
<img src="img/app.png" weight=700px height=400px alt="">
<br>
<a href="{{ url('/contact-us') }}">Contactez-nous!</a>
@endsection

View File

@ -1,28 +1,25 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HOME</title>
<!-- Fonts -->
@yield('title')
<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') }}">
</head>
<body>
<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>
<p>
<img src="img/app.png" weight=700px height=400px alt="">
</p>
@include('menu')
@yield('content')
</body>
</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 () {
return view('index');
return view('home');
});
Route::get('contact-us', 'ContactUSController@contactUS');