mirror of
https://github.com/m1ngsama/php.git
synced 2025-12-24 16:01:19 +00:00
Added main layout with navigation and authentication pages. Implemented responsive design using Tailwind CSS.
54 lines
2.3 KiB
PHP
54 lines
2.3 KiB
PHP
@extends('layout')
|
|
|
|
@section('title', 'Register')
|
|
|
|
@section('content')
|
|
<div class="max-w-md mx-auto bg-white rounded-lg shadow p-8">
|
|
<h1 class="text-2xl font-bold mb-6">Create Account</h1>
|
|
|
|
<form action="{{ route('register') }}" method="POST">
|
|
@csrf
|
|
|
|
<div class="mb-4">
|
|
<label for="name" class="block text-gray-700 font-bold mb-2">Username</label>
|
|
<input type="text" id="name" name="name" value="{{ old('name') }}" required
|
|
class="w-full px-3 py-2 border rounded focus:outline-none focus:border-orange-500">
|
|
@error('name')
|
|
<p class="text-red-500 text-sm mt-1">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-4">
|
|
<label for="email" class="block text-gray-700 font-bold mb-2">Email</label>
|
|
<input type="email" id="email" name="email" value="{{ old('email') }}" required
|
|
class="w-full px-3 py-2 border rounded focus:outline-none focus:border-orange-500">
|
|
@error('email')
|
|
<p class="text-red-500 text-sm mt-1">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-4">
|
|
<label for="password" class="block text-gray-700 font-bold mb-2">Password</label>
|
|
<input type="password" id="password" name="password" required
|
|
class="w-full px-3 py-2 border rounded focus:outline-none focus:border-orange-500">
|
|
@error('password')
|
|
<p class="text-red-500 text-sm mt-1">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-6">
|
|
<label for="password_confirmation" class="block text-gray-700 font-bold mb-2">Confirm Password</label>
|
|
<input type="password" id="password_confirmation" name="password_confirmation" required
|
|
class="w-full px-3 py-2 border rounded focus:outline-none focus:border-orange-500">
|
|
</div>
|
|
|
|
<button type="submit" class="w-full bg-orange-600 text-white py-2 rounded hover:bg-orange-700 font-bold">
|
|
Sign Up
|
|
</button>
|
|
</form>
|
|
|
|
<p class="mt-4 text-center text-gray-600">
|
|
Already have an account? <a href="{{ route('login') }}" class="text-orange-600 hover:underline">Login</a>
|
|
</p>
|
|
</div>
|
|
@endsection
|