First Commit
This commit is contained in:
Executable
+300
@@ -0,0 +1,300 @@
|
||||
{% extends "layouts/base.twig" %}
|
||||
|
||||
{% block title %}{{ title|default(__('index.welcome_title', {'platformName': platformName})) }} - {{ platformName }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<link href="{{ asset_url('css/landing-page.css') }}" rel="stylesheet">
|
||||
<style>
|
||||
.hero-section {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
padding: 100px 0;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
.hero-title {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px;
|
||||
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
|
||||
}
|
||||
.hero-subtitle {
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 30px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.feature-card {
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
border: none;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
}
|
||||
.feature-card:hover {
|
||||
transform: translateY(-10px);
|
||||
box-shadow: 0 15px 30px rgba(0,0,0,0.15);
|
||||
}
|
||||
.feature-icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 20px;
|
||||
color: #667eea;
|
||||
}
|
||||
.stats-section {
|
||||
background-color: #f8f9fa;
|
||||
padding: 80px 0;
|
||||
}
|
||||
.stat-item {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.stat-number {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
color: #667eea;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.btn-hero {
|
||||
padding: 15px 30px;
|
||||
font-size: 1.2rem;
|
||||
border-radius: 50px;
|
||||
font-weight: 600;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.btn-hero:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
|
||||
}
|
||||
.btn-outline-hero {
|
||||
background: transparent;
|
||||
border: 2px solid white;
|
||||
color: white;
|
||||
margin-left: 15px;
|
||||
}
|
||||
.btn-outline-hero:hover {
|
||||
background: white;
|
||||
color: #667eea;
|
||||
}
|
||||
.section-title {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
.section-title:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 80px;
|
||||
height: 4px;
|
||||
background: #667eea;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.section-subtitle {
|
||||
text-align: center;
|
||||
max-width: 700px;
|
||||
margin: 0 auto 60px;
|
||||
font-size: 1.1rem;
|
||||
color: #6c757d;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block layout_navbar %}
|
||||
{% include 'partials/nav-bar.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block layout_body %}
|
||||
<!-- Hero Section -->
|
||||
<section class="hero-section">
|
||||
<div class="container">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-6">
|
||||
<h1 class="hero-title">{{ title|default(__('index.welcome_title', {'platformName': platformName})) }}</h1>
|
||||
<p class="hero-subtitle">{{ meta_description|default(__('index.welcome_message')) }}</p>
|
||||
<div class="hero-buttons">
|
||||
<a href="{{ url('login') }}" class="btn btn-light btn-hero">{{ __('index.get_started') }}</a>
|
||||
<a href="#features" class="btn btn-outline-hero btn-hero">{{ __('index.learn_more') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<img src="{{ asset_url('img/laptop-593673_1280.jpg') }}" alt="{{ platformName }} Dashboard" class="img-fluid rounded shadow-lg">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% if page and page.content %}
|
||||
<!-- Dynamic Content Section -->
|
||||
<section class="py-5">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-10">
|
||||
<div class="content">
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% else %}
|
||||
<!-- Default Content -->
|
||||
<!-- Features Section -->
|
||||
<section id="features" class="py-5">
|
||||
<div class="container">
|
||||
<h2 class="section-title">{{ __('index.features_title') }}</h2>
|
||||
<p class="section-subtitle">{{ __('index.features_subtitle', {'platformName': platformName}) }}</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 mb-4">
|
||||
<div class="card feature-card h-100">
|
||||
<div class="card-body text-center p-4">
|
||||
<div class="feature-icon">
|
||||
<i class="bi bi-rocket-takeoff"></i>
|
||||
</div>
|
||||
<h3 class="card-title">{{ __('index.feature1_title') }}</h3>
|
||||
<p class="card-text">{{ __('index.feature1_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 mb-4">
|
||||
<div class="card feature-card h-100">
|
||||
<div class="card-body text-center p-4">
|
||||
<div class="feature-icon">
|
||||
<i class="bi bi-shield-check"></i>
|
||||
</div>
|
||||
<h3 class="card-title">{{ __('index.feature2_title') }}</h3>
|
||||
<p class="card-text">{{ __('index.feature2_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 mb-4">
|
||||
<div class="card feature-card h-100">
|
||||
<div class="card-body text-center p-4">
|
||||
<div class="feature-icon">
|
||||
<i class="bi bi-graph-up-arrow"></i>
|
||||
</div>
|
||||
<h3 class="card-title">{{ __('index.feature3_title') }}</h3>
|
||||
<p class="card-text">{{ __('index.feature3_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 mb-4">
|
||||
<div class="card feature-card h-100">
|
||||
<div class="card-body text-center p-4">
|
||||
<div class="feature-icon">
|
||||
<i class="bi bi-people"></i>
|
||||
</div>
|
||||
<h3 class="card-title">{{ __('index.feature4_title') }}</h3>
|
||||
<p class="card-text">{{ __('index.feature4_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 mb-4">
|
||||
<div class="card feature-card h-100">
|
||||
<div class="card-body text-center p-4">
|
||||
<div class="feature-icon">
|
||||
<i class="bi bi-phone"></i>
|
||||
</div>
|
||||
<h3 class="card-title">{{ __('index.feature5_title') }}</h3>
|
||||
<p class="card-text">{{ __('index.feature5_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 mb-4">
|
||||
<div class="card feature-card h-100">
|
||||
<div class="card-body text-center p-4">
|
||||
<div class="feature-icon">
|
||||
<i class="bi bi-gear-wide-connected"></i>
|
||||
</div>
|
||||
<h3 class="card-title">{{ __('index.feature6_title') }}</h3>
|
||||
<p class="card-text">{{ __('index.feature6_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Stats Section -->
|
||||
<section class="stats-section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="stat-item">
|
||||
<div class="stat-number" data-count="500">0</div>
|
||||
<p>{{ __('index.stat1') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="stat-item">
|
||||
<div class="stat-number" data-count="1200">0</div>
|
||||
<p>{{ __('index.stat2') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="stat-item">
|
||||
<div class="stat-number" data-count="99">0</div>
|
||||
<p>{{ __('index.stat3') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="stat-item">
|
||||
<div class="stat-number" data-count="24">0</div>
|
||||
<p>{{ __('index.stat4') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
<!-- CTA Section -->
|
||||
<section class="cta-section" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 80px 0; text-align: center;">
|
||||
<div class="container">
|
||||
<h2 class="section-title text-white">{{ __('index.cta_title') }}</h2>
|
||||
<p class="section-subtitle text-white">{{ __('index.cta_subtitle', {'platformName': platformName}) }}</p>
|
||||
<a href="{{ url('login') }}" class="btn btn-light btn-hero">{{ __('index.cta_button') }}</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
// Animated Counter for Stats
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const counters = document.querySelectorAll('.stat-number');
|
||||
const speed = 200;
|
||||
|
||||
const countUp = function() {
|
||||
counters.forEach(counter => {
|
||||
const target = +counter.getAttribute('data-count');
|
||||
const count = +counter.innerText;
|
||||
const increment = target / speed;
|
||||
|
||||
if (count < target) {
|
||||
counter.innerText = Math.ceil(count + increment);
|
||||
setTimeout(countUp, 10);
|
||||
} else {
|
||||
counter.innerText = target;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// Trigger counter animation when stats section is in view
|
||||
const statsSection = document.querySelector('.stats-section');
|
||||
if (statsSection) {
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
countUp();
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, { threshold: 0.5 });
|
||||
|
||||
observer.observe(statsSection);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user