This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
@extends('layouts.proxy')
|
||||
|
||||
@section('title', 'Browsing: ' . $url)
|
||||
|
||||
@section('content')
|
||||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
|
||||
<div class="p-6 text-gray-900">
|
||||
<div class="mb-4">
|
||||
<form action="{{ route('proxy.browse') }}" method="POST" class="flex space-x-2">
|
||||
@csrf
|
||||
<input type="url" name="url" value="{{ htmlspecialchars($url) }}"
|
||||
class="flex-1 rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm">
|
||||
<button type="submit"
|
||||
class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
||||
Go
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="prose max-w-none">
|
||||
{!! $content !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,31 @@
|
||||
@extends('layouts.proxy')
|
||||
|
||||
@section('title', 'Home')
|
||||
|
||||
@section('content')
|
||||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
|
||||
<div class="p-6 text-gray-900">
|
||||
<h1 class="text-2xl font-semibold mb-6">Web Proxy</h1>
|
||||
|
||||
<form action="{{ route('proxy.browse') }}" method="POST" class="space-y-4">
|
||||
@csrf
|
||||
<div>
|
||||
<label for="url" class="block text-sm font-medium text-gray-700">Enter URL to browse</label>
|
||||
<div class="mt-1 flex rounded-md shadow-sm">
|
||||
<input type="url" name="url" id="url" required
|
||||
class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm"
|
||||
placeholder="https://example.com"
|
||||
value="{{ old('url') }}">
|
||||
<button type="submit"
|
||||
class="ml-3 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
||||
Go
|
||||
</button>
|
||||
</div>
|
||||
@error('url')
|
||||
<p class="mt-2 text-sm text-red-600">{{ $message }}</p>
|
||||
@enderror
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user