academy/resources/views/welcome.blade.php

497 lines
14 KiB
PHP

@extends('layouts.app')
@section('title', 'Home')
@push('styles')
<link rel="preload" as="image"
href="https://images.unsplash.com/photo-1517524206127-48bbd363f3d7?auto=format&fit=crop&w=1600&q=80"
fetchpriority="high">
<link rel="stylesheet" href="{{ asset('css/pages/home.css') }}">
@endpush
@section('content')
<style>
:root{
--primary:#5E244E;
--secondary:#8B3A74;
--light:#F8F4F7;
--dark:#2F1027;
--gold:#FFC107;
--card-border: #efeff4;
--text-muted: #6a6f73;
--success-green: #1f8a4c;
}
/* ===== Font & Base ===== */
body{
font-family: Arial, Helvetica, sans-serif;
}
.section{
padding:90px 0;
}
.section-title, h2, h3, h4, h5, h6{
font-family: Arial, Helvetica, sans-serif;
font-weight:700;
color:#5E244E;
}
/* ===== Buttons ===== */
.btn-theme{
background:#5E244E;
color:#fff;
border:2px solid #5E244E;
padding:14px 35px;
border-radius:40px;
font-weight:600;
transition:.3s;
}
.btn-theme:hover{
background:#8B3A74;
border-color:#8B3A74;
color:#fff;
transform:translateY(-3px);
}
.btn-outline-theme{
background:transparent;
color:#fff;
border:2px solid #fff;
padding:12px 32px;
border-radius:40px;
font-weight:600;
transition:.3s;
}
.btn-outline-theme:hover{
background:#fff;
color:#5E244E;
}
.btn-outline-light-custom{
background:#FFC107;
color:#000;
border:2px solid #FFC107;
padding:12px 32px;
border-radius:40px;
font-weight:600;
transition:.3s;
}
.btn-outline-light-custom:hover{
background:#ffcd39;
border-color:#ffcd39;
color:#000;
}
/* ===== Hero ===== */
.hero {
height:650px;
background: linear-gradient(rgba(0, 0, 0, 0.65),rgba(30,10,25,.65)),
url('https://images.unsplash.com/photo-1517524206127-48bbd363f3d7?auto=format&fit=crop&w=1600&q=80');
background-size: cover;
background-position: center;
}
.hero-content{
height:100%;
display:flex;
align-items:center;
justify-content:center;
flex-direction:column;
color:#fff;
padding-top: 38px;
}
.hero h1{
font-size:60px;
font-weight:700;
margin-top: 75px;
}
.hero p{
font-size:22px;
max-width:700px;
}
.course-card {
border: 1px solid var(--card-border);
/* border-radius: 20px; */
overflow: hidden;
/* background: #fff; */
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.course-image-wrapper {
padding: 16px 16px 0 16px;
overflow: hidden;
}
.course-card img {
height: 190px;
width: 100%;
object-fit: cover;
/* border-radius: 14px; */
transition: 0.5s;
}
.course-card:hover img {
transform: scale(1.05);
}
.course-card .card-body {
padding: 20px 24px 24px 24px;
display: flex;
flex-direction: column;
text-align: left;
}
.course-title {
font-size: 21px;
font-weight: 700;
line-height: 1.3;
color: #1c1d1f;
margin-bottom: 6px;
}
.course-author {
font-size: 14px;
color: var(--text-muted);
margin-bottom: 8px;
}
.course-short-desc {
font-size: 14px;
color: #4f5357;
margin-bottom: 12px;
line-height: 1.5;
}
.course-meta-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 14px;
}
.badge-bestseller {
background-color: #ece3f1;
color: var(--primary);
font-weight: 700;
font-size: 11px;
padding: 3px 10px;
border-radius: 4px;
text-transform: uppercase;
}
.rating-star {
color: #b4690e;
font-weight: 700;
font-size: 14px;
display: flex;
align-items: center;
gap: 4px;
}
.rating-count {
color: var(--text-muted);
font-size: 13px;
}
.course-features {
display: flex;
gap: 15px;
font-size: 13px;
color: var(--success-green);
margin-bottom: 18px;
font-weight: 500;
}
.course-features span i {
margin-right: 4px;
}
.course-footer {
margin-top: auto;
}
.read-btn {
background: var(--primary);
color: #fff;
padding: 10px 25px;
font-weight: 600;
border-radius: 30px;
font-size: 15px;
transition: 0.2s;
border: none;
text-decoration: none;
display: inline-block;
}
.read-btn:hover {
background: var(--secondary);
color: #fff;
}
/* ===== Why Choose Us ===== */
.why-section {
background: #F8F4F7;
overflow-x: hidden;
}
.why-section li {
font-size: 18px;
margin-bottom: 18px;
}
.why-section i {
color: #5E244E;
}
.animate-on-scroll {
opacity: 0;
transition: all 1s ease-out;
}
.fade-up-init {
transform: translateY(40px);
}
.fade-left-init {
transform: translateX(50px);
}
.fade-right-init {
transform: translateX(-50px);
}
.zoom-in-init {
transform: scale(0.9);
}
.animate-on-scroll.animated {
opacity: 1;
transform: translateY(0) translateX(0) scale(1);
}
</style>
{{-- ===================== HERO ===================== --}}
<section class="hero" role="banner" aria-label="Automobile Engineering Academy introduction">
<div class="container">
<div class="hero-content text-center animate-on-scroll animated fade-up-init">
<h1 class="display-4 fw-bold">
Automobile Engineering Academy
</h1>
<p>
Driving Innovation Through Education, Research &amp; Technology
</p>
<div class="d-flex flex-wrap justify-content-center gap-3 mt-3">
<a href="{{ Route::has('apply') ? route('apply') : '#' }}" class="btn btn-theme">
<i class="fa-solid fa-user-plus me-2"></i> Apply Now
</a>
<a href="/courses" class="btn btn-outline-theme">
<i class="fa-solid fa-book-open me-2"></i> Explore Courses
</a>
<a href="mailto:imadhigp@gmail.com" class="btn btn-outline-light-custom">
<i class="fa-solid fa-phone me-2"></i> Contact Admissions
</a>
</div>
</div>
</div>
</section>
{{-- ===================== OUR COURSES ===================== --}}
<section class="section py-5" aria-labelledby="courses-heading" >
<!-- style=" background: linear-gradient(rgba(177, 155, 185, 0.65),rgba(133, 118, 129, 0.65)),
url('https://images.unsplash.com/photo-1517524206127-48bbd363f3d7?auto=format&fit=crop&w=1600&q=80');" -->
<div class="container py-5">
<div class="text-center mb-5 animate-on-scroll fade-up-init">
<h2 id="courses-heading">Our Courses</h2>
<p class="text-muted">
Explore our professional automotive engineering courses.
</p>
</div>
@php
$courses = [
[
'image' => 'https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=800&q=80',
'title' => 'Automotive Engineering Course',
'desc' => 'Learn vehicle design, engine technology, diagnostics and manufacturing.',
'author' => 'Automotive Engineering Dept.',
'rating' => '4.9',
'students' => '1.2k students',
'badge' => 'Popular'
],
[
'image' => 'https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=800&q=80',
'title' => 'Mechanical Systems Course',
'desc' => 'Study transmission systems, suspension, braking and vehicle maintenance.',
'author' => 'Tech & Service Campus',
'rating' => '4.7',
'students' => '850 students',
'badge' => 'Bestseller'
],
[
'image' => 'https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=800&q=80',
'title' => 'Electric Vehicle Technology Course',
'desc' => 'Master EV batteries, powertrains, charging systems and smart mobility.',
'author' => 'EV Research Institute',
'rating' => '4.8',
'students' => '640 students',
'badge' => 'New'
],
];
@endphp
<div class="row g-4 mb-5">
@foreach($courses as $index => $course)
<div class="col-lg-4 col-md-6 " style="transition-delay: {{ $index * 150 }}ms;">
<div class="card course-card h-100">
<div class="course-image-wrapper">
<img src="{{ $course['image'] }}" alt="{{ $course['title'] }}" loading="lazy" decoding="async">
</div>
<div class="card-body">
<h4 class="course-title">{{ $course['title'] }}</h4>
<div class="course-author">{{ $course['author'] }}</div>
<p class="course-short-desc">{{ $course['desc'] }}</p>
<div class="course-meta-row">
<span class="badge-bestseller">{{ $course['badge'] }}</span>
<span class="rating-star">
<i class="fas fa-star"></i> {{ $course['rating'] }}
</span>
<span class="rating-count">({{ $course['students'] }})</span>
</div>
<div class="course-features">
<span><i class="fas fa-tools"></i> Practical Labs</span>
<span><i class="fas fa-certificate"></i> Verified Course</span>
</div>
<div class="course-footer">
<a href="/courses" class="read-btn">View Course</a>
</div>
</div>
</div>
</div>
@endforeach
</div>
<div class="text-center animate-on-scroll fade-up-init">
<a href="/courses" class="btn btn-theme" style="border-radius: 40px;">
View All Courses <i class="fa-solid fa-arrow-right ms-2"></i>
</a>
</div>
</div>
</section>
{{-- ===================== WHY CHOOSE US ===================== --}}
<section class="section py-5 why-section" aria-labelledby="why-us-heading">
<div class="container">
<div class="row align-items-center g-5">
<!-- Image: Slides from Left -->
<div class="col-lg-6 animate-on-scroll fade-right-init">
<img src="https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=900&q=80"
alt="Automotive Engineering Lab"
class="img-fluid rounded shadow-sm"
width="900"
height="600"
loading="lazy"
decoding="async">
</div>
<!-- Content: Slides from Right -->
<div class="col-lg-6 animate-on-scroll fade-left-init">
<h2 id="why-us-heading" class="fw-bold mb-4">
Why Choose Us?
</h2>
<ul class="list-unstyled">
<li class="mb-3">
<i class="fa-solid fa-check text-success me-2"></i> Modern Laboratories
</li>
<li class="mb-3">
<i class="fa-solid fa-check text-success me-2"></i> Industry Qualified Lecturers
</li>
<li class="mb-3">
<i class="fa-solid fa-check text-success me-2"></i> Hands-on Vehicle Training
</li>
<li class="mb-3">
<i class="fa-solid fa-check text-success me-2"></i> Hybrid &amp; Electric Vehicle Research Center
</li>
<li class="mb-3">
<i class="fa-solid fa-check text-success me-2"></i> Internship Opportunities
</li>
</ul>
</div>
</div>
</div>
</section>
{{-- ===================== CALL TO ACTION ===================== --}}
<section class="section py-5 animate-on-scroll zoom-in-init">
<div class="container text-center">
<h2 class="fw-bold mb-3">
Join the Future of Automotive Engineering
</h2>
<p class="text-muted mb-4">
Shape the future with innovation, technology and practical learning.
</p>
<a href="{{ Route::has('apply') ? route('apply') : '#' }}" class="btn btn-theme">
<i class="fa-solid fa-user-plus me-2"></i> Apply Now
</a>
</div>
</section>
<script>
document.addEventListener('DOMContentLoaded', function () {
const animatedElements = document.querySelectorAll('.animate-on-scroll');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animated');
observer.unobserve(entry.target);
}
});
}, {
threshold: 0.15
});
animatedElements.forEach(el => observer.observe(el));
});
</script>
@endsection