Skip to content

Commit 383b3c0

Browse files
passando botão de download para uma barra inferior
1 parent bdc1f68 commit 383b3c0

File tree

10 files changed

+29
-27
lines changed

10 files changed

+29
-27
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@props(['disabled' => false])
22

3-
<input @disabled($disabled) type="color" {{ $attributes->merge(['class' => 'float-right rounded-md p-1 w-full h-10 cursor-pointer border border-gray-200 bg-white']) }}>
3+
<input @disabled($disabled) type="color" {{ $attributes->merge(['class' => 'float-right rounded p-1 w-full h-10 cursor-pointer border border-gray-200 bg-white']) }}>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<button {{ $attributes->merge(['type' => 'submit', 'class' => 'inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 focus:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition ease-in-out duration-150']) }}>
1+
<button {{ $attributes->merge(['type' => 'submit', 'class' => 'inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 focus:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition ease-in-out duration-150']) }}>
22
{{ $slot }}
33
</button>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<section {{ $attributes->merge(['class' => 'shadow divide-y-2 bg-white']) }}>
1+
<section {{ $attributes->merge(['class' => 'shadow divide-y-2 bg-white rounded']) }}>
22
{{ $slot }}
33
</section>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@props(['disabled' => false])
22

3-
<input @disabled($disabled) {{ $attributes->merge(['class' => 'border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm']) }}>
3+
<input @disabled($disabled) {{ $attributes->merge(['class' => 'border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded shadow-sm']) }}>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<x-section class="col-span-5 order-2 lg:col-span-2 lg:order-3 flex flex-col">
22
<header class="text-lg font-medium px-4 py-2">Preview Content</header>
33

4-
<div id="htmlText" class="parsedown flex flex-col gap-y-2 sm:w-auto p-4 h-max grow">
4+
<div id="htmlText" class="parsedown flex flex-col gap-y-2 sm:w-auto p-4 h-max grow rounded-b">
55
Formatted content will appear here
66
</div>
77
</x-section>

resources/views/content/partials/style-editor.blade.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,4 @@
1515
<x-color-input name="backgroundColor" id="backgroundColor" value="#FFFFFF"></x-color-input>
1616
</div>
1717
</div>
18-
19-
<div class="flex gap-3 flex-wrap sm:w-auto p-4">
20-
<div class="flex flex-col flex-grow">
21-
<x-input-label for="filename">Filename</x-input-label>
22-
<x-text-input name="filename" id="filename" class="w-full"></x-text-input>
23-
</div>
24-
<x-primary-button class="max-w-fit">Generate PDF</x-primary-button>
25-
</div>
2618
</x-section>

resources/views/content/partials/write-content.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<div class="grow-wrap dont-break-out">
55
<textarea id="text" name="text" type="text" rows="27" cols=""
6-
class="p-4 border-none focus:border-gray-400 focus:ring-gray-400 block w-full"
6+
class="p-4 border-none focus:border-gray-400 focus:ring-gray-400 block w-full rounded-b"
77
required autofocus autocomplete="text" placeholder="Type here"
88
onInput="this.parentNode.dataset.replicatedValue = this.value"></textarea>
99
</div>

resources/views/editor.blade.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<x-app-layout>
22
<div class="mx-auto space-y-6 py-4">
3-
<form action="/generatePdf" method="post">
4-
@csrf
5-
<div class="grid gap-4 grid-cols-5">
6-
@include('content.partials.style-editor')
7-
@include('content.partials.write-content')
8-
@include('content.partials.parsed-content')
9-
</div>
10-
</form>
3+
<div class="grid gap-4 grid-cols-5">
4+
@include('content.partials.style-editor')
5+
@include('content.partials.write-content')
6+
@include('content.partials.parsed-content')
7+
</div>
118
</div>
129
</x-app-layout>

resources/views/layouts/app.blade.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@vite(['resources/css/app.css', 'resources/js/app.js'])
1919
</head>
2020
<body class="font-sans antialiased">
21-
<div class="min-h-screen bg-gray-100">
21+
<div class="min-h-screen bg-gray-100 mb-16">
2222

2323
@include('layouts.navigation')
2424

@@ -31,10 +31,16 @@
3131
</header>
3232
@endisset
3333

34-
<!-- Page Content -->
35-
<main>
36-
{{ $slot }}
37-
</main>
34+
<form action="/generatePdf" method="post">
35+
@csrf
36+
37+
<!-- Page Content -->
38+
<main>
39+
{{ $slot }}
40+
</main>
41+
42+
@include('layouts.footer')
43+
</form>
3844
</div>
3945
</body>
4046

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<footer class="bg-white border-t border-gray-200 shadow fixed bottom-0 w-full">
2+
<div class="flex gap-2 flex-wrap sm:w-auto p-3 justify-center">
3+
<x-text-input name="filename" id="filename" placeholder="Filename" class="grow max-w-md h-10"></x-text-input>
4+
5+
<x-primary-button class="max-w-fit h-10">Generate PDF</x-primary-button>
6+
</div>
7+
</footer>

0 commit comments

Comments
 (0)