mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Add site redirect view
This commit is contained in:
parent
f7da21b9b3
commit
03eff2f623
1 changed files with 22 additions and 0 deletions
22
resources/views/site/redirect.blade.php
Normal file
22
resources/views/site/redirect.blade.php
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
@extends('layouts.blank')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div style="width:100%;height:100vh;" class="d-flex justify-content-center align-items-center">
|
||||||
|
<div class="text-center">
|
||||||
|
<img src="/img/pixelfed-icon-grey.svg">
|
||||||
|
<p class="mt-3 py-4">Redirecting to <span class="font-weight-bold">{{$url}}</span></p>
|
||||||
|
<div class="spinner-border text-lighter" role="status">
|
||||||
|
<span class="sr-only">Loading...</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script type="text/javascript">
|
||||||
|
window.history.replaceState({}, document.title, '/i/redirect');
|
||||||
|
setTimeout(function() {
|
||||||
|
window.location.href = '{{$url}}';
|
||||||
|
}, 1500);
|
||||||
|
</script>
|
||||||
|
@endpush
|
Loading…
Reference in a new issue