Some design change

This commit is contained in:
loicbersier 2020-01-23 04:26:17 +01:00
parent 5cf71c08b4
commit 1dc101c0c1

View file

@ -133,25 +133,45 @@
</section> </section>
@if(file != "") @if(file != "")
<p class="title has-text-light has-text-centered">Recently downloaded videos</p>
<section class="section"> <section class="section">
<p class="title has-text-light has-text-centered">Recently downloaded videos</p> <div class="columns is-vcentered is-multiline fadein">
<div class="tile fadein">
@each(file in file) @each(file in file)
<div class="tile is-parent hvr-grow"> <div class="column hvr-grow">
<article class="tile is-child box notification is-info"> <div class="column box notification is-dark">
<p class="subtitle">{{ file.name }}</p> <p class="subtitle">{{ file.name }}</p>
<p>{{ file.size }} MB</p> <div>
<video muted loop onmouseover="this.play()" onmouseout="this.pause();" oncanplay="this.muted=true" poster="{{ file.img }}" preload="metadata">
<source src="{{ file.location }}#t=0.5" >
<img src="{{ file.img }}" title="Your browser does not support the <video> tag">
</video>
</div>
<br> <br>
<div class="content"> <div class="content">
<p><a class="button is-link is-rounded" href="{{ file.location }}" download>Download<i class="fas fa-fw fa-file-download" aria-hidden="true"></i></a></p> <div class="field has-addons is-centered">
<p><button class="button is-link is-rounded" onclick="toClipboard('https:\/\/namejeff.xyz\/{{ file.location }}')">Add to clipboard<i class="fas fa-fw fa-clipboard" aria-hidden="true"></i></button></p> <p class="control">
<a class="button is-link is-rounded" href="{{ file.location }}" download>Download<i class="fas fa-fw fa-file-download" aria-hidden="true"></i></a>
</p>
<p class="control">
<button class="button is-link is-rounded" onclick="toClipboard('https:\/\/namejeff.xyz\/{{ file.location }}')">Add to clipboard<i class="fas fa-fw fa-clipboard" aria-hidden="true"></i></button>
</p>
</div>
</div> </div>
<video muted width="720" height="480" loop onmouseover="this.play()" onmouseout="this.pause();" oncanplay="this.muted=true" poster="{{ file.img }}" preload="metadata"> <div class="field is-grouped">
<source src="{{ file.location }}#t=0.5" > <div class="control">
<img src="{{ file.img }}" title="Your browser does not support the <video> tag"> <div class="tags has-addons">
</video> <span class="tag">File format</span>
<!-- <img src="data:image/png;base64, {{ file.img }}"> --> <span class="tag is-primary">{{ file.ext }}</span>
</article> </div>
</div>
<div class="control">
<div class="tags has-addons">
<span class="tag">File size</span>
<span class="tag is-primary">{{ file.size }} MB</span>
</div>
</div>
</div>
</div>
</div> </div>
@endeach @endeach
</div> </div>