fedi-feed-router/resources/views/layouts/onboarding.blade.php
myrmidex 16ce3b6324 74 - Minor fixes
- Add logout button to onboarding menu
- remove Forgot Password
2026-01-23 01:00:37 +01:00

65 lines
3.2 KiB
PHP

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'FFR') }} - Setup</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600,700&display=swap" rel="stylesheet" />
<!-- Scripts -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
</head>
<body class="font-sans text-gray-900 antialiased">
<div class="min-h-screen flex flex-col items-center pt-6 sm:pt-12 bg-gradient-to-br from-blue-600 via-blue-700 to-indigo-800 relative">
<!-- User Menu -->
@auth
<div class="absolute top-4 right-4">
<div x-data="{ open: false }" class="relative">
<button @click="open = !open" class="flex items-center space-x-2 text-white/80 hover:text-white transition">
<span class="text-sm">{{ Auth::user()->name }}</span>
<svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
</svg>
</button>
<div x-show="open" @click.away="open = false" x-transition class="absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-lg py-1 z-50">
<form method="POST" action="{{ route('logout') }}">
@csrf
<button type="submit" class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
Log out
</button>
</form>
</div>
</div>
</div>
@endauth
<!-- Logo/Brand -->
<div class="mb-6">
<a href="/" class="flex flex-col items-center">
<div class="w-16 h-16 bg-white rounded-2xl shadow-lg flex items-center justify-center mb-3">
<svg class="w-10 h-10 text-blue-600" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M12.75 19.5v-.75a7.5 7.5 0 0 0-7.5-7.5H4.5m0-6.75h.75c7.87 0 14.25 6.38 14.25 14.25v.75M6 18.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z" />
</svg>
</div>
<span class="text-2xl font-bold text-white">FFR</span>
<span class="text-sm text-blue-200">Feed to Fediverse Router</span>
</a>
</div>
<!-- Content -->
{{ $slot }}
<!-- Footer -->
<div class="mt-8 mb-8 text-center text-sm text-blue-200">
<p>Route your feeds to the Fediverse</p>
</div>
</div>
@livewireScripts
</body>
</html>