Skip to content

Commit

Permalink
#42 - fix: code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilpiech97 committed Aug 30, 2024
1 parent 27e91b8 commit ed5ca14
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/Mail/LoginLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
public function envelope(): Envelope
{
return new Envelope(
subject: "Your Magic Link is here!",
subject: "Link do logowania w aplikacji Keating",
);
}

Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Public/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function attemptLogin() {
</div>
</form>
<div>
<InertiaLink href="/passwordless" class="mt-3 flex w-full justify-center rounded-md bg-black px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2">
<InertiaLink href="/passwordless" class="mt-3 flex w-full justify-center rounded-md bg-blue-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2">
Zaloguj się adresem e-mail
</InertiaLink>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Public/PasswordlessLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ onBeforeUnmount(() => {
</div>
</form>
<div>
<InertiaLink class="mt-3 flex w-full justify-center rounded-md bg-black px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
<InertiaLink class="= mt-3 flex w-full justify-center rounded-md bg-blue-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
href="/login"
>
Powrót do zwykłego logowania
Expand Down
7 changes: 1 addition & 6 deletions resources/views/emails/auth/login-link.blade.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
<x-mail::layout>

<x-slot:header>
<x-mail::header url="{{config('app.url')}}">
Keating
</x-mail::header>
</x-slot:header>

Zaloguj się, klikając w poniższy przycisk:

<x-mail::button :url="$url">
<x-mail::button :url="$url" :color="'blue'">
Zaloguj
</x-mail::button>

<x-slot:footer>
<x-mail::footer>
Keating &copy; {{ date('Y') }}
</x-mail::footer>
</x-slot:foot>

</x-mail::layout>

0 comments on commit ed5ca14

Please sign in to comment.