fedi-feed-router/resources/views/onboarding/platform.blade.php

86 lines
4.4 KiB
PHP
Raw Normal View History

2025-07-06 11:22:53 +02:00
@extends('layouts.app')
@section('content')
<div class="min-h-screen flex items-center justify-center bg-gray-50">
<div class="max-w-lg w-full bg-white rounded-lg shadow-md p-8">
<div class="text-center mb-8">
<h1 class="text-2xl font-bold text-gray-900 mb-2">Connect Your Lemmy Account</h1>
<p class="text-gray-600">
Enter your Lemmy instance details and login credentials
</p>
<!-- Progress indicator -->
<div class="flex justify-center mt-6 space-x-2">
<div class="w-6 h-6 bg-blue-500 text-white rounded-full flex items-center justify-center text-xs font-semibold">1</div>
<div class="w-6 h-6 bg-gray-300 text-gray-600 rounded-full flex items-center justify-center text-xs font-semibold">2</div>
<div class="w-6 h-6 bg-gray-300 text-gray-600 rounded-full flex items-center justify-center text-xs font-semibold">3</div>
<div class="w-6 h-6 bg-gray-300 text-gray-600 rounded-full flex items-center justify-center text-xs font-semibold">4</div>
</div>
</div>
<form action="{{ route('platforms.store') }}" method="POST" class="space-y-6">
@csrf
<div>
<label for="instance_url" class="block text-sm font-medium text-gray-700 mb-2">
Lemmy Instance URL
</label>
<input type="url"
id="instance_url"
name="instance_url"
value="{{ old('instance_url') }}"
placeholder="https://lemmy.world"
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
required>
@error('instance_url')
<p class="text-red-600 text-sm mt-1">{{ $message }}</p>
@enderror
</div>
<div>
<label for="username" class="block text-sm font-medium text-gray-700 mb-2">
Username
</label>
<input type="text"
id="username"
name="username"
value="{{ old('username') }}"
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
required>
@error('username')
<p class="text-red-600 text-sm mt-1">{{ $message }}</p>
@enderror
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-2">
Password
</label>
<input type="password"
id="password"
name="password"
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
required>
@error('password')
<p class="text-red-600 text-sm mt-1">{{ $message }}</p>
@enderror
</div>
<input type="hidden" name="platform" value="lemmy">
<input type="hidden" name="is_active" value="1">
<input type="hidden" name="redirect_to" value="{{ route('onboarding.feed') }}">
<div class="flex justify-between">
<a href="{{ route('onboarding.index') }}"
class="px-4 py-2 text-gray-600 hover:text-gray-800 transition duration-200">
Back
</a>
<button type="submit"
class="bg-blue-600 text-white py-2 px-6 rounded-md hover:bg-blue-700 transition duration-200">
Continue
</button>
</div>
</form>
</div>
</div>
@endsection