Skip to content

Commit d8d534e

Browse files
adicionando barra de navegação
1 parent 0b0022d commit d8d534e

File tree

6 files changed

+20
-10
lines changed

6 files changed

+20
-10
lines changed

public/assets/images/github.svg

Lines changed: 3 additions & 0 deletions
Loading

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@
44

55
<div>
66
<label for="textColor">Text Color</label>
7-
<input class="float-right" type="color" name="textColor" id="textColor" value="#374151">
7+
<input class="float-right rounded-md p-1 w-10 h-8 cursor-pointer border border-gray-200 bg-white"
8+
type="color" name="textColor" id="textColor" value="#374151">
89
</div>
910
<div>
1011
<label for="highlightColor">Highlight Color</label>
11-
<input class="float-right" type="color" name="highlightColor" id="highlightColor" value="#559949">
12+
<input class="float-right rounded-md p-1 w-10 h-8 cursor-pointer border border-gray-200 bg-white"
13+
type="color" name="highlightColor" id="highlightColor" value="#559949">
1214
</div>
1315
<div>
1416
<label for="backgroundColor">Background Color</label>
15-
<input class="float-right" type="color" name="backgroundColor" id="backgroundColor" value="#FFFFFF">
17+
<input class="float-right rounded-md p-1 w-10 h-8 cursor-pointer border border-gray-200 bg-white"
18+
type="color" name="backgroundColor" id="backgroundColor" value="#FFFFFF">
1619
</div>
1720

18-
<x-primary-button class="mt-4">Generate PDF</x-primary-button>
21+
<x-primary-button class="mt-4 max-w-fit">Generate PDF</x-primary-button>
1922
</div>
2023
</section>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section class="col-span-2">
22
<div class="space-y-6 grow-wrap dont-break-out">
3-
<textarea id="text" name="text" type="text" rows="7" cols=""
3+
<textarea id="text" name="text" type="text" rows="9" cols=""
44
class="p-4 sm:p-8 bg-white sm:rounded-lg border-none focus:border-gray-400 focus:ring-gray-400 shadow block w-full"
55
required autofocus autocomplete="text" placeholder="Type here"
66
onInput="this.parentNode.dataset.replicatedValue = this.value"></textarea>

resources/views/editor.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<x-app-layout>
22
<div class="py-8">
3-
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6">
3+
<div class=" mx-auto sm:px-6 lg:px-8 space-y-6">
44
<form action="/generatePdf" method="post">
55
@csrf
66
<div class="lg:grid lg:grid-cols-5 lg:space-x-4 space-y-6 lg:space-y-0">

resources/views/layouts/app.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<meta name="csrf-token" content="{{ csrf_token() }}">
77

8-
<title>{{ config('app.name', 'Bernardo Azevedo') }}</title>
8+
<title>{{ config('app.name', 'Markdown Editor') }}</title>
99

1010
<link rel="icon" href="{{ url('assets/css/favicon.ico') }}">
1111
<link rel="stylesheet" href="{{ asset('assets/css/app.css?v1') }}" >
@@ -20,6 +20,8 @@
2020
<body class="font-sans antialiased">
2121
<div class="min-h-screen bg-gray-100">
2222

23+
@include('layouts.navigation')
24+
2325
<!-- Page Heading -->
2426
@isset($header)
2527
<header class="bg-white shadow">

resources/views/layouts/navigation.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<nav x-data="{ open: false }" class="bg-white border-b border-gray-100 shadow-sm">
22
<!-- Primary Navigation Menu -->
33
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
4-
<div class="flex justify-between h-16">
5-
<div class="flex">
4+
<div class="flex justify-between items-center h-16">
5+
<span class="text-lg">Edit markdown files and convert them to PDF</span>
66

7-
</div>
7+
<a href="https://github.com/bernardoazevedo/markdownEditor" target="_blank">
8+
<img src="{{ asset('assets/images/github.svg') }}" alt="Github Logo" width="24px">
9+
</a>
810
</div>
911
</div>
1012

0 commit comments

Comments
 (0)