Bootstrap 4への移行完了

This commit is contained in:
shibafu 2017-11-06 00:49:10 +09:00
parent 2038b5e7c3
commit 58258f8fe3
26 changed files with 154 additions and 18972 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

9045
public/js/materialize.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,49 +1,42 @@
@extends('layouts.base-old')
@extends('layouts.base')
@section('content')
<div class="container">
<h2 class="grey-text">ログイン</h2>
<div class="row">
<form method="post" action="{{ route('login') }}" class="col s12 push-m3 m6">
<h2>ログイン</h2>
<hr>
<div class="row justify-content-center my-5">
<div class="col-lg-6">
<form method="post" action="{{ route('login') }}">
{{ csrf_field() }}
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">email</i>
<input id="email" name="email" class="validate{{ $errors->has('email') ? ' invalid' : '' }}" type="text" value="{{ old('email') }}" required autofocus>
<label for="email">メールアドレス</label>
<div class="form-group">
<label for="email"><span class="oi oi-envelope-closed"></span> メールアドレス</label>
<input id="email" name="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" type="text" value="{{ old('email') }}" required autofocus>
@if ($errors->has('email'))
<span class="red-text"><strong>{{ $errors->first('email') }}</strong></span>
<div class="invalid-feedback">{{ $errors->first('email') }}</div>
@endif
</div>
<div class="input-field col s12">
<i class="material-icons prefix">lock</i>
<input id="password" name="password" class="validate{{ $errors->has('password') ? ' invalid' : '' }}" type="password" required>
<label for="password">パスワード</label>
<div class="form-group">
<label for="password"><span class="oi oi-key"></span> パスワード</label>
<input id="password" name="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" type="password" required>
@if ($errors->has('password'))
<span class="red-text"><strong>{{ $errors->first('password') }}</strong></span>
<div class="invalid-feedback">{{ $errors->first('password') }}</div>
@endif
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input id="remember" name="rememver" class="custom-control-input" type="checkbox" {{ old('remember') ? 'checked' : '' }}>
<span class="custom-control-indicator"></span>
<span class="custom-control-description">保存する</span>
</label>
</div>
<div class="row">
<div class="input-field col s12">
<p>
<input id="remember" name="remember" class="filled-in" type="checkbox" {{ old('remember') ? 'checked' : '' }}>
<label for="remember">保存する</label>
</p>
</div>
</div>
<div class="row center">
<div class="input-field col s12">
<button class="btn waves-effect waves-light teal lighten-2" type="submit">ログイン</button>
</div>
<div class="input-field col s12">
<a href="{{ route('password.request') }}">パスワードを忘れた場合はこちら</a>
</div>
</div>
<button class="btn btn-primary" type="submit">ログイン</button>
<a href="{{ route('password.request') }}" class="btn btn-link">パスワードを忘れた場合はこちら</a>
</form>
</div>
</div>
</div>
@endsection

View File

