theme canard
This commit is contained in:
parent
d93553b396
commit
3477e8323d
14 changed files with 165 additions and 0 deletions
5
resources/views/front/canard/basket.blade.php
Normal file
5
resources/views/front/canard/basket.blade.php
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>Mon panier</h1>
|
||||
@endsection
|
||||
8
resources/views/front/canard/contact.blade.php
Normal file
8
resources/views/front/canard/contact.blade.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>Contact</h1>
|
||||
@if ($content !== null)
|
||||
{!!$content->value!!}
|
||||
@endif
|
||||
@endsection
|
||||
9
resources/views/front/canard/faq.blade.php
Normal file
9
resources/views/front/canard/faq.blade.php
Normal 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
|
||||
8
resources/views/front/canard/home.blade.php
Normal file
8
resources/views/front/canard/home.blade.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>Home</h1>
|
||||
@if ($content !== null)
|
||||
{!!$content->value!!}
|
||||
@endif
|
||||
@endsection
|
||||
7
resources/views/front/canard/js/app.js
vendored
Normal file
7
resources/views/front/canard/js/app.js
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
//front JS for the theme
|
||||
|
||||
require('./bootstrap');
|
||||
|
||||
$(document).ready(function() {
|
||||
console.log('basic theme on');
|
||||
});
|
||||
39
resources/views/front/canard/js/bootstrap.js
vendored
Normal file
39
resources/views/front/canard/js/bootstrap.js
vendored
Normal 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
|
||||
// });
|
||||
34
resources/views/front/canard/layouts/layout.blade.php
Normal file
34
resources/views/front/canard/layouts/layout.blade.php
Normal 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>
|
||||
8
resources/views/front/canard/legal-notice.blade.php
Normal file
8
resources/views/front/canard/legal-notice.blade.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>Mentions Légales</h1>
|
||||
@if ($content !== null)
|
||||
{!!$content->value!!}
|
||||
@endif
|
||||
@endsection
|
||||
8
resources/views/front/canard/privacy.blade.php
Normal file
8
resources/views/front/canard/privacy.blade.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>Politique de confidentialité</h1>
|
||||
@if ($content !== null)
|
||||
{!!$content->value!!}
|
||||
@endif
|
||||
@endsection
|
||||
5
resources/views/front/canard/product.blade.php
Normal file
5
resources/views/front/canard/product.blade.php
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>Produit "{{$product->name}}"</h1>
|
||||
@endsection
|
||||
10
resources/views/front/canard/range.blade.php
Normal file
10
resources/views/front/canard/range.blade.php
Normal 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
|
||||
10
resources/views/front/canard/ranges.blade.php
Normal file
10
resources/views/front/canard/ranges.blade.php
Normal 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
|
||||
6
resources/views/front/canard/sass/app.scss
vendored
Normal file
6
resources/views/front/canard/sass/app.scss
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
//Front CSS for theme
|
||||
nav {
|
||||
ol {
|
||||
list-style: none;
|
||||
}
|
||||
}
|
||||
8
resources/views/front/canard/terms.blade.php
Normal file
8
resources/views/front/canard/terms.blade.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>CGV</h1>
|
||||
@if ($content !== null)
|
||||
{!!$content->value!!}
|
||||
@endif
|
||||
@endsection
|
||||
Loading…
Add table
Reference in a new issue