phase 6
This commit is contained in:
@@ -0,0 +1,156 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'JobifyGarden - Find Your Dream Job')
|
||||
@section('description', 'Discover thousands of job opportunities from multiple sources. Browse remote jobs, full-time positions, and more.')
|
||||
|
||||
@section('main-class', '')
|
||||
|
||||
@section('content')
|
||||
<!-- Hero Section -->
|
||||
<div class="bg-gradient-to-r from-emerald-600 to-emerald-500">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16 sm:py-24">
|
||||
<div class="text-center">
|
||||
<h1 class="text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6">
|
||||
Find Your Dream Job
|
||||
</h1>
|
||||
<p class="text-xl text-emerald-50 mb-8 max-w-2xl mx-auto">
|
||||
Search through thousands of job listings from multiple sources. Your next career opportunity is just a search away.
|
||||
</p>
|
||||
|
||||
<!-- Search Bar -->
|
||||
<div class="max-w-3xl mx-auto">
|
||||
<form action="{{ route('jobs.index') }}" method="GET" class="flex flex-col sm:flex-row gap-2">
|
||||
<div class="flex-1">
|
||||
<input type="text"
|
||||
name="keywords"
|
||||
placeholder="Job title, keywords, or company"
|
||||
class="w-full px-4 py-3 rounded-lg border-0 focus:ring-2 focus:ring-emerald-600 text-gray-900 placeholder-gray-500">
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<input type="text"
|
||||
name="location"
|
||||
placeholder="Location"
|
||||
class="w-full px-4 py-3 rounded-lg border-0 focus:ring-2 focus:ring-emerald-600 text-gray-900 placeholder-gray-500">
|
||||
</div>
|
||||
<button type="submit"
|
||||
class="px-8 py-3 bg-emerald-800 hover:bg-emerald-900 text-white font-semibold rounded-lg transition-colors duration-200">
|
||||
Search Jobs
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Stats Section -->
|
||||
<div class="bg-white border-b border-gray-200">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
||||
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 text-center">
|
||||
<div>
|
||||
<div class="text-3xl font-bold text-emerald-600">{{ number_format($stats['active_jobs'] ?? 0) }}</div>
|
||||
<div class="text-sm text-gray-600 mt-1">Active Jobs</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-3xl font-bold text-emerald-600">{{ number_format($stats['remote_jobs'] ?? 0) }}</div>
|
||||
<div class="text-sm text-gray-600 mt-1">Remote Jobs</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-3xl font-bold text-emerald-600">{{ number_format($stats['recently_added'] ?? 0) }}</div>
|
||||
<div class="text-sm text-gray-600 mt-1">Added This Week</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-3xl font-bold text-emerald-600">{{ $categories->count() }}</div>
|
||||
<div class="text-sm text-gray-600 mt-1">Categories</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Featured Jobs Section -->
|
||||
<div class="bg-gray-50 py-12">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="flex justify-between items-center mb-8">
|
||||
<h2 class="text-3xl font-bold text-gray-900">Featured Jobs</h2>
|
||||
<a href="{{ route('jobs.index') }}" class="text-emerald-600 hover:text-emerald-700 font-medium">
|
||||
View all jobs →
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@if($featuredJobs->isNotEmpty())
|
||||
<div class="grid gap-6 md:grid-cols-2">
|
||||
@foreach($featuredJobs as $job)
|
||||
<x-job-card :job="$job" />
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<div class="text-center py-12 bg-white rounded-lg border border-gray-200">
|
||||
<svg class="mx-auto h-12 w-12 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
|
||||
</svg>
|
||||
<h3 class="mt-2 text-sm font-medium text-gray-900">No jobs available</h3>
|
||||
<p class="mt-1 text-sm text-gray-500">Check back later for new opportunities.</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Recent Jobs Section -->
|
||||
<div class="bg-white py-12">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<h2 class="text-3xl font-bold text-gray-900 mb-8">Recently Posted</h2>
|
||||
|
||||
@if($recentJobs->isNotEmpty())
|
||||
<div class="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
|
||||
@foreach($recentJobs as $job)
|
||||
<x-job-card :job="$job" />
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<div class="text-center py-12 bg-gray-50 rounded-lg border border-gray-200">
|
||||
<p class="text-gray-500">No recent jobs posted.</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Categories Section -->
|
||||
<div class="bg-gray-50 py-12">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<h2 class="text-3xl font-bold text-gray-900 mb-8">Browse by Category</h2>
|
||||
|
||||
@if($categories->isNotEmpty())
|
||||
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4">
|
||||
@foreach($categories as $category)
|
||||
<a href="{{ route('jobs.category', $category->slug) }}"
|
||||
class="bg-white p-4 rounded-lg border border-gray-200 hover:border-emerald-500 hover:shadow-md transition-all duration-200 text-center group">
|
||||
<div class="text-2xl mb-2">{{ $category->icon ?? '📁' }}</div>
|
||||
<div class="text-sm font-medium text-gray-900 group-hover:text-emerald-600">{{ $category->name }}</div>
|
||||
<div class="text-xs text-gray-500 mt-1">{{ $category->jobs_count }} jobs</div>
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<p class="text-gray-500 text-center">No categories available yet.</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CTA Section -->
|
||||
<div class="bg-emerald-600">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
||||
<div class="text-center">
|
||||
<h2 class="text-3xl font-bold text-white mb-4">Ready to Find Your Next Opportunity?</h2>
|
||||
<p class="text-emerald-50 mb-8 max-w-2xl mx-auto">
|
||||
Join thousands of job seekers who have found their dream careers through JobifyGarden.
|
||||
</p>
|
||||
<a href="{{ route('jobs.index') }}"
|
||||
class="inline-flex items-center px-8 py-3 bg-white text-emerald-600 font-semibold rounded-lg hover:bg-emerald-50 transition-colors duration-200">
|
||||
Browse All Jobs
|
||||
<svg class="ml-2 w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user