mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
rewrite app view
This commit is contained in:
parent
3bc8290ab8
commit
be39679690
@ -12,4 +12,4 @@
|
||||
|
||||
</main>
|
||||
|
||||
<component is="chat"></component>
|
||||
<component is="chat"></component>
|
@ -14,11 +14,7 @@
|
||||
</head>
|
||||
<body class="{{ $section }}">
|
||||
|
||||
@if(Auth::check() || Request::path() != '/')
|
||||
<component is="inner"></component>
|
||||
@else
|
||||
<component is="landing"></component>
|
||||
@endif
|
||||
<component is="{{ $section }}"></component>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<script src="{{ url('assets/js/bundle.js') }}"></script>
|
||||
|
@ -6,6 +6,10 @@
|
||||
});
|
||||
|
||||
get('/', function() {
|
||||
if(Auth::check()) {
|
||||
return redirect('/lobby');
|
||||
}
|
||||
|
||||
return view('app')
|
||||
->withSection('landing');
|
||||
});
|
Loading…
Reference in New Issue
Block a user