Skip to content
Snippets Groups Projects
Commit accde5e9 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

better preview

parent e4335879
No related branches found
No related tags found
No related merge requests found
.preview .preview
.modal-body .modal-body
background: black background: #EEEEEE
text-align: center
overflow: hidden overflow: hidden
padding: 0
text-align: center
transition: padding 0.5s ease
iframe iframe
background: white
box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1)
height: 100% height: 100%
transition: width 0.5s ease transition: width 0.5s ease, height 0.5s ease
&--mobile, &--tablet
.modal-body
padding: 2rem
iframe
border-radius: 10px
&--mobile &--mobile
iframe iframe
width: 415px width: 415px
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
<h5 class="modal-title h4"><%= t 'preview.title' %></h5> <h5 class="modal-title h4"><%= t 'preview.title' %></h5>
<div class="btn-group m-auto" role="group" aria-label="Basic example"> <div class="btn-group m-auto" role="group" aria-label="Basic example">
<button type="button" class="btn btn-primary preview__button" data-mode="mobile"> <button type="button" class="btn btn-primary preview__button" data-mode="mobile">
<i class="fas fa-mobile"></i> <i class="fas fa-mobile-alt"></i>
<%= t 'preview.mobile' %> <%= t 'preview.mobile' %>
</button> </button>
<button type="button" class="btn btn-light preview__button" data-mode="tablet"> <button type="button" class="btn btn-light preview__button" data-mode="tablet">
<i class="fas fa-tablet"></i> <i class="fas fa-tablet-alt"></i>
<%= t 'preview.tablet' %> <%= t 'preview.tablet' %>
</button> </button>
<button type="button" class="btn btn-light preview__button" data-mode="desktop"> <button type="button" class="btn btn-light preview__button" data-mode="desktop">
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</div> </div>
<button type="button" class="btn-close ms-0" data-bs-dismiss="modal" aria-label="Close"></button> <button type="button" class="btn-close ms-0" data-bs-dismiss="modal" aria-label="Close"></button>
</div> </div>
<div class="modal-body p-2"> <div class="modal-body">
<iframe src="<%= request.path %>/preview" loading="lazy"></iframe> <iframe src="<%= request.path %>/preview" loading="lazy"></iframe>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment