Files
anonaddy/resources/views/auth/register.blade.php
Will Browning c98e636f54 Updated config
2023-10-05 10:47:16 +01:00

118 lines
6.5 KiB
PHP

@extends('layouts.auth')
@section('content')
<div class="p-6 bg-indigo-900 min-h-screen flex justify-center items-center">
<div class="w-full max-w-md">
<div class="flex justify-center text-white mb-6 text-5xl font-bold">
<img class="w-48" alt="addy.io Logo" src="/svg/logo.svg">
</div>
<div class="flex flex-col break-words bg-white border-2 rounded-lg shadow-lg overflow-hidden">
<form class="" method="POST" action="{{ route('register') }}">
@csrf
<div class="px-6 py-8 md:p-10">
<h1 class="text-center font-bold text-3xl">
{{ __('Register') }}
</h1>
<div class="mx-auto mt-6 w-24 border-b-2 border-grey-200"></div>
<div class="mt-8 flex flex-wrap mb-6">
<label for="username" class="block text-grey-700 text-sm font-medium leading-6 mb-2">
{{ __('Username') }}
</label>
<div class="table w-full">
<input id="username" type="text" class="table-cell relative appearance-none bg-grey-100 rounded-l w-full p-3 text-grey-700 focus:ring{{ $errors->has('username') ? ' border-red-500' : '' }}" name="username" value="{{ old('username') }}" placeholder="johndoe" required autofocus>
<div class="py-3 px-2 table-cell align-middle bg-grey-200 rounded-r text-grey-600">
.{{ config('anonaddy.domain') }}
</div>
</div>
<p class="text-xs mt-1 text-grey-600">This will be your unique subdomain for your aliases<br> e.g. alias@<b>johndoe</b>.{{ config('anonaddy.domain') }}</p>
@if ($errors->has('username'))
<p class="text-red-500 text-xs italic mt-4">
{{ $errors->first('username') }}
</p>
@endif
</div>
<div class="flex flex-wrap mb-6">
<label for="email" class="block text-grey-700 text-sm font-medium leading-6 mb-2">
Your Real Email Address
</label>
<input id="email" type="email" class="appearance-none bg-grey-100 rounded w-full p-3 text-grey-700 focus:ring{{ $errors->has('email') ? ' border-red-500' : '' }}" name="email" value="{{ old('email') }}" placeholder="johndoe@example.com" required>
<p class="text-xs mt-1 text-grey-600">This is your recipient where emails will be forwarded</p>
@if ($errors->has('email'))
<p class="text-red-500 text-xs italic mt-4">
{{ $errors->first('email') }}
</p>
@endif
</div>
<div class="flex flex-wrap mb-6">
<label for="email-confirm" class="block text-grey-700 text-sm font-medium leading-6 mb-2">
Confirm Email Address
</label>
<input id="email-confirm" type="email" class="appearance-none bg-grey-100 rounded w-full p-3 text-grey-700 focus:ring" name="email_confirmation" value="{{ old('email_confirmation') }}" placeholder="johndoe@example.com" required>
</div>
<div class="flex flex-wrap mb-6">
<label for="password" class="block text-grey-700 text-sm font-medium leading-6 mb-2">
{{ __('Password') }}
</label>
<input id="password" type="password" class="appearance-none bg-grey-100 rounded w-full p-3 text-grey-700 focus:ring{{ $errors->has('password') ? ' border-red-500' : '' }}" name="password" placeholder="********" required>
@if ($errors->has('password'))
<p class="text-red-500 text-xs italic mt-4">
{{ $errors->first('password') }}
</p>
@endif
</div>
<div class="flex flex-wrap mb-4 items-center">
<label for="captcha" class="block w-full text-grey-700 text-sm font-medium leading-6">
Human Verification (click image to refresh)
</label>
<div class="flex grow flex-wrap">
<img src="{{captcha_src('mini')}}" onclick="this.src='/captcha/mini?'+Math.random()" class="cursor-pointer shrink-0 h-12 w-16 mr-2 mt-2" title="Click to refresh image" alt="captcha">
<input id="captcha" type="text" class="grow mt-2 appearance-none bg-grey-100 rounded p-3 text-grey-700 focus:ring{{ $errors->has('captcha') ? ' border-red-500' : '' }}" name="captcha" placeholder="Enter the text you see" required>
</div>
@if ($errors->has('captcha'))
<p class="text-red-500 text-xs italic mt-4">
{{ $errors->first('captcha') }}
</p>
@endif
</div>
</div>
<div class="px-6 md:px-10 py-4 bg-grey-50 border-t border-grey-100 flex flex-wrap items-center">
<button type="submit" class="bg-cyan-400 w-full hover:bg-cyan-300 text-cyan-900 font-bold py-3 px-4 rounded focus:outline-none">
{{ __('Register') }}
</button>
</div>
</form>
</div>
@if (Route::has('register'))
<p class="w-full text-xs text-center text-indigo-100 mt-6">
Already have an account?
<a class="text-white hover:text-indigo-50 no-underline" href="{{ route('login') }}">
Login
</a>
</p>
@endif
</div>
</div>
@endsection