theme canard

This commit is contained in:
Olivier Legat 2021-03-05 11:52:38 +01:00
parent d93553b396
commit 3477e8323d
14 changed files with 165 additions and 0 deletions

View file

@ -0,0 +1,5 @@
@extends('layouts.layout')
@section('content')
<h1>Mon panier</h1>
@endsection

View file

@ -0,0 +1,8 @@
@extends('layouts.layout')
@section('content')
<h1>Contact</h1>
@if ($content !== null)
{!!$content->value!!}
@endif
@endsection

View file

@ -0,0 +1,9 @@
@extends('layouts.layout')
@section('content')
<h1>FAQ</h1><br/>
@foreach ($faq as $f)
<h3>{{$f->question}}</h3>
<p>{{$f->answer}}</p>
@endforeach
@endsection

View file

@ -0,0 +1,8 @@
@extends('layouts.layout')
@section('content')
<h1>Home</h1>
@if ($content !== null)
{!!$content->value!!}
@endif
@endsection

View file

@ -0,0 +1,7 @@
//front JS for the theme
require('./bootstrap');
$(document).ready(function() {
console.log('basic theme on');
});

View file

@ -0,0 +1,39 @@
window._ = require('lodash');
/**
* We'll load jQuery.
* This code may be modified to fit the specific needs of your application.
*/
try {
window.$ = window.jQuery = require('jquery');
} catch (e) {}
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
// import Echo from 'laravel-echo';
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: process.env.MIX_PUSHER_APP_KEY,
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
// forceTLS: true
// });

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title') - {{$settingsGlobal->site_name}}</title>
</head>
<body>
<nav>
<ol>
<li><a href="{{ route('home') }}">Accueil</a></li>
<li><a href="{{ route('contact') }}">Contact</a></li>
<li><a href="{{ route('legal-notice') }}">Mentions Légales</a></li>
<li><a href="{{ route('terms') }}">CGV</a></li>
<li><a href="{{ route('privacy') }}">Politique de confidentialité</a></li>
<li><a href="{{ route('faq') }}">FAQ</a></li>
<li>-</li>
@auth
<li><a href="{{ route('auth.logout') }}">Se déconnecter</a></li>
@else
<li><a href="{{ route('auth.login') }}">Se connecter</a></li>
<li><a href="{{ route('auth.register') }}">Inscription</a></li>
<li><a href="{{ route('auth.reset-password') }}">Mot de passe oublié ?</a></li>
@endif
<li>-</li>
<li><a href="{{ route('basket') }}">Mon Panier</a></li>
<li>-</li>
<li><a href="{{ route('ranges') }}">Gammes de produits</a></li>
</ol>
</nav>
@yield('content')
</body>
</html>

View file

@ -0,0 +1,8 @@
@extends('layouts.layout')
@section('content')
<h1>Mentions Légales</h1>
@if ($content !== null)
{!!$content->value!!}
@endif
@endsection

View file

@ -0,0 +1,8 @@
@extends('layouts.layout')
@section('content')
<h1>Politique de confidentialité</h1>
@if ($content !== null)
{!!$content->value!!}
@endif
@endsection

View file

@ -0,0 +1,5 @@
@extends('layouts.layout')
@section('content')
<h1>Produit "{{$product->name}}"</h1>
@endsection

View file

@ -0,0 +1,10 @@
@extends('layouts.layout')
@section('content')
<h1>Gamme de produits "{{$range->name}}"</h1>
<ul>
@foreach($range->products as $product)
<li><a href="{{route('product', $product->slug)}}">{{$product->name}}</a></li>
@endforeach
</ul>
@endsection

View file

@ -0,0 +1,10 @@
@extends('layouts.layout')
@section('content')
<h1>Gammes de produits</h1>
<ul>
@foreach ($ranges as $range)
<li><a href="{{ route('range', ['rangeSlug' => $range->slug]) }}">Gamme de produits - {{$range->name}}</a></li>
@endforeach
</ul>
@endsection

View file

@ -0,0 +1,6 @@
//Front CSS for theme
nav {
ol {
list-style: none;
}
}

View file

@ -0,0 +1,8 @@
@extends('layouts.layout')
@section('content')
<h1>CGV</h1>
@if ($content !== null)
{!!$content->value!!}
@endif
@endsection