mirror of
https://github.com/anonaddy/anonaddy
synced 2026-04-25 17:15:29 +02:00
114 lines
6.0 KiB
PHP
114 lines
6.0 KiB
PHP
@extends('layouts.app')
|
|
|
|
@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="AnonAddy Logo" src="/svg/logo.svg">
|
|
</div>
|
|
<div class="flex flex-col break-words bg-white border 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 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:shadow-outline{{ $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>
|
|
|
|
|
|
@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 mb-2">
|
|
Default Recipient Email::
|
|
</label>
|
|
|
|
<input id="email" type="email" class="appearance-none bg-grey-100 rounded w-full p-3 text-grey-700 focus:shadow-outline{{ $errors->has('email') ? ' border-red-500' : '' }}" name="email" value="{{ old('email') }}" placeholder="johndoe@example.com" required>
|
|
|
|
@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 mb-2">
|
|
{{ __('Confirm Email') }}:
|
|
</label>
|
|
|
|
<input id="email-confirm" type="email" class="appearance-none bg-grey-100 rounded w-full p-3 text-grey-700 focus:shadow-outline" name="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 mb-2">
|
|
{{ __('Password') }}:
|
|
</label>
|
|
|
|
<input id="password" type="password" class="appearance-none bg-grey-100 rounded w-full p-3 text-grey-700 focus:shadow-outline{{ $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">
|
|
Verification:
|
|
</label>
|
|
|
|
<div class="flex flex-grow flex-wrap">
|
|
<img src="{{captcha_src('mini')}}" class="flex-shrink-0 h-12 w-16 mr-2 mt-2">
|
|
|
|
<input id="captcha" type="text" class="flex-grow mt-2 appearance-none bg-grey-100 rounded p-3 text-grey-700 focus:shadow-outline{{ $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 |