2017-10-22 23:13:21 +09:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ app()->getLocale() }}">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
|
2019-01-08 23:27:48 +09:00
|
|
|
@hasSection('title')
|
|
|
|
<title>@yield('title') - {{ config('app.name', 'Tissue') }}</title>
|
|
|
|
@else
|
|
|
|
<title>{{ config('app.name', 'Tissue') }}</title>
|
|
|
|
@endif
|
2017-10-22 23:13:21 +09:00
|
|
|
|
2019-02-16 22:52:27 +09:00
|
|
|
<link href="{{ asset('manifest.json') }}" rel="manifest">
|
2019-03-05 00:08:37 +09:00
|
|
|
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
|
2017-10-22 23:13:21 +09:00
|
|
|
|
2017-11-03 17:48:58 +09:00
|
|
|
@stack('head')
|
2017-10-22 23:13:21 +09:00
|
|
|
</head>
|
2019-02-04 00:10:14 +09:00
|
|
|
<body class="{{Auth::check() ? '' : 'tis-need-agecheck'}}">
|
2019-02-10 16:54:32 +09:00
|
|
|
<noscript class="navbar navbar-light bg-warning">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="d-flex flex-column mx-auto">
|
|
|
|
<p class="m-0 text-dark">Tissueを利用するには、ブラウザのJavaScriptとCookieを有効にする必要があります。</p>
|
|
|
|
<p class="m-0 text-info">
|
|
|
|
<a href="https://www.enable-javascript.com/ja/" target="_blank" rel="nofollow noopener">ブラウザでJavaScriptを有効にする方法</a>
|
|
|
|
・ <a href="https://www.whatismybrowser.com/guides/how-to-enable-cookies/auto" target="_blank" rel="nofollow noopener">ブラウザでCookieを有効にする方法</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</noscript>
|
2017-11-06 00:49:10 +09:00
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light {{ !Auth::check() && Route::currentRouteName() === 'home' ? '' : 'mb-4'}}">
|
2017-10-22 23:13:21 +09:00
|
|
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
</form>
|
|
|
|
|
2017-11-05 19:51:31 +09:00
|
|
|
<div class="container">
|
2019-02-23 05:29:12 +09:00
|
|
|
<a href="{{ route('home') }}" class="navbar-brand mr-auto">{{ config('app.name', 'Tissue') }}</a>
|
2019-02-26 22:26:22 +09:00
|
|
|
@auth
|
|
|
|
<div class="d-lg-none navbar-nav">
|
|
|
|
<div class="nav-item dropdown">
|
|
|
|
<a href="#" class="nav-link dropdown-toggle p-2" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
2020-01-28 01:36:59 +09:00
|
|
|
<img src="{{ Auth::user()->getProfileImageUrl(30) }}" srcset="{{ Formatter::profileImageSrcSet(Auth::user(), 30) }}" width="30" height="30" class="rounded d-inline-block align-top">
|
2019-02-23 05:29:12 +09:00
|
|
|
</a>
|
2019-02-26 22:32:32 +09:00
|
|
|
<div class="dropdown-menu dropdown-menu-right position-absolute" aria-labelledby="navbarDropdownMenuLink" id="navbarAccountDropdownSp">
|
2020-10-24 14:53:12 +09:00
|
|
|
@include('components.header-dropdown-menu')
|
2019-02-26 22:26:22 +09:00
|
|
|
</div>
|
2019-02-23 05:29:12 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-26 22:26:22 +09:00
|
|
|
@endauth
|
2017-11-05 19:51:31 +09:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
|
|
@auth
|
2019-02-23 05:29:12 +09:00
|
|
|
<!-- PC navbar -->
|
|
|
|
<div class="d-none d-lg-flex navbar-collapse ml-3">
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item {{ stripos(Route::currentRouteName(), 'home') === 0 ? 'active' : ''}}">
|
|
|
|
<a class="nav-link" href="{{ route('home') }}">ホーム</a>
|
|
|
|
</li>
|
2020-10-24 15:07:46 +09:00
|
|
|
<li class="nav-item {{ stripos(Route::currentRouteName(), 'timeline.public') === 0 ? 'active' : ''}}">
|
|
|
|
<a class="nav-link" href="{{ route('timeline.public') }}">お惣菜</a>
|
2019-02-23 05:29:12 +09:00
|
|
|
</li>
|
2019-09-16 13:24:22 +09:00
|
|
|
<li class="nav-item {{ stripos(Route::currentRouteName(), 'tag') === 0 ? 'active' : ''}}">
|
|
|
|
<a class="nav-link" href="{{ route('tag') }}">タグ一覧</a>
|
|
|
|
</li>
|
2019-02-23 05:29:12 +09:00
|
|
|
{{--<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ route('ranking') }}">ランキング</a>
|
|
|
|
</li>--}}
|
|
|
|
</ul>
|
|
|
|
<form action="{{ stripos(Route::currentRouteName(), 'search') === 0 ? route(Route::currentRouteName()) : route('search') }}" class="form-inline mr-2">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="search" name="q" class="form-control" placeholder="検索..." value="{{ stripos(Route::currentRouteName(), 'search') === 0 ? $inputs['q'] : '' }}" required>
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button class="btn btn-outline-secondary" type="submit"><span class="oi oi-magnifying-glass" aria-hidden="true"></span><span class="sr-only">検索</span></button>
|
|
|
|
</div>
|
2018-09-06 23:48:54 +09:00
|
|
|
</div>
|
2019-02-23 05:29:12 +09:00
|
|
|
</form>
|
|
|
|
<form class="form-inline mr-2">
|
2019-03-11 21:26:34 +09:00
|
|
|
<a href="{{ route('checkin') }}" class="btn btn-outline-primary">チェックイン</a>
|
2019-02-23 05:29:12 +09:00
|
|
|
</form>
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a href="#" class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
2020-01-28 01:36:59 +09:00
|
|
|
<img src="{{ Auth::user()->getProfileImageUrl(30) }}" srcset="{{ Formatter::profileImageSrcSet(Auth::user(), 30) }}" width="30" height="30" class="rounded d-inline-block align-top">
|
2019-01-14 02:16:14 +09:00
|
|
|
</a>
|
2019-02-23 05:29:12 +09:00
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
|
2020-10-24 14:53:12 +09:00
|
|
|
@include('components.header-dropdown-menu')
|
2019-02-23 05:29:12 +09:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<!-- SP navbar -->
|
|
|
|
<div class="d-lg-none">
|
|
|
|
<div class="row mt-2">
|
|
|
|
<div class="col">
|
2019-03-11 21:26:34 +09:00
|
|
|
<a class="btn btn-{{ stripos(Route::currentRouteName(), 'home') === 0 ? 'primary' : 'outline-secondary'}}" href="{{ route('home') }}" role="button">ホーム</a>
|
2017-11-05 19:51:31 +09:00
|
|
|
</div>
|
2019-02-23 05:29:12 +09:00
|
|
|
<div class="col">
|
2020-10-24 15:07:46 +09:00
|
|
|
<a class="btn btn-{{ stripos(Route::currentRouteName(), 'timeline.public') === 0 ? 'primary' : 'outline-secondary'}}" href="{{ route('timeline.public') }}" role="button">お惣菜</a>
|
2019-02-23 05:29:12 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-16 14:02:19 +09:00
|
|
|
<div class="row mt-2">
|
|
|
|
<div class="col">
|
|
|
|
<a class="btn btn-{{ stripos(Route::currentRouteName(), 'tag') === 0 ? 'primary' : 'outline-secondary'}}" href="{{ route('tag') }}" role="button">タグ一覧</a>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-23 05:29:12 +09:00
|
|
|
{{-- <div class="row mt-2">
|
|
|
|
<div class="col">
|
|
|
|
<a class="btn btn-outline-secondary" href="{{ route('ranking') }}">ランキング</a>
|
|
|
|
</div>
|
|
|
|
</div> --}}
|
|
|
|
<div class="row mt-2">
|
2019-02-23 06:40:37 +09:00
|
|
|
<form action="{{ stripos(Route::currentRouteName(), 'search') === 0 ? route(Route::currentRouteName()) : route('search') }}" class="col">
|
2019-02-23 05:29:12 +09:00
|
|
|
<div class="input-group">
|
|
|
|
<input type="search" name="q" class="form-control" placeholder="検索..." value="{{ stripos(Route::currentRouteName(), 'search') === 0 ? $inputs['q'] : '' }}" required>
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button class="btn btn-outline-secondary" type="submit"><span class="oi oi-magnifying-glass" aria-hidden="true"></span><span class="sr-only">検索</span></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="row mt-2">
|
|
|
|
<form class="form-inline col">
|
2019-03-11 21:26:34 +09:00
|
|
|
<a class="btn btn-outline-primary" href="{{ route('checkin') }}">チェックイン</a>
|
2019-02-23 05:29:12 +09:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-05 19:51:31 +09:00
|
|
|
@endauth
|
2020-05-16 14:47:17 +09:00
|
|
|
@if (!App::isDownForMaintenance())
|
|
|
|
@guest
|
|
|
|
<!-- PC navbar -->
|
|
|
|
<div class="d-none d-lg-flex navbar-collapse">
|
|
|
|
<ul class="navbar-nav ml-auto mr-2">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="{{ route('register') }}" class="nav-link">会員登録</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<form class="form-inline">
|
|
|
|
<a href="{{ route('login') }}" class="btn btn-outline-secondary">ログイン</a>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- SP navbar -->
|
|
|
|
<div class="d-lg-none">
|
|
|
|
<div class="row mt-2">
|
|
|
|
<div class="col">
|
|
|
|
<a class="btn btn-outline-secondary" href="{{ route('register') }}" role="button">会員登録</a>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<form class="form-inline">
|
|
|
|
<a class="btn btn-outline-secondary" href="{{ route('login') }}">ログイン</a>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-02-23 05:29:12 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-16 14:47:17 +09:00
|
|
|
@endguest
|
|
|
|
@endif
|
2017-11-05 19:51:31 +09:00
|
|
|
</div>
|
2017-10-22 23:13:21 +09:00
|
|
|
</div>
|
|
|
|
</nav>
|
2017-11-03 17:48:58 +09:00
|
|
|
@if (session('status'))
|
2020-11-18 23:09:21 +09:00
|
|
|
<div class="container tis-status-container">
|
2017-11-03 17:48:58 +09:00
|
|
|
<div id="status" class="alert alert-success alert-dismissible fade show" role="alert">
|
|
|
|
{{ session('status') }}
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2017-10-22 23:13:21 +09:00
|
|
|
@yield('content')
|
|
|
|
<footer class="tis-footer mt-4">
|
2017-11-06 00:49:10 +09:00
|
|
|
<div class="container p-3 p-md-4">
|
2020-01-10 04:27:56 +09:00
|
|
|
<p>Copyright (c) 2017-2020 shikorism.net</p>
|
2017-10-22 23:13:21 +09:00
|
|
|
<ul class="list-inline">
|
|
|
|
<li class="list-inline-item"><a href="https://github.com/shibafu528" class="text-dark">Admin(@shibafu528)</a></li>
|
|
|
|
<li class="list-inline-item"><a href="https://github.com/shikorism/tissue" class="text-dark">GitHub</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</footer>
|
2019-02-04 00:10:14 +09:00
|
|
|
@guest
|
|
|
|
<div class="modal fade" id="ageCheckModal" tabindex="-1" role="dialog" aria-labelledby="ageCheckModalTitle" aria-hidden="true">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="ageCheckModalTitle">Tissue へようこそ!</h5>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
この先のコンテンツには暴力表現や性描写など、18歳未満の方が閲覧できないコンテンツが含まれています。
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-primary" data-dismiss="modal">まかせて</button>
|
|
|
|
<a href="https://cookpad.com" rel="noreferrer" class="btn btn-secondary">ごめん無理</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endguest
|
2019-03-08 06:53:13 +09:00
|
|
|
<script src="{{ mix('js/manifest.js') }}"></script>
|
|
|
|
<script src="{{ mix('js/vendor.js') }}"></script>
|
2019-03-05 00:08:37 +09:00
|
|
|
<script src="{{ mix('js/app.js') }}"></script>
|
2017-11-03 17:48:58 +09:00
|
|
|
@stack('script')
|
2017-10-22 23:13:21 +09:00
|
|
|
</body>
|
2019-03-08 06:53:13 +09:00
|
|
|
</html>
|