Key Features of This Landing Page:
-
Responsive Design: Works perfectly on all devices from mobile to desktop
-
Modern UI: Clean layout with attractive color scheme (blue/green accents)
-
All Required Sections:
-
Hero section with CTA button
-
Course overview with feature highlights
-
Instructor bio with social links
-
Interactive curriculum (accordion style)
-
Testimonials with star ratings
-
Pricing tiers with popular option highlighted
-
FAQ section with collapsible answers
-
Comprehensive footer
-
-
Interactive Elements:
-
Mobile-friendly navigation menu
-
Smooth scrolling to sections
-
JavaScript-powered accordions for curriculum and FAQ
-
Hover effects on buttons and cards
-
Fade-in animations as user scrolls
-
-
Conversion-Focused:
-
Multiple strategically placed CTA buttons
-
Clear value propositions
-
Social proof with testimonials
-
Limited-time offer positioning
-
Money-back guarantee
-
The design uses CSS Grid and Flexbox for layout, modern fonts, and a professional color scheme optimized for readability and visual appeal.
:root {
--primary: #2563eb;
--primary-light: #3b82f6;
--secondary: #10b981;
--dark: #1e293b;
--light: #f8fafc;
--gray: #94a3b8;
--gray-light: #e2e8f0;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
color: var(--dark);
line-height: 1.6;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
section {
padding: 80px 0;
}
.section-title {
font-size: 2.5rem;
margin-bottom: 1.5rem;
text-align: center;
position: relative;
}
.section-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 4px;
background: var(--primary);
border-radius: 2px;
}
.section-subtitle {
text-align: center;
color: var(--gray);
max-width: 700px;
margin: 0 auto 50px;
font-size: 1.1rem;
}
.btn {
display: inline-block;
padding: 12px 30px;
background: var(--primary);
color: white;
border: none;
border-radius: 5px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
}
.btn:hover {
background: var(--primary-light);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}
.btn-secondary {
background: var(--secondary);
}
.btn-secondary:hover {
background: #0d9e6e;
box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}
/* Header */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
text-decoration: none;
}
.nav-links {
display: flex;
list-style: none;
}
.nav-links li {
margin-left: 30px;
}
.nav-links a {
text-decoration: none;
color: var(--dark);
font-weight: 500;
transition: color 0.3s;
}
.nav-links a:hover {
color: var(--primary);
}
.menu-toggle {
display: none;
cursor: pointer;
font-size: 1.5rem;
}
/* Hero Section */
#hero {
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
padding: 150px 0 100px;
text-align: center;
}
.hero-content {
max-width: 800px;
margin: 0 auto;
}
.hero-title {
font-size: 3rem;
margin-bottom: 1rem;
color: var(--dark);
line-height: 1.2;
}
.hero-subtitle {
font-size: 1.5rem;
color: var(--primary);
margin-bottom: 1.5rem;
font-weight: 500;
}
.hero-description {
font-size: 1.1rem;
margin-bottom: 2.5rem;
color: var(--dark);
opacity: 0.9;
}
.hero-image {
margin-top: 50px;
max-width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* Course Overview */
#overview {
background: white;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 50px;
}
.feature {
background: var(--light);
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
transition: transform 0.3s ease;
}
.feature:hover {
transform: translateY(-5px);
}
.feature-icon {
font-size: 2.5rem;
color: var(--primary);
margin-bottom: 20px;
}
.feature-title {
font-size: 1.3rem;
margin-bottom: 15px;
color: var(--dark);
}
.feature-desc {
color: var(--gray);
}
/* Instructor */
#instructor {
background: var(--light);
}
.instructor-container {
display: flex;
align-items: center;
gap: 50px;
margin-top: 50px;
}
.instructor-img {
width: 300px;
height: 300px;
border-radius: 10px;
object-fit: cover;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.instructor-bio h3 {
font-size: 2rem;
margin-bottom: 15px;
}
.instructor-title {
color: var(--primary);
font-weight: 500;
margin-bottom: 20px;
}
.instructor-social {
display: flex;
gap: 15px;
margin-top: 20px;
}
.instructor-social a {
color: var(--dark);
font-size: 1.2rem;
transition: color 0.3s;
}
.instructor-social a:hover {
color: var(--primary);
}
/* Curriculum */
.accordion {
max-width: 800px;
margin: 50px auto 0;
}
.accordion-item {
margin-bottom: 15px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.accordion-header {
background: white;
padding: 20px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 600;
transition: background 0.3s;
}
.accordion-header:hover {
background: var(--gray-light);
}
.accordion-header::after {
content: '+';
font-size: 1.5rem;
transition: transform 0.3s;
}
.accordion-item.active .accordion-header::after {
transform: rotate(45deg);
}
.accordion-content {
background: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
}
.accordion-body {
padding: 0 20px;
}
.accordion-item.active .accordion-content {
max-height: 500px;
}
.module {
padding: 20px 0;
border-bottom: 1px solid var(--gray-light);
}
.module:last-child {
border-bottom: none;
}
.module-title {
font-weight: 600;
margin-bottom: 10px;
}
.module-desc {
color: var(--gray);
font-size: 0.9rem;
}
/* Testimonials */
#testimonials {
background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.testimonials {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 50px;
}
.testimonial {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.testimonial-rating {
color: #f59e0b;
margin-bottom: 15px;
}
.testimonial-text {
font-style: italic;
margin-bottom: 20px;
}
.testimonial-author {
display: flex;
align-items: center;
}
.testimonial-author img {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
margin-right: 15px;
}
.author-name {
font-weight: 600;
}
.author-title {
color: var(--gray);
font-size: 0.9rem;
}
/* Pricing */
.pricing-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 50px;
}
.pricing-card {
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
transition: transform 0.3s;
position: relative;
}
.pricing-card:hover {
transform: translateY(-10px);
}
.pricing-card.popular {
border: 2px solid var(--primary);
}
.popular-badge {
position: absolute;
top: 0;
right: 20px;
background: var(--primary);
color: white;
padding: 5px 15px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
font-size: 0.8rem;
font-weight: 600;
}
.pricing-header {
padding: 30px;
text-align: center;
background: var(--light);
}
.pricing-title {
font-size: 1.5rem;
margin-bottom: 10px;
}
.pricing-price {
font-size: 3rem;
font-weight: 700;
margin-bottom: 5px;
}
.pricing-price span {
font-size: 1rem;
font-weight: normal;
color: var(--gray);
}
.pricing-duration {
color: var(--gray);
}
.pricing-features {
padding: 30px;
}
.pricing-features ul {
list-style: none;
margin-bottom: 30px;
}
.pricing-features li {
padding: 10px 0;
border-bottom: 1px solid var(--gray-light);
}
.pricing-features li:last-child {
border-bottom: none;
}
.pricing-features li::before {
content: '✓';
color: var(--secondary);
margin-right: 10px;
font-weight: bold;
}
.pricing-footer {
padding: 0 30px 30px;
text-align: center;
}
/* FAQ */
#faq {
background: var(--light);
}
.faq-container {
max-width: 800px;
margin: 50px auto 0;
}
.faq-item {
margin-bottom: 15px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.faq-question {
background: white;
padding: 20px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 600;
transition: background 0.3s;
}
.faq-question:hover {
background: var(--gray-light);
}
.faq-question::after {
content: '+';
font-size: 1.5rem;
transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
transform: rotate(45deg);
}
.faq-answer {
background: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
}
.faq-answer-content {
padding: 0 20px 20px;
}
.faq-item.active .faq-answer {
max-height: 500px;
}
/* Footer */
footer {
background: var(--dark);
color: white;
padding: 60px 0 20px;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-bottom: 40px;
}
.footer-column h3 {
font-size: 1.2rem;
margin-bottom: 20px;
position: relative;
}
.footer-column h3::after {
content: '';
position: absolute;
bottom: -10px;
left: 0;
width: 40px;
height: 2px;
background: var(--primary);
}
.footer-links {
list-style: none;
}
.footer-links li {
margin-bottom: 10px;
}
.footer-links a {
color: var(--gray-light);
text-decoration: none;
transition: color 0.3s;
}
.footer-links a:hover {
color: white;
}
.footer-social {
display: flex;
gap: 15px;
margin-top: 20px;
}
.footer-social a {
color: white;
font-size: 1.2rem;
transition: color 0.3s;
}
.footer-social a:hover {
color: var(--primary-light);
}
.footer-bottom {
text-align: center;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: var(--gray-light);
font-size: 0.9rem;
}
/* Responsive */
@media (max-width: 992px) {
.instructor-container {
flex-direction: column;
}
.instructor-img {
width: 200px;
height: 200px;
}
}
@media (max-width: 768px) {
.menu-toggle {
display: block;
}
.nav-links {
position: fixed;
top: 70px;
left: -100%;
width: 100%;
height: calc(100vh - 70px);
background: white;
flex-direction: column;
align-items: center;
padding: 40px 0;
transition: left 0.3s;
}
.nav-links.active {
left: 0;
}
.nav-links li {
margin: 15px 0;
}
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.2rem;
}
section {
padding: 60px 0;
}
}
@media (max-width: 576px) {
.hero-title {
font-size: 2rem;
}
.section-title {
font-size: 2rem;
}
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fadeIn {
animation: fadeIn 0.6s ease-out forwards;
}
.delay-1 {
animation-delay: 0.2s;
}
.delay-2 {
animation-delay: 0.4s;
}
.delay-3 {
animation-delay: 0.6s;
}
// Mobile Menu Toggle
const menuToggle = document.querySelector('.menu-toggle');
const navLinks = document.querySelector('.nav-links');
menuToggle.addEventListener('click', () => {
navLinks.classList.toggle('active');
});
// Close mobile menu when clicking a link
document.querySelectorAll('.nav-links a').forEach(link => {
link.addEventListener('click', () => {
navLinks.classList.remove('active');
});
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
const targetId = this.getAttribute('href');
if (targetId === '#') return;
const targetElement = document.querySelector(targetId);
if (targetElement) {
window.scrollTo({
top: targetElement.offsetTop - 70,
behavior: 'smooth'
});
}
});
});
// Accordion functionality for curriculum
const accordionItems = document.querySelectorAll('.accordion-item');
accordionItems.forEach(item => {
const header = item.querySelector('.accordion-header');
header.addEventListener('click', () => {
const currentlyActive = document.querySelector('.accordion-item.active');
if (currentlyActive && currentlyActive !== item) {
currentlyActive.classList.remove('active');
}
item.classList.toggle('active');
});
});
// FAQ accordion functionality
const faqItems = document.querySelectorAll('.faq-item');
faqItems.forEach(item => {
const question = item.querySelector('.faq-question');
question.addEventListener('click', () => {
const currentlyActive = document.querySelector('.faq-item.active');
if (currentlyActive && currentlyActive !== item) {
currentlyActive.classList.remove('active');
}
item.classList.toggle('active');
});
});
// Animation on scroll
const animateOnScroll = () => {
const elements = document.querySelectorAll('.animate-fadeIn');
elements.forEach(element => {
const elementPosition = element.getBoundingClientRect().top;
const windowHeight = window.innerHeight;
if (elementPosition < windowHeight - 100) {
element.style.opacity = '1';
element.style.transform = 'translateY(0)';
}
});
};
// Initialize animations
window.addEventListener('load', () => {
animateOnScroll();
});
window.addEventListener('scroll', () => {
animateOnScroll();
});
إرسال تعليق
Thank you
Learning robo team