Skip to content

Commit

Permalink
Added navigation to register and login pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Raccoon254 committed Jun 14, 2024
1 parent 18e0826 commit 49890d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<!-- Location -->
<div class="mt-4 ml-2">
<x-input-label for="location" :value="__('Location')"></x-input-label>
<x-text-input id="location" disabled class="block mt-1 w-full" type="text" wire:model="location" required
<x-text-input id="location" disabled class="block opacity-30 mt-1 w-full" type="text" wire:model="location" required
autocomplete="location"/>
</div>
</div>
Expand Down Expand Up @@ -82,7 +82,6 @@
headers: {
"Accept": "application/json",
},
//if blocked by net::ERR_BLOCKED_BY_CLIENT return us
mode: "cors",
}).then((resp) => {
if (resp.ok) {
Expand All @@ -92,6 +91,8 @@
}).then((data) => {
let countryCode = data.country;
success(countryCode);
// Set success flag to true
update_location_success = true;
}).catch((err) => {
console.error(err);
Expand All @@ -113,7 +114,6 @@
phoneInputField.addEventListener("countrychange", function () {
let countryData = phoneInput.getSelectedCountryData();
document.querySelector("#location").value = countryData.name;
// update wire location
});
</script>
</x-guest-layout>
5 changes: 4 additions & 1 deletion resources/views/layouts/guest.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/intlTelInput.min.js"></script>
</head>
<body class="font-sans text-gray-900 antialiased">
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100">
@include('layouts.navigation.logged-out')
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-10 mb-6 sm:mb-10 bg-gray-100">
<div class="center flex-col">
<a href="/">
<x-application-logo class="w-16 h-16 fill-current text-gray-500" />
Expand All @@ -32,6 +33,8 @@
@include('session.alerts')
{{ $slot }}
</div>

@include('layouts.footer')
</div>
</body>
</html>

0 comments on commit 49890d8

Please sign in to comment.