@ -1,46 +1,29 @@
@extends('layouts.app')
@extends('layouts.base')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Reset Password</div>
<div class="panel-body">
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
<h2>パスワードの再発行</h2>
<hr>
<div class="row justify-content-center my-5">
<div class="col-12 text-center">
<p>本サイトでお使いのメールアドレスを入力して、<strong>パスワードを再発行</strong>ボタンを押してください。<br>入力されたメールアドレスに、手続きを行うためのリンクが書かれたメールが送信されます。</p>
</div>
@endif
<form class="form-horizontal" method="POST" action="{{ route('password.email') }}">
<div class="col-lg-6">
<form method="post" action="{{ route('password.email') }}">
{{ csrf_field() }}
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<label for="email" class="col-md-4 control-label">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required>
<div class="form-group">
<label for="email"><span class="oi oi-envelope-closed"></span> メールアドレス</label>
<input id="email" name="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" type="text" value="{{ old('email') }}" required autofocus>
@if ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
<div class="invalid-feedback">{{ $errors->first('email') }}</div>
@endif
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Send Password Reset Link
</button>
</div>
</div>
<button class="btn btn-primary" type="submit">パスワードを再発行</button>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -1,76 +1,47 @@
@extends('layouts.app')
@extends('layouts.base')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Reset Password</div>
<div class="panel-body">
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
<h2>パスワードの再発行</h2>
<hr>
<div class="row justify-content-center my-5">
<div class="col-12 text-center">
<p>新しいパスワードを入力し、<strong>パスワードを変更</strong>ボタンを押してください。</p>
</div>
@endif
<form class="form-horizontal" method="POST" action="{{ route('password.request') }}">
<div class="col-lg-6">
<form method="post" action="{{ route('password.request') }}">
{{ csrf_field() }}
<input type="hidden" name="token" value="{{ $token }}">
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<label for="email" class="col-md-4 control-label">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control" name="email" value="{{ $email or old('email') }}" required autofocus>
<div class="form-group">
<label for="email"><span class="oi oi-envelope-closed"></span> メールアドレス</label>
<input id="email" name="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" type="text" value="{{ old('email') }}" required>
@if ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
<div class="invalid-feedback">{{ $errors->first('email') }}</div>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
<label for="password" class="col-md-4 control-label">Password</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control" name="password" required>
<div class="form-group">
<label for="password"><span class="oi oi-key"></span> パスワード</label>
<input id="password" name="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" type="password" required>
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
<div class="invalid-feedback">{{ $errors->first('password') }}</div>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
<label for="password-confirm" class="col-md-4 control-label">Confirm Password</label>
<div class="col-md-6">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
<div class="form-group">
<label for="password-confirm">パスワードの再入力</label>
<input id="password-confirm" name="password_confirmation" class="form-control" type="password" required>
@if ($errors->has('password_confirmation'))
<span class="help-block">
<strong>{{ $errors->first('password_confirmation') }}</strong>
</span>
<div class="invalid-feedback">{{ $errors->first('password_confirmation') }}</div>
@endif
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Reset Password
</button>
</div>
</div>
<button class="btn btn-primary" type="submit">パスワードを変更</button>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -1,66 +1,68 @@
@extends('layouts.base-old')
@extends('layouts.base')
@section('content')
<div class="container">
<h2 class="grey-text">新規登録</h2>
<div class="row">
<form method="post" action="{{ route('register') }}" class="col s12 push-m3 m6">
<h2>新規登録</h2>
<hr>
<div class="row justify-content-center my-5">
<div class="col-lg-6">
<form method="post" action="{{ route('register') }}">
{{ csrf_field() }}
<div class="row">
<h6 class="grey-text col s12">ユーザー情報</h6>
<div class="input-field col s12">
<i class="material-icons prefix">person</i>
<input id="name" name="name" class="validate{{ $errors->has('name') ? ' invalid' : '' }}" type="text" value="{{ old('name') }}" required>
<label for="name">ユーザー名</label>
<div class="form-group">
<label for="name"><span class="oi oi-person"></span> ユーザー名</label>
<input id="name" name="name" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" type="text" value="{{ old('name') }}" required>
@if ($errors->has('name'))
<span class="red-text"><strong>{{ $errors->first('name') }}</strong></span>
<div class="invalid-feedback">{{ $errors->first('name') }}</div>
@endif
</div>
<div class="input-field col s12">
<i class="material-icons prefix">email</i>
<input id="email" name="email" class="validate{{ $errors->has('email') ? ' invalid' : '' }}" type="text" value="{{ old('email') }}" required>
<label for="email">メールアドレス</label>
<div class="form-group">
<label for="email"><span class="oi oi-envelope-closed"></span> メールアドレス</label>
<input id="email" name="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" type="text" value="{{ old('email') }}" required>
@if ($errors->has('email'))
<span class="red-text"><strong>{{ $errors->first('email') }}</strong></span>
<div class="invalid-feedback">{{ $errors->first('email') }}</div>
@endif
</div>
<div class="input-field col s12">
<i class="material-icons prefix">lock</i>
<input id="password" name="password" class="validate{{ $errors->has('password') ? ' invalid' : '' }}" type="password" required>
<label for="password">パスワード</label>
<div class="form-group">
<label for="password"><span class="oi oi-key"></span> パスワード</label>
<input id="password" name="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" type="password" required>
@if ($errors->has('password'))
<span class="red-text"><strong>{{ $errors->first('password') }}</strong></span>
<div class="invalid-feedback">{{ $errors->first('password') }}</div>
@endif
</div>
<div class="input-field col s12">
<i class="material-icons prefix"></i>
<input id="password-confirm" name="password_confirmation" class="validate" type="password" required>
<div class="form-group">
<label for="password-confirm">パスワードの再入力</label>
<input id="password-confirm" name="password_confirmation" class="form-control" type="password" required>
</div>
<div class="form-row ml-1 mt-4">
<h6 class="mb-3">プライバシーに関するオプション (全て任意です)</h6>
<div class="form-group">
<div class="form-check">
<label class="custom-control custom-checkbox">
<input id="protected" name="is_protected" class="custom-control-input" type="checkbox" {{ old('is_protected') ? 'checked' : '' }}>
<span class="custom-control-indicator"></span>
<span class="custom-control-description">全てのチェックイン履歴を非公開にする</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input id="accept-analytics" name="accept_analytics" class="custom-control-input" type="checkbox" {{ old('accept_analytics') ? 'checked' : '' }}>
<span class="custom-control-indicator"></span>
<span class="custom-control-description">匿名での統計にチェックインデータを利用することに同意します</span>
</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<h6 class="grey-text">プライバシーに関するオプション (全て任意です)</h6>
<p>
<input id="protected" name="is_protected" class="filled-in" type="checkbox" {{ old('is_protected') ? 'checked' : '' }}>
<label for="protected">チェックイン履歴を非公開にする</label>
</p>
<p>
<input id="accept-analytics" name="accept_analytics" class="filled-in" type="checkbox" {{ old('accept_analytics') ? 'checked' : '' }}>
<label for="accept-analytics">匿名での統計にチェックインデータを利用することに同意します</label>
</p>
</div>
</div>
<div class="row center">
<div class="input-field col s12">
<button class="btn waves-effect waves-light teal lighten-2" type="submit">登録</button>
</div>
<div class="text-center">
<button class="btn btn-primary btn-lg" type="submit">登録</button>
</div>
</form>
</div>
</div>
</div>
@endsection

View File

@ -1,68 +0,0 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login</div>
<div class="panel-body">
<form class="form-horizontal" method="POST" action="{{ route('login') }}">
{{ csrf_field() }}
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<label for="email" class="col-md-4 control-label">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus>
@if ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
<label for="password" class="col-md-4 control-label">Password</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control" name="password" required>
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<div class="checkbox">
<label>
<input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> Remember Me
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-8 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Login
</button>
<a class="btn btn-link" href="{{ route('password.request') }}">
Forgot Your Password?
</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -1,76 +0,0 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form class="form-horizontal" method="POST" action="{{ route('register') }}">
{{ csrf_field() }}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="name" class="col-md-4 control-label">Name</label>
<div class="col-md-6">
<input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}" required autofocus>
@if ($errors->has('name'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<label for="email" class="col-md-4 control-label">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required>
@if ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
<label for="password" class="col-md-4 control-label">Password</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control" name="password" required>
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group">
<label for="password-confirm" class="col-md-4 control-label">Confirm Password</label>
<div class="col-md-6">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Register
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -6,7 +6,7 @@
<hr>
<div class="row justify-content-center mt-5">
<div class="col-lg-6">
<form method="post" action="{{ route('checkin') }}" class="col s12 push-m3 m6">
<form method="post" action="{{ route('checkin') }}">
{{ csrf_field() }}
<div class="form-row">

View File

@ -1,45 +1,30 @@
@extends('layouts.base-old')
@extends('layouts.base')
@section('content')
<div class="section no-pad-bot" id="index-banner">
<div class="container">
<br><br>
<h1 class="header center grey-text">{{ config('app.name', 'Tissue') }}</h1>
<div class="row center">
<h5 class="header col s12 light">気持ちよくティッシュを使った、そのあとの感想戦。</h5>
<p class="col s12">あるいは遺伝子の墓場</p>
</div>
<div class="row center">
<a href="{{ url('/register') }}" class="btn-large waves-effect waves-light teal lighten-2">今すぐ登録</a>
</div>
<br><br>
<div class="jumbotron jumbotron-fluid">
<div class="container text-center">
<h1 class="display-3">{{ config('app.name', 'Tissue') }}</h1>
<p class="lead mb-2">気持ちよくティッシュを使った、そのあとの感想戦。</p>
<p class="text-secondary">あるいは遺伝子の墓場</p>
<a href="{{ route('register') }}" class="btn btn-primary btn-lg mt-4" role="button">今すぐ登録</a>
</div>
</div>
<div class="container">
<div class="section">
<div class="row">
<div class="col s12 m4">
<div class="icon-block">
<h2 class="center teal-text"><i class="large material-icons">mode_edit</i></h2>
<h5 class="center">記録</h5>
<p class="light">気持ちよかったその思い出を記録しましょう。楽しんだ時間や使ったオカズ、感想などを記録することができます。</p>
</div>
</div>
<div class="col s12 m4">
<div class="icon-block">
<h2 class="center teal-text"><i class="large material-icons">show_chart</i></h2>
<h5 class="center">統計</h5>
<p class="light">記録を続けていくことで、ティッシュを使う頻度や時間の傾向、あるいはあなたのお気に入りのオカズが見えてくるようになります。我慢大会をするのも、猿を目指すのもまた一興。</p>
</div>
</div>
<div class="col s12 m4">
<div class="icon-block">
<h2 class="center teal-text"><i class="large material-icons">public</i></h2>
<h5 class="center">ソーシャル</h5>
<p class="light">ティッシュが蒸発するような人気のオカズや、底なしの体力を競い合うランキングなど、Webならではのサービスも用意<s class="grey-text">しています</s>したいですね。</p>
<div class="col-lg-4">
<h1 class="text-center text-secondary display-3"><span class="oi oi-pencil"></span></h1>
<h4 class="text-center my-4">記録</h4>
<p>気持ちよかったその思い出を記録しましょう。楽しんだ時間や使ったオカズ、感想などを記録することができます。</p>
</div>
<div class="col-lg-4">
<h1 class="text-center text-secondary display-3"><span class="oi oi-graph"></span></h1>
<h4 class="text-center my-4">統計</h4>
<p>記録を続けていくことで、ティッシュを使う頻度や時間の傾向、あるいはあなたのお気に入りのオカズが見えてくるようになります。我慢大会をするのも、猿を目指すのもまた一興。</p>
</div>
<div class="col-lg-4">
<h1 class="text-center text-secondary display-3"><span class="oi oi-globe"></span></h1>
<h4 class="text-center my-4">ソーシャル</h4>
<p>ティッシュが蒸発するような人気のオカズや、底なしの体力を競い合うランキングなど、Webならではのサービスも用意<s class="grey-text">しています</s>したいですね。</p>
</div>
</div>
</div>

View File

@ -1,80 +0,0 @@
<!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">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
<body>
<div id="app">
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<!-- Collapsed Hamburger -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Branding Image -->
<a class="navbar-brand" href="{{ url('/') }}">
{{ config('app.name', 'Laravel') }}
</a>
</div>
<div class="collapse navbar-collapse" id="app-navbar-collapse">
<!-- Left Side Of Navbar -->
<ul class="nav navbar-nav">
&nbsp;
</ul>
<!-- Right Side Of Navbar -->
<ul class="nav navbar-nav navbar-right">
<!-- Authentication Links -->
@if (Auth::guest())
<li><a href="{{ route('login') }}">Login</a></li>
<li><a href="{{ route('register') }}">Register</a></li>
@else
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
{{ Auth::user()->name }} <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
Logout
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
</li>
</ul>
</li>
@endif
</ul>
</div>
</div>
</nav>
@yield('content')
</div>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}"></script>
</body>
</html>

View File

@ -1,80 +0,0 @@
<!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.0">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Tissue') }}</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="{{ asset('css/materialize.min.css') }}" rel="stylesheet" media="screen,projection">
@yield('head')
</head>
<body>
<nav class="grey lighten-1" role="navigation">
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
@if (Auth::check())
<ul id="accountMenu" class="dropdown-content">
<li><a href="{{ route('user.profile') }}">プロフィール</a></li>
<li class="divider"></li>
<li><a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">ログアウト</a></li>
</ul>
@endif
<div class="nav-wrapper container">
<a id="logo-container" href="{{ route('home') }}" class="brand-logo">{{ config('app.name', 'Tissue') }}</a>
@if (Auth::guest())
<ul class="right hide-on-med-and-down">
<li><a href="{{ route('login') }}">ログイン</a></li>
</ul>
<ul id="nav-mobile" class="side-nav">
<li><a href="{{ route('login') }}">ログイン</a></li>
</ul>
@else
<ul class="right">
<li><a class="waves-effect waves-light btn" href="{{ route('checkin') }}"><i class="material-icons left hide-on-med-and-down">create</i> チェックイン</a></li>
</ul>
<ul class="right hide-on-med-and-down">
<li><a class="dropdown-button" data-activates="accountMenu" href="#">{{ Auth::user()->display_name }} さん<i class="material-icons right">arrow_drop_down</i></a></li>
</ul>
<ul id="nav-mobile" class="side-nav">
<li><a href="#">{{ Auth::user()->display_name }} さん</a></li>
<li><a href="{{ route('user.profile') }}">プロフィール</a></li>
<li class="divider"></li>
<li><a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">ログアウト</a></li>
</ul>
@endif
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
</div>
</nav>
@yield('content')
<footer class="page-footer grey">
<!--<div class="container"></div>-->
<div class="footer-copyright">
<div class="container">
Copyright (c) 2017 shikorism.net
</div>
</div>
</footer>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="{{ asset('js/materialize.min.js') }}"></script>
<script>
$(function(){
$('.button-collapse').sideNav();
$('.dropdown-button').dropdown();
$('ul.tabs').tabs();
@if (session('status'))
Materialize.toast('{{ session("status") }}', 5000);
@endif
});
</script>
@yield('script')
</body>
</html>

View File

@ -15,7 +15,7 @@
@stack('head')
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light mb-4">
<nav class="navbar navbar-expand-lg navbar-light bg-light {{ !Auth::check() && Route::currentRouteName() === 'home' ? '' : 'mb-4'}}">
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
@ -62,7 +62,7 @@
@endauth
@guest
<form class="form-inline ml-auto">
<a href="{{ route('login') }}" class="btn btn-outline-success">ログイン</a>
<a href="{{ route('login') }}" class="btn btn-outline-secondary">ログイン</a>
</form>
@endguest
</div>
@ -80,7 +80,7 @@
@endif
@yield('content')
<footer class="tis-footer mt-4">
<div class="container-fluid p-3 p-md-4">
<div class="container p-3 p-md-4">
<p>Copyright (c) 2017 shikorism.net</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="https://github.com/shibafu528" class="text-dark">Admin(@shibafu528)</a></li>

View File

@ -1,95 +0,0 @@
<!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">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Raleway', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.top-right {
position: absolute;
right: 10px;
top: 18px;
}
.content {
text-align: center;
}
.title {
font-size: 84px;
}
.links > a {
color: #636b6f;
padding: 0 25px;
font-size: 12px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.m-b-md {
margin-bottom: 30px;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
@if (Route::has('login'))
<div class="top-right links">
@if (Auth::check())
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ url('/login') }}">Login</a>
<a href="{{ url('/register') }}">Register</a>
@endif
</div>
@endif
<div class="content">
<div class="title m-b-md">
Laravel
</div>
<div class="links">
<a href="https://laravel.com/docs">Documentation</a>
<a href="https://laracasts.com">Laracasts</a>
<a href="https://laravel-news.com">News</a>
<a href="https://forge.laravel.com">Forge</a>
<a href="https://github.com/laravel/laravel">GitHub</a>
</div>
</div>
</div>
</body>
</html>