262 lines
6.5 KiB
PHP
262 lines
6.5 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title','Contact Us')
|
|
|
|
@section('content')
|
|
|
|
<style>
|
|
:root{
|
|
/* Premium Modern Automotive Palette */
|
|
--primary: #3E51B8; /* Tech Blue */
|
|
--primary-light: #0a67df; /* Vibrant Electric Blue */
|
|
--secondary: #BC1A1A; /* Deep Racing Red */
|
|
--secondary-hover: #822424; /* Dark Burnt Red */
|
|
--accent-dark: #753939; /* Muted Crimson */
|
|
--bg-light: #F8FAFC; /* Soft slate light gray */
|
|
|
|
/* Semantic Adjustments */
|
|
--text-main: #1E293B; /* Slate dark grey */
|
|
--text-muted: #64748B; /* Neutral gray */
|
|
--card-border: rgba(62, 81, 184, 0.1);
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Arial, sans-serif;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.hero-contact{
|
|
min-height:50vh;
|
|
background:
|
|
linear-gradient(rgba(233, 236, 246, 0.6), rgba(39, 35, 35, 0.71)), url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg');
|
|
background-size:cover;
|
|
background-position:center;
|
|
display:flex;
|
|
align-items:center;
|
|
justify-content:center;
|
|
text-align:center;
|
|
color:#fff;
|
|
}
|
|
|
|
.contact-box{
|
|
background:#fff;
|
|
border-radius:20px;
|
|
padding:35px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,.04);
|
|
border: 1px solid var(--card-border);
|
|
}
|
|
|
|
.form-control{
|
|
border-radius:10px;
|
|
padding:12px;
|
|
border: 1px solid #cbd5e1;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: var(--primary-light);
|
|
box-shadow: 0 0 0 4px rgba(10, 103, 223, 0.15);
|
|
outline: 0;
|
|
}
|
|
|
|
.btn-contact{
|
|
background: #6a2525 ;
|
|
color:#fff;
|
|
border-radius:10px;
|
|
padding:12px 30px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
box-shadow: 0 4px 12px rgba(62, 81, 184, 0.2);
|
|
}
|
|
|
|
.btn-contact:hover{
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
|
|
color:#fff;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 15px rgba(188, 26, 26, 0.3);
|
|
}
|
|
|
|
.info-card{
|
|
background:#fff;
|
|
border-radius:15px;
|
|
padding:20px;
|
|
text-align:center;
|
|
box-shadow: 0 5px 20px rgba(0,0,0,.04);
|
|
border: 1px solid var(--card-border);
|
|
transition:.3s;
|
|
}
|
|
|
|
.info-card:hover{
|
|
transform:translateY(-5px);
|
|
border-color: var(--primary-light);
|
|
box-shadow: 0 10px 25px rgba(62, 81, 184, 0.1);
|
|
}
|
|
|
|
.info-card i {
|
|
color: #861E28 !important;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.info-card:hover i {
|
|
color: var(--secondary) !important;
|
|
}
|
|
|
|
/* ========================================================
|
|
Custom CSS Scroll Animations
|
|
======================================================== */
|
|
.animate-item {
|
|
opacity: 0;
|
|
will-change: transform, opacity;
|
|
transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
|
|
}
|
|
|
|
.fade-up-init {
|
|
transform: translateY(30px);
|
|
}
|
|
|
|
.slide-left-init {
|
|
transform: translateX(-40px);
|
|
}
|
|
|
|
.fade-in-init {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Active Class */
|
|
.animate-item.animated {
|
|
opacity: 1;
|
|
transform: translate(0) scale(1);
|
|
}
|
|
</style>
|
|
|
|
<!-- HERO -->
|
|
<section class="hero-contact">
|
|
<div class="container">
|
|
<div class="animate-item animated fade-up-init">
|
|
<h1 class="fw-bold display-4">Contact Us</h1>
|
|
<p class="fs-5 text-white-50" style="color:rgba(255, 255, 255, 0.8) !important">We are here to help you. Reach us anytime.</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- CONTACT SECTION -->
|
|
<section class="py-5 overflow-hidden">
|
|
<div class="container">
|
|
|
|
<div class="row g-4">
|
|
|
|
<!-- Contact Form (Slide Left) -->
|
|
<div class="col-md-6 animate-item slide-left-init">
|
|
<div class="contact-box">
|
|
|
|
<h3 class="mb-4 fw-bold" style="color: var(--text-main);">Send Message</h3>
|
|
|
|
@if(session('success'))
|
|
<div class="alert alert-success">
|
|
{{ session('success') }}
|
|
</div>
|
|
@endif
|
|
|
|
<form action="{{ route('contact.store') }}" method="POST">
|
|
@csrf
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label fw-semibold text-secondary-emphasis">Name</label>
|
|
<input type="text" name="name" class="form-control" placeholder="Your Name" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label fw-semibold text-secondary-emphasis">Email</label>
|
|
<input type="email" name="email" class="form-control" placeholder="Your Email" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label fw-semibold text-secondary-emphasis">Subject</label>
|
|
<input type="text" name="subject" class="form-control" placeholder="Subject" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label fw-semibold text-secondary-emphasis">Message</label>
|
|
<textarea name="message" rows="5" class="form-control" placeholder="Your Message" required></textarea>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-contact w-100">
|
|
Send Message
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Info Cards -->
|
|
<div class="col-md-6 animate-item fade-in-init">
|
|
|
|
<div class="info-card mb-3">
|
|
<i class="fa-solid fa-location-dot fa-2x"></i>
|
|
<h5 class="mt-3 fw-bold">Address</h5>
|
|
<p class="text-muted mb-0">No 12, Colombo Road, Sri Lanka</p>
|
|
</div>
|
|
|
|
<div class="info-card mb-3">
|
|
<i class="fa-solid fa-phone fa-2x"></i>
|
|
<h5 class="mt-3 fw-bold">Phone</h5>
|
|
<p class="text-muted mb-0">+94 77 123 4567</p>
|
|
</div>
|
|
|
|
<div class="info-card mb-3">
|
|
<i class="fa-solid fa-envelope fa-2x"></i>
|
|
<h5 class="mt-3 fw-bold">Email</h5>
|
|
<p class="text-muted mb-0">info@automotiveacademy.lk</p>
|
|
</div>
|
|
|
|
<div class="info-card">
|
|
<i class="fa-solid fa-clock fa-2x"></i>
|
|
<h5 class="mt-3 fw-bold">Working Hours</h5>
|
|
<p class="text-muted mb-0">Mon - Fri: 8.00 AM - 5.00 PM</p>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|
|
|
|
<!-- MAP -->
|
|
<section class="pb-5">
|
|
<div class="container animate-item fade-up-init">
|
|
<iframe
|
|
src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d989.8732851214081!2d80.0435697!3d7.0771955!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3ae2fc2f4b77d05d%3A0x34523a0fdbdedc60!2sGlitz%20Park!5e0!3m2!1sen!2slk!4v1719999999999!5m2!1sen!2slk"
|
|
width="100%"
|
|
height="350"
|
|
style="border:0;border-radius:20px; box-shadow: 0 10px 30px rgba(0,0,0,.04); border: 1px solid var(--card-border);"
|
|
allowfullscreen=""
|
|
loading="lazy">
|
|
</iframe>
|
|
</div>
|
|
</section>
|
|
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
const animatedElements = document.querySelectorAll('.animate-item');
|
|
|
|
const observer = new IntersectionObserver((entries) => {
|
|
entries.forEach(entry => {
|
|
if (entry.isIntersecting) {
|
|
entry.target.classList.add('animated');
|
|
observer.unobserve(entry.target);
|
|
}
|
|
});
|
|
}, {
|
|
threshold: 0.10
|
|
});
|
|
|
|
animatedElements.forEach(el => observer.observe(el));
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
|
@endsection |