pixelfed/resources/views/layouts/app.blade.php

85 lines
3.7 KiB
PHP
Raw Normal View History

2018-04-16 00:00:49 +00: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">
<meta name="csrf-token" content="{{ csrf_token() }}">
2018-04-17 01:26:53 +00:00
<meta name="mobile-web-app-capable" content="yes">
2018-08-10 04:38:46 +00:00
<title>{{ $title ?? config('app.name', 'Laravel') }}</title>
<link rel="manifest" href="/manifest.json">
2018-08-10 04:38:46 +00:00
<meta property="og:site_name" content="{{ config('app.name', 'pixelfed') }}">
<meta property="og:title" content="{{ $title ?? config('app.name', 'pixelfed') }}">
<meta property="og:type" content="article">
<meta property="og:url" content="{{request()->url()}}">
2018-04-16 01:55:24 +00:00
@stack('meta')
2018-04-17 01:26:53 +00:00
<meta name="medium" content="image">
<meta name="theme-color" content="#10c5f8">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="shortcut icon" type="image/png" href="/img/favicon.png?v=2">
<link rel="apple-touch-icon" type="image/png" href="/img/favicon.png?v=2">
<link rel="canonical" href="{{request()->url()}}">
2019-04-22 05:40:54 +00:00
@if(request()->cookie('dark-mode'))
2019-08-02 08:14:30 +00:00
2019-04-22 05:40:54 +00:00
<link href="{{ mix('css/appdark.css') }}" rel="stylesheet" data-stylesheet="dark">
@else
2019-08-02 08:14:30 +00:00
2019-02-26 07:46:33 +00:00
<link href="{{ mix('css/app.css') }}" rel="stylesheet" data-stylesheet="light">
2019-04-22 05:40:54 +00:00
@endif
2019-08-02 08:14:30 +00:00
2018-04-16 01:55:24 +00:00
@stack('styles')
2019-08-02 08:14:30 +00:00
<script type="text/javascript">window.App = {}; window.App.config = {!!App\Util\Site\Config::json()!!}</script>
2018-04-16 00:00:49 +00:00
</head>
2018-11-20 02:44:27 +00:00
<body class="{{Auth::check()?'loggedIn':''}}">
2018-05-30 02:44:12 +00:00
@include('layouts.partial.nav')
2018-06-02 05:22:20 +00:00
<main id="content">
2018-05-30 02:44:12 +00:00
@yield('content')
2019-03-26 04:49:22 +00:00
@if(Auth::check())
<div class="modal pr-0" tabindex="-1" role="dialog" id="composeModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<compose-modal></compose-modal>
</div>
</div>
</div>
@endif
2018-05-30 02:44:12 +00:00
</main>
2018-06-02 05:22:20 +00:00
@include('layouts.partial.footer')
<script type="text/javascript" src="{{ mix('js/manifest.js') }}"></script>
<script type="text/javascript" src="{{ mix('js/vendor.js') }}"></script>
<script type="text/javascript" src="{{ mix('js/app.js') }}"></script>
2018-11-09 03:58:54 +00:00
<script type="text/javascript" src="{{ mix('js/components.js') }}"></script>
2018-04-16 01:55:24 +00:00
@stack('scripts')
2018-08-10 04:38:46 +00:00
@if(Auth::check())
2019-03-04 20:37:57 +00:00
<div class="d-block d-sm-none mt-5"></div>
<div class="d-block d-sm-none fixed-bottom">
2019-03-12 06:55:44 +00:00
<div class="card card-body rounded-0 py-2 d-flex align-items-middle box-shadow" style="border-top:1px solid #F1F5F8">
2019-03-10 07:13:10 +00:00
<ul class="nav nav-pills nav-fill">
<li class="nav-item">
2019-05-27 00:42:42 +00:00
<a class="nav-link {{request()->is('/')?'text-dark':'text-muted'}}" href="/"><i class="fas fa-home fa-lg"></i></a>
2019-03-10 07:13:10 +00:00
</li>
<li class="nav-item">
2019-05-27 00:42:42 +00:00
<a class="nav-link {{request()->is('timeline/public')?'text-dark':'text-muted'}}" href="/timeline/public"><i class="far fa-map fa-lg"></i></a>
2019-03-10 07:13:10 +00:00
</li>
<li class="nav-item">
2019-05-27 00:42:42 +00:00
<div class="nav-link text-primary cursor-pointer" data-toggle="modal" data-target="#composeModal"><i class="fas fa-camera-retro fa-lg"></i></div>
2019-03-10 07:13:10 +00:00
</li>
<li class="nav-item">
2019-05-27 00:42:42 +00:00
<a class="nav-link {{request()->is('discover')?'text-dark':'text-muted'}}" href="{{route('discover')}}"><i class="far fa-compass fa-lg"></i></a>
2019-03-10 07:13:10 +00:00
</li>
<li class="nav-item">
2019-05-27 00:42:42 +00:00
<a class="nav-link {{request()->is('account/activity')?'text-dark':'text-muted'}} tooltip-notification" href="/account/activity"><i class="far fa-bell fa-lg"></i></a>
2019-03-10 07:13:10 +00:00
</li>
</ul>
2019-03-04 20:37:57 +00:00
</div>
2019-03-04 19:43:25 +00:00
</div>
2018-08-10 04:38:46 +00:00
@endif
2018-04-16 00:00:49 +00:00
</body>
</html>