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

128 lines
5.4 KiB
PHP
Raw Normal View History

2018-04-16 00:00:49 +00:00
<!DOCTYPE html>
2019-11-11 01:22:21 +00:00
@auth
2018-04-16 00:00:49 +00:00
<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">
2019-11-11 01:22:21 +00:00
<title>{{ $title ?? config('app.name', 'Pixelfed') }}</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">
2020-02-13 02:34:45 +00:00
<meta property="og:url" content="{{url(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">
2020-02-13 02:34:45 +00:00
<link rel="canonical" href="{{url(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
2020-01-28 02:30:59 +00:00
<script type="text/javascript">window._sharedData = {curUser: {}, version: 0}; window.App = {config: {!!App\Util\Site\Config::json()!!}};</script>
2019-08-02 08:14:30 +00:00
2018-04-16 00:00:49 +00:00
</head>
2019-11-11 01:22:21 +00:00
<body class="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')
2020-01-30 02:58:57 +00:00
<noscript>
<div class="container">
<p class="pt-5 text-center lead">Please enable javascript to view this content.</p>
</div>
</noscript>
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')
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-08-06 03:37:23 +00:00
<a class="nav-link {{request()->is('/')?'text-dark':'text-lighter'}}" href="/"><i class="fas fa-home fa-lg"></i></a>
2019-03-10 07:13:10 +00:00
</li>
<li class="nav-item">
2019-08-06 03:37:23 +00:00
<a class="nav-link {{request()->is('discover')?'text-dark':'text-lighter'}}" href="/discover"><i class="fas fa-search fa-lg"></i></a>
2019-03-10 07:13:10 +00:00
</li>
<li class="nav-item">
<div class="nav-link text-primary cursor-pointer" onclick="App.util.compose.post()">
<span class="border border-primary rounded p-2 bg-primary">
2020-11-26 02:47:23 +00:00
<i class="fas fa-camera fa-lg text-white" style="color:#fff !important;"></i>
</span>
</div>
2019-03-10 07:13:10 +00:00
</li>
<li class="nav-item">
2019-08-06 03:37:23 +00:00
<a class="nav-link {{request()->is('account/activity')?'text-dark':'text-lighter'}}" href="/account/activity"><i class="far fa-heart fa-lg"></i></a>
2019-03-10 07:13:10 +00:00
</li>
<li class="nav-item">
2019-08-06 03:37:23 +00:00
<a class="nav-link text-lighter" href="/i/me"><i class="far fa-user 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-04-16 00:00:49 +00:00
</body>
</html>
2019-11-11 01:22:21 +00:00
@endauth
@guest
<html lang="en">
<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="mobile-web-app-capable" content="yes">
<title>{{ $title ?? config('app.name', 'Pixelfed') }}</title>
<link rel="manifest" href="/manifest.json">
<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">
2020-02-13 07:05:27 +00:00
<meta property="og:url" content="{{url(request()->url())}}">
2019-11-11 01:22:21 +00:00
@stack('meta')
<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">
2020-02-13 07:05:27 +00:00
<link rel="canonical" href="{{url(request()->url())}}">
2019-11-11 01:22:21 +00:00
<link href="{{ mix('css/app.css') }}" rel="stylesheet" data-stylesheet="light">
2020-02-13 07:05:27 +00:00
<script type="text/javascript">window._sharedData = {curUser: {}, version: 0}; window.App = {config: {!!App\Util\Site\Config::json()!!}};</script>
2019-11-11 01:22:21 +00:00
@stack('styles')
</head>
<body>
@include('layouts.partial.nav')
<main id="content">
@yield('content')
</main>
@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>
<script type="text/javascript" src="{{ mix('js/components.js') }}"></script>
@stack('scripts')
</body>
</html>
@endguest