Skip to content

Commit cf95254

Browse files
committed
Added preview to add link page
1 parent ed99b86 commit cf95254

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

resources/views/studio/links.blade.php

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,24 @@
1212
@php setcookie("LinkCount", "all", time()+60*60*24*5, "/"); @endphp
1313
@endif
1414

15-
<section class=' shadow text-gray-400'>
15+
@push('sidebar-stylesheets')
16+
<style>
17+
@media only screen and (max-width: 1500px) {
18+
.pre-side{display:none!important;}
19+
.pre-left{width:100%!important;}
20+
.pre-bottom{display:block!important;}
21+
}
22+
23+
@media only screen and (min-width: 1500px) {
24+
.pre-left{width:70%!important;}
25+
.pre-right{width:30%!important;}
26+
.pre-bottom{display:none!important;}
27+
}
28+
</style>
29+
@endpush
30+
31+
<div class="row">
32+
<section class='pre-left shadow text-gray-400'>
1633
<h3 class="card-header"><i class="bi bi-link-45deg">My Links</i>
1734
<a class="btn btn-primary float-right" href="{{ url('/studio/add-link') }}">Add new <span class='d-none d-md-inline'>item</span></a>
1835

@@ -119,4 +136,20 @@
119136
<a class="btn btn-primary" href="{{ url('/studio/add-link') }}">Add new item</a>
120137
</div>
121138
</section>
139+
140+
<section class='pre-right shadow text-gray-400 pre-side'>
141+
<h3 class="card-header"><i class="bi bi-window-fullscreen" style="font-style:normal!important;"> Preview:</i></h3>
142+
<div class='card-body p-0 p-md-3'>
143+
<center><iframe allowtransparency="true" id="frPreview" style=" border-radius:0.25rem !important; background: #FFFFFF; min-height:600px; height:100%; max-width:500px !important;" class='w-100' src="{{ url('') }}/@<?= Auth::user()->littlelink_name ?>">Your browser isn't compatible</iframe></center>
144+
</div>
145+
</section>
146+
</div>
147+
148+
<br>
149+
<section style="width:100%!important;" class='pre-bottom shadow text-gray-400 pre-side'>
150+
<h3 class="card-header"><i class="bi bi-window-fullscreen" style="font-style:normal!important;"> Preview:</i></h3>
151+
<div class='card-body p-0 p-md-3'>
152+
<center><iframe allowtransparency="true" id="frPreview" style=" border-radius:0.25rem !important; background: #FFFFFF; min-height:600px; height:100%; width:100% !important;" class='w-100' src="{{ url('') }}/@<?= Auth::user()->littlelink_name ?>">Your browser isn't compatible</iframe></center>
153+
</div>
154+
</section>
122155
@endsection

0 commit comments

Comments
 (0)