From eea0202359e2be2ac4a93fb173e8dbb3b39537a8 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 4 Oct 2022 11:58:31 +0200 Subject: [PATCH] . --- app/Http/Controllers/FrontController.php | 6 ++---- resources/css/app.sass | 8 +++++++- resources/views/song.blade.php | 17 +++++++++++------ 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/app/Http/Controllers/FrontController.php b/app/Http/Controllers/FrontController.php index 9d7bb6c..3ee070a 100644 --- a/app/Http/Controllers/FrontController.php +++ b/app/Http/Controllers/FrontController.php @@ -71,16 +71,14 @@ class FrontController extends Controller if ($partition) { $partition = $partition->getUrl(); } - $lyrics_html = ''; + $lyrics_html = ';)'; $lyrics_doc = $song->getFirstMediaInField('lyrics_doc'); - dd($lyrics_doc); if ($lyrics_doc) { $path = $lyrics_doc->getPath(); $html_path = $path . '.html'; - dd(`libreoffice --convert-to HTML:HTML --outdir $html_path $path`); if (!file_exists($html_path)) { - + `libreoffice --convert-to HTML:HTML --outdir $html_path $path`; } $lyrics_html = file_get_contents($html_path); } diff --git a/resources/css/app.sass b/resources/css/app.sass index d950c13..282b939 100644 --- a/resources/css/app.sass +++ b/resources/css/app.sass @@ -44,6 +44,12 @@ $slab: 'Roboto Slab', sans-serif +a:focus, +button:focus, +input:focus, +:focus + outline: none + * margin: 0 padding: 0 @@ -481,7 +487,7 @@ form input[type=password] text-align: left outline-width: 1px - outline-color: var(--theme-color) + outline-color: var(--theme-color) input[type=submit] background-color: var(--theme-color) diff --git a/resources/views/song.blade.php b/resources/views/song.blade.php index 0dc2852..dff659c 100644 --- a/resources/views/song.blade.php +++ b/resources/views/song.blade.php @@ -8,6 +8,9 @@ @section('content') @include('header',['title'=>$song->title,'subtitle'=>$song->artist])
+ @if($lyrics_html!=='') +
{{$lyrics_html}}
+ @endif @foreach($song->lyrics as $part) @php $c=$song->getChordsData($part['part_chords']); @@ -44,12 +47,14 @@ - @for($i=1;$i<=11;$i++) - - @endfor + @if($collection->transpose) + @for($i=1;$i<=11;$i++) + + @endfor + @endif @endforeach @endif -- 2.39.5