From bbea85bbd4d5b7f98ba1b25dc9f5fe6f17fab0f7 Mon Sep 17 00:00:00 2001 From: Ale Date: Sat, 27 Nov 2021 13:25:15 -0300 Subject: [PATCH] Agregado input de tamanho de librillos y cosas de css --- app/Models/Librilladora.php | 3 ++- public/css/welcome.css | 15 ++++++++++----- resources/css/welcome.css | 0 resources/views/welcome.blade.php | 6 +++++- 4 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 resources/css/welcome.css diff --git a/app/Models/Librilladora.php b/app/Models/Librilladora.php index f1c6117..6ca5db5 100644 --- a/app/Models/Librilladora.php +++ b/app/Models/Librilladora.php @@ -9,6 +9,7 @@ use Illuminate\Support\Facades\File; class Librilladora extends Model { use HasFactory; + public function prueba(string $fileName) { $mpdf = new \Mpdf\Mpdf(); @@ -21,7 +22,7 @@ class Librilladora extends Model { // // Require composer autoload // require_once __DIR__ . '/vendor/autoload.php'; $file = 'uploads/'.$fileName; - $pagecount = $mpdf->SetSourceFile($file); + $mpdf->SetSourceFile($file); $tplId = $mpdf->importPage(1); $mpdf->useTemplate($tplId); File::delete($file); diff --git a/public/css/welcome.css b/public/css/welcome.css index 2cefaee..a2c8308 100644 --- a/public/css/welcome.css +++ b/public/css/welcome.css @@ -1,8 +1,3 @@ -#logo { - width:80%; - margin: auto; -} - div.p-6 { text-align: center; } @@ -16,8 +11,18 @@ button, input[type="submit"] { } input.formulario { + margin: 0.5rem; background-color: white; border-radius: 5px; padding: 5px; } +input.formulario.numero-input { + width: 3rem; +} + +h1 { + margin-left: auto; + margin-right: auto; +} + diff --git a/resources/css/welcome.css b/resources/css/welcome.css new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index dcc80f5..dc41c54 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -8,7 +8,7 @@ - +