Initial commit
This commit is contained in:
135
skills/modern-web-design/SKILL.md
Normal file
135
skills/modern-web-design/SKILL.md
Normal file
@@ -0,0 +1,135 @@
|
||||
---
|
||||
name: modern-web-design
|
||||
description: Create modern, responsive websites with professional design systems. Generates complete HTML/CSS/JS websites with Tailwind CSS, modern animations, and mobile-first responsive design. Perfect for landing pages, portfolios, business sites, and SaaS applications.
|
||||
---
|
||||
|
||||
# Modern Web Design Creator
|
||||
|
||||
Build beautiful, responsive websites using modern design principles, Tailwind CSS, and contemporary UI patterns. Creates production-ready code with animations, responsive layouts, and accessibility features.
|
||||
|
||||
## When to Use This Skill
|
||||
|
||||
Use this skill for:
|
||||
- Landing pages and marketing websites
|
||||
- Portfolio and personal brand sites
|
||||
- Business and company websites
|
||||
- SaaS application interfaces
|
||||
- E-commerce product pages
|
||||
- Blog and content sites
|
||||
- Dashboard and admin interfaces
|
||||
|
||||
## Design System Foundation
|
||||
|
||||
### Core Principles
|
||||
- **Mobile-first responsive design** with breakpoint optimization
|
||||
- **Design tokens** for consistent spacing, colors, and typography
|
||||
- **Component-based architecture** for maintainable code
|
||||
- **Accessibility-first** development with ARIA labels and semantic HTML
|
||||
- **Performance optimization** with minimal CSS and efficient animations
|
||||
|
||||
### Style Categories
|
||||
|
||||
Reference `references/design-systems.md` for complete style specifications:
|
||||
|
||||
#### Minimalist Professional
|
||||
- Clean typography with generous whitespace
|
||||
- Neutral color palette with strategic accent colors
|
||||
- Subtle shadows and minimal animations
|
||||
- Focus on content hierarchy and readability
|
||||
|
||||
#### Modern SaaS
|
||||
- Bold gradients and vibrant colors
|
||||
- Card-based layouts with elevation
|
||||
- Micro-interactions and hover states
|
||||
- Dashboard-style components
|
||||
|
||||
#### Creative Portfolio
|
||||
- Experimental layouts and grid systems
|
||||
- Bold typography and creative color schemes
|
||||
- Advanced animations and scroll effects
|
||||
- Image-focused design patterns
|
||||
|
||||
#### E-commerce Optimized
|
||||
- Product-focused layouts
|
||||
- Trust signals and social proof elements
|
||||
- Conversion-optimized CTAs
|
||||
- Shopping and checkout flows
|
||||
|
||||
## Implementation Workflow
|
||||
|
||||
1. **Analyze Requirements**: Determine site purpose, target audience, and functionality needs
|
||||
2. **Select Design Category**: Choose appropriate style system from references
|
||||
3. **Generate Structure**: Create semantic HTML with proper heading hierarchy
|
||||
4. **Apply Styling**: Implement Tailwind CSS classes with design system tokens
|
||||
5. **Add Interactions**: Include animations, hover states, and micro-interactions
|
||||
6. **Optimize Responsive**: Ensure mobile-first responsive behavior
|
||||
7. **Enhance Accessibility**: Add ARIA labels, alt text, and keyboard navigation
|
||||
|
||||
## Code Generation Standards
|
||||
|
||||
### HTML Structure
|
||||
- Semantic HTML5 elements (`<header>`, `<main>`, `<section>`, `<article>`)
|
||||
- Proper heading hierarchy (h1 → h6)
|
||||
- Accessibility attributes (ARIA, alt text, roles)
|
||||
- Meta tags for SEO and responsive design
|
||||
|
||||
### CSS Framework
|
||||
- Tailwind CSS utility classes for rapid development
|
||||
- Custom CSS for complex animations and unique effects
|
||||
- CSS variables for design token consistency
|
||||
- Mobile-first media queries
|
||||
|
||||
### JavaScript Features
|
||||
- Vanilla JavaScript for lightweight interactions
|
||||
- Intersection Observer for scroll animations
|
||||
- Form validation and submission handling
|
||||
- Mobile menu and navigation toggles
|
||||
|
||||
## Component Library
|
||||
|
||||
Load `assets/component-templates.html` for reusable components:
|
||||
|
||||
### Navigation Components
|
||||
- Responsive header with mobile menu
|
||||
- Sticky navigation with scroll effects
|
||||
- Breadcrumb navigation
|
||||
- Footer with social links
|
||||
|
||||
### Content Sections
|
||||
- Hero sections with various layouts
|
||||
- Feature grids and comparison tables
|
||||
- Testimonial carousels
|
||||
- FAQ accordions
|
||||
- Contact forms
|
||||
|
||||
### Interactive Elements
|
||||
- Animated buttons and CTAs
|
||||
- Image galleries and lightboxes
|
||||
- Progress bars and counters
|
||||
- Modal dialogs and tooltips
|
||||
|
||||
## Advanced Features
|
||||
|
||||
### Animation System
|
||||
- CSS transitions for smooth interactions
|
||||
- Keyframe animations for complex movements
|
||||
- Intersection Observer for scroll-triggered effects
|
||||
- Performance-optimized animations
|
||||
|
||||
### Performance Optimization
|
||||
- Minimal CSS footprint with utility-first approach
|
||||
- Lazy loading for images and heavy content
|
||||
- Critical CSS inlining for above-fold content
|
||||
- Progressive enhancement strategies
|
||||
|
||||
### SEO Foundation
|
||||
- Semantic HTML structure
|
||||
- Meta tags and Open Graph
|
||||
- JSON-LD structured data
|
||||
- Performance optimization for Core Web Vitals
|
||||
|
||||
## Supporting Resources
|
||||
|
||||
- `references/design-systems.md`: Complete style guides and color palettes
|
||||
- `assets/component-templates.html`: Reusable HTML component library
|
||||
- `scripts/build-tools.js`: Optimization and build utilities
|
||||
332
skills/modern-web-design/assets/component-templates.html
Normal file
332
skills/modern-web-design/assets/component-templates.html
Normal file
@@ -0,0 +1,332 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Modern Web Design Components</title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body class="font-['Inter'] bg-gray-50">
|
||||
|
||||
<!-- Navigation Components -->
|
||||
|
||||
<!-- 1. Professional Header -->
|
||||
<header class="bg-white shadow-sm sticky top-0 z-50">
|
||||
<nav class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="flex justify-between items-center h-16">
|
||||
<div class="flex items-center">
|
||||
<img class="h-8 w-8" src="logo.svg" alt="Logo">
|
||||
<span class="ml-2 text-xl font-semibold text-gray-900">Brand</span>
|
||||
</div>
|
||||
<div class="hidden md:block">
|
||||
<div class="ml-10 flex items-baseline space-x-8">
|
||||
<a href="#" class="text-gray-600 hover:text-gray-900 px-3 py-2 text-sm font-medium transition-colors">Home</a>
|
||||
<a href="#" class="text-gray-600 hover:text-gray-900 px-3 py-2 text-sm font-medium transition-colors">About</a>
|
||||
<a href="#" class="text-gray-600 hover:text-gray-900 px-3 py-2 text-sm font-medium transition-colors">Services</a>
|
||||
<a href="#" class="text-gray-600 hover:text-gray-900 px-3 py-2 text-sm font-medium transition-colors">Contact</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hidden md:block">
|
||||
<button class="bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-blue-700 transition-colors">
|
||||
Get Started
|
||||
</button>
|
||||
</div>
|
||||
<div class="md:hidden">
|
||||
<button class="text-gray-600 hover:text-gray-900" id="mobile-menu-button">
|
||||
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- 2. SaaS Gradient Header -->
|
||||
<header class="bg-gradient-to-r from-purple-600 to-blue-600">
|
||||
<nav class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="flex justify-between items-center h-16">
|
||||
<div class="flex items-center">
|
||||
<span class="text-xl font-bold text-white">SaaS App</span>
|
||||
</div>
|
||||
<div class="hidden md:flex space-x-8">
|
||||
<a href="#" class="text-purple-100 hover:text-white transition-colors">Features</a>
|
||||
<a href="#" class="text-purple-100 hover:text-white transition-colors">Pricing</a>
|
||||
<a href="#" class="text-purple-100 hover:text-white transition-colors">Resources</a>
|
||||
</div>
|
||||
<div class="flex items-center space-x-4">
|
||||
<a href="#" class="text-purple-100 hover:text-white">Sign In</a>
|
||||
<button class="bg-white text-purple-600 px-4 py-2 rounded-md font-medium hover:bg-gray-100 transition-colors">
|
||||
Start Free Trial
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Hero Sections -->
|
||||
|
||||
<!-- 3. Minimalist Hero -->
|
||||
<section class="bg-white py-20">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="text-center">
|
||||
<h1 class="text-4xl sm:text-5xl lg:text-6xl font-bold text-gray-900 leading-tight">
|
||||
Build something
|
||||
<span class="text-blue-600">amazing</span>
|
||||
</h1>
|
||||
<p class="mt-6 max-w-3xl mx-auto text-xl text-gray-600">
|
||||
Create beautiful, responsive websites with our modern design system and component library.
|
||||
</p>
|
||||
<div class="mt-10 flex flex-col sm:flex-row gap-4 justify-center">
|
||||
<button class="bg-blue-600 text-white px-8 py-3 rounded-md font-medium hover:bg-blue-700 transition-colors transform hover:-translate-y-1">
|
||||
Get Started
|
||||
</button>
|
||||
<button class="border border-gray-300 text-gray-700 px-8 py-3 rounded-md font-medium hover:bg-gray-50 transition-colors">
|
||||
Learn More
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 4. SaaS Hero with Animation -->
|
||||
<section class="bg-gradient-to-br from-indigo-900 via-purple-900 to-pink-900 py-20">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="grid lg:grid-cols-2 gap-12 items-center">
|
||||
<div>
|
||||
<h1 class="text-5xl lg:text-6xl font-bold text-white leading-tight">
|
||||
The future of
|
||||
<span class="text-transparent bg-clip-text bg-gradient-to-r from-pink-400 to-purple-400">
|
||||
productivity
|
||||
</span>
|
||||
</h1>
|
||||
<p class="mt-6 text-xl text-gray-300">
|
||||
Streamline your workflow with AI-powered tools that adapt to your team's needs.
|
||||
</p>
|
||||
<div class="mt-8 flex flex-col sm:flex-row gap-4">
|
||||
<button class="bg-white text-gray-900 px-8 py-3 rounded-md font-semibold hover:bg-gray-100 transition-all transform hover:scale-105">
|
||||
Start Free Trial
|
||||
</button>
|
||||
<button class="border border-purple-400 text-purple-400 px-8 py-3 rounded-md font-semibold hover:bg-purple-400 hover:text-white transition-colors">
|
||||
Watch Demo
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="relative">
|
||||
<div class="bg-white/10 backdrop-blur-lg rounded-xl p-8 border border-white/20">
|
||||
<div class="space-y-4">
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="w-3 h-3 bg-green-400 rounded-full"></div>
|
||||
<div class="h-2 bg-gray-300 rounded w-32"></div>
|
||||
</div>
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="w-3 h-3 bg-yellow-400 rounded-full"></div>
|
||||
<div class="h-2 bg-gray-300 rounded w-24"></div>
|
||||
</div>
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="w-3 h-3 bg-blue-400 rounded-full"></div>
|
||||
<div class="h-2 bg-gray-300 rounded w-40"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Feature Sections -->
|
||||
|
||||
<!-- 5. Feature Grid -->
|
||||
<section class="py-20 bg-white">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="text-center mb-16">
|
||||
<h2 class="text-3xl sm:text-4xl font-bold text-gray-900">
|
||||
Everything you need to succeed
|
||||
</h2>
|
||||
<p class="mt-4 text-xl text-gray-600">
|
||||
Powerful features to help you build better websites faster
|
||||
</p>
|
||||
</div>
|
||||
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
<div class="text-center p-6 rounded-lg hover:shadow-lg transition-shadow">
|
||||
<div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mx-auto mb-4">
|
||||
<svg class="w-6 h-6 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-xl font-semibold text-gray-900 mb-2">Lightning Fast</h3>
|
||||
<p class="text-gray-600">Optimized for speed and performance on all devices</p>
|
||||
</div>
|
||||
<div class="text-center p-6 rounded-lg hover:shadow-lg transition-shadow">
|
||||
<div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center mx-auto mb-4">
|
||||
<svg class="w-6 h-6 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-xl font-semibold text-gray-900 mb-2">Reliable</h3>
|
||||
<p class="text-gray-600">99.9% uptime guarantee with robust infrastructure</p>
|
||||
</div>
|
||||
<div class="text-center p-6 rounded-lg hover:shadow-lg transition-shadow">
|
||||
<div class="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mx-auto mb-4">
|
||||
<svg class="w-6 h-6 text-purple-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-xl font-semibold text-gray-900 mb-2">Secure</h3>
|
||||
<p class="text-gray-600">Enterprise-grade security to protect your data</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Interactive Components -->
|
||||
|
||||
<!-- 6. Testimonial Carousel -->
|
||||
<section class="py-20 bg-gray-50">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="text-center mb-16">
|
||||
<h2 class="text-3xl font-bold text-gray-900">What our customers say</h2>
|
||||
</div>
|
||||
<div class="max-w-4xl mx-auto">
|
||||
<div class="bg-white rounded-xl shadow-lg p-8">
|
||||
<div class="text-center">
|
||||
<p class="text-xl text-gray-600 italic mb-8">
|
||||
"This platform has completely transformed how we build and deploy websites. The design system is incredible and the performance is outstanding."
|
||||
</p>
|
||||
<div class="flex items-center justify-center">
|
||||
<img class="w-12 h-12 rounded-full mr-4" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100&h=100&fit=crop&crop=face" alt="Customer">
|
||||
<div class="text-left">
|
||||
<p class="font-semibold text-gray-900">John Smith</p>
|
||||
<p class="text-gray-600">CEO, TechCorp</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 7. Contact Form -->
|
||||
<section class="py-20 bg-white">
|
||||
<div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="text-center mb-12">
|
||||
<h2 class="text-3xl font-bold text-gray-900">Get in touch</h2>
|
||||
<p class="mt-4 text-xl text-gray-600">Ready to start your project? Let's talk.</p>
|
||||
</div>
|
||||
<form class="space-y-6">
|
||||
<div class="grid md:grid-cols-2 gap-6">
|
||||
<div>
|
||||
<label for="first_name" class="block text-sm font-medium text-gray-700 mb-2">First Name</label>
|
||||
<input type="text" id="first_name" class="w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent">
|
||||
</div>
|
||||
<div>
|
||||
<label for="last_name" class="block text-sm font-medium text-gray-700 mb-2">Last Name</label>
|
||||
<input type="text" id="last_name" class="w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="email" class="block text-sm font-medium text-gray-700 mb-2">Email</label>
|
||||
<input type="email" id="email" class="w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent">
|
||||
</div>
|
||||
<div>
|
||||
<label for="message" class="block text-sm font-medium text-gray-700 mb-2">Message</label>
|
||||
<textarea id="message" rows="4" class="w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent"></textarea>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<button type="submit" class="bg-blue-600 text-white px-8 py-3 rounded-md font-medium hover:bg-blue-700 transition-colors transform hover:-translate-y-1">
|
||||
Send Message
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="bg-gray-900 text-white py-12">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="grid md:grid-cols-4 gap-8">
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold mb-4">Company</h3>
|
||||
<ul class="space-y-2">
|
||||
<li><a href="#" class="text-gray-400 hover:text-white transition-colors">About</a></li>
|
||||
<li><a href="#" class="text-gray-400 hover:text-white transition-colors">Careers</a></li>
|
||||
<li><a href="#" class="text-gray-400 hover:text-white transition-colors">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold mb-4">Product</h3>
|
||||
<ul class="space-y-2">
|
||||
<li><a href="#" class="text-gray-400 hover:text-white transition-colors">Features</a></li>
|
||||
<li><a href="#" class="text-gray-400 hover:text-white transition-colors">Pricing</a></li>
|
||||
<li><a href="#" class="text-gray-400 hover:text-white transition-colors">Documentation</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold mb-4">Resources</h3>
|
||||
<ul class="space-y-2">
|
||||
<li><a href="#" class="text-gray-400 hover:text-white transition-colors">Blog</a></li>
|
||||
<li><a href="#" class="text-gray-400 hover:text-white transition-colors">Support</a></li>
|
||||
<li><a href="#" class="text-gray-400 hover:text-white transition-colors">Community</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold mb-4">Follow Us</h3>
|
||||
<div class="flex space-x-4">
|
||||
<a href="#" class="text-gray-400 hover:text-white transition-colors">
|
||||
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"/>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="#" class="text-gray-400 hover:text-white transition-colors">
|
||||
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border-t border-gray-800 mt-8 pt-8 text-center">
|
||||
<p class="text-gray-400">© 2024 Your Company. All rights reserved.</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// Mobile menu toggle
|
||||
document.getElementById('mobile-menu-button')?.addEventListener('click', function() {
|
||||
// Mobile menu implementation
|
||||
});
|
||||
|
||||
// Smooth scrolling for anchor links
|
||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||
anchor.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
||||
behavior: 'smooth'
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Intersection Observer for animations
|
||||
const observerOptions = {
|
||||
threshold: 0.1,
|
||||
rootMargin: '0px 0px -50px 0px'
|
||||
};
|
||||
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('animate-fade-in-up');
|
||||
}
|
||||
});
|
||||
}, observerOptions);
|
||||
|
||||
// Observe all sections for animation
|
||||
document.querySelectorAll('section').forEach(section => {
|
||||
observer.observe(section);
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
310
skills/modern-web-design/references/design-systems.md
Normal file
310
skills/modern-web-design/references/design-systems.md
Normal file
@@ -0,0 +1,310 @@
|
||||
# Modern Web Design Systems
|
||||
|
||||
## Design Categories
|
||||
|
||||
### 1. Minimalist Professional
|
||||
|
||||
#### Color Palette
|
||||
```css
|
||||
/* Primary Colors */
|
||||
--primary-50: #f8fafc;
|
||||
--primary-100: #f1f5f9;
|
||||
--primary-500: #64748b;
|
||||
--primary-900: #0f172a;
|
||||
|
||||
/* Accent Colors */
|
||||
--accent-500: #3b82f6;
|
||||
--accent-600: #2563eb;
|
||||
|
||||
/* Semantic Colors */
|
||||
--success: #10b981;
|
||||
--warning: #f59e0b;
|
||||
--error: #ef4444;
|
||||
```
|
||||
|
||||
#### Typography Scale
|
||||
```css
|
||||
/* Font Family */
|
||||
--font-sans: 'Inter', system-ui, sans-serif;
|
||||
--font-mono: 'JetBrains Mono', monospace;
|
||||
|
||||
/* Font Sizes */
|
||||
--text-xs: 0.75rem; /* 12px */
|
||||
--text-sm: 0.875rem; /* 14px */
|
||||
--text-base: 1rem; /* 16px */
|
||||
--text-lg: 1.125rem; /* 18px */
|
||||
--text-xl: 1.25rem; /* 20px */
|
||||
--text-2xl: 1.5rem; /* 24px */
|
||||
--text-3xl: 1.875rem; /* 30px */
|
||||
--text-4xl: 2.25rem; /* 36px */
|
||||
```
|
||||
|
||||
#### Spacing System
|
||||
```css
|
||||
--space-1: 0.25rem; /* 4px */
|
||||
--space-2: 0.5rem; /* 8px */
|
||||
--space-4: 1rem; /* 16px */
|
||||
--space-6: 1.5rem; /* 24px */
|
||||
--space-8: 2rem; /* 32px */
|
||||
--space-12: 3rem; /* 48px */
|
||||
--space-16: 4rem; /* 64px */
|
||||
--space-20: 5rem; /* 80px */
|
||||
```
|
||||
|
||||
### 2. Modern SaaS
|
||||
|
||||
#### Color Palette
|
||||
```css
|
||||
/* Primary Gradient */
|
||||
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
--primary-500: #667eea;
|
||||
--primary-600: #5a67d8;
|
||||
|
||||
/* Background Colors */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f7fafc;
|
||||
--bg-tertiary: #edf2f7;
|
||||
|
||||
/* Interactive Colors */
|
||||
--interactive-hover: #e2e8f0;
|
||||
--interactive-active: #cbd5e0;
|
||||
```
|
||||
|
||||
#### Component Elevation
|
||||
```css
|
||||
/* Shadow System */
|
||||
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
|
||||
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
|
||||
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
|
||||
```
|
||||
|
||||
#### Animation Timing
|
||||
```css
|
||||
--duration-fast: 150ms;
|
||||
--duration-normal: 250ms;
|
||||
--duration-slow: 350ms;
|
||||
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
```
|
||||
|
||||
### 3. Creative Portfolio
|
||||
|
||||
#### Experimental Color Scheme
|
||||
```css
|
||||
/* Vibrant Palette */
|
||||
--primary-pink: #ec4899;
|
||||
--primary-purple: #8b5cf6;
|
||||
--primary-blue: #06b6d4;
|
||||
--primary-green: #10b981;
|
||||
|
||||
/* Dark Mode */
|
||||
--dark-bg: #0f0f23;
|
||||
--dark-surface: #1a1a3e;
|
||||
--dark-text: #e2e8f0;
|
||||
```
|
||||
|
||||
#### Creative Typography
|
||||
```css
|
||||
/* Display Fonts */
|
||||
--font-display: 'Playfair Display', serif;
|
||||
--font-creative: 'Space Grotesk', sans-serif;
|
||||
|
||||
/* Font Weights */
|
||||
--weight-light: 300;
|
||||
--weight-normal: 400;
|
||||
--weight-medium: 500;
|
||||
--weight-bold: 700;
|
||||
--weight-black: 900;
|
||||
```
|
||||
|
||||
### 4. E-commerce Optimized
|
||||
|
||||
#### Trust & Conversion Colors
|
||||
```css
|
||||
/* Primary Brand */
|
||||
--brand-primary: #059669;
|
||||
--brand-secondary: #0d9488;
|
||||
|
||||
/* Conversion Elements */
|
||||
--cta-primary: #dc2626;
|
||||
--cta-secondary: #ea580c;
|
||||
--trust-green: #059669;
|
||||
--urgency-orange: #ea580c;
|
||||
```
|
||||
|
||||
#### Product Display
|
||||
```css
|
||||
/* Product Card */
|
||||
--product-bg: #ffffff;
|
||||
--product-border: #e5e7eb;
|
||||
--product-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
|
||||
/* Price Display */
|
||||
--price-primary: #1f2937;
|
||||
--price-sale: #dc2626;
|
||||
--price-original: #9ca3af;
|
||||
```
|
||||
|
||||
## Layout Systems
|
||||
|
||||
### Grid Patterns
|
||||
|
||||
#### 12-Column Grid
|
||||
```css
|
||||
.container {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.grid-12 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
```
|
||||
|
||||
#### Card Grid System
|
||||
```css
|
||||
.card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 2rem;
|
||||
}
|
||||
```
|
||||
|
||||
### Responsive Breakpoints
|
||||
```css
|
||||
/* Mobile First */
|
||||
@media (min-width: 640px) { /* sm */ }
|
||||
@media (min-width: 768px) { /* md */ }
|
||||
@media (min-width: 1024px) { /* lg */ }
|
||||
@media (min-width: 1280px) { /* xl */ }
|
||||
@media (min-width: 1536px) { /* 2xl */ }
|
||||
```
|
||||
|
||||
## Component Patterns
|
||||
|
||||
### Button Variants
|
||||
```css
|
||||
/* Primary Button */
|
||||
.btn-primary {
|
||||
background: var(--primary-500);
|
||||
color: white;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: 0.5rem;
|
||||
transition: all var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--primary-600);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
```
|
||||
|
||||
### Card Components
|
||||
```css
|
||||
.card {
|
||||
background: var(--bg-primary);
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: var(--shadow-md);
|
||||
overflow: hidden;
|
||||
transition: all var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: var(--shadow-xl);
|
||||
}
|
||||
```
|
||||
|
||||
### Input Styling
|
||||
```css
|
||||
.input-field {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid var(--gray-200);
|
||||
border-radius: 0.5rem;
|
||||
font-size: var(--text-base);
|
||||
transition: border-color var(--duration-fast);
|
||||
}
|
||||
|
||||
.input-field:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-500);
|
||||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
||||
}
|
||||
```
|
||||
|
||||
## Animation Library
|
||||
|
||||
### Micro-interactions
|
||||
```css
|
||||
/* Hover Lift */
|
||||
.hover-lift {
|
||||
transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
.hover-lift:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* Scale on Hover */
|
||||
.hover-scale {
|
||||
transition: transform var(--duration-normal) var(--ease-in-out);
|
||||
}
|
||||
.hover-scale:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
```
|
||||
|
||||
### Loading States
|
||||
```css
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
}
|
||||
|
||||
.loading {
|
||||
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
||||
}
|
||||
```
|
||||
|
||||
### Scroll Animations
|
||||
```css
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(30px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.animate-fade-in-up {
|
||||
animation: fadeInUp 0.6s ease-out;
|
||||
}
|
||||
```
|
||||
|
||||
## Accessibility Standards
|
||||
|
||||
### Color Contrast
|
||||
- AA Standard: 4.5:1 for normal text
|
||||
- AA Standard: 3:1 for large text
|
||||
- AAA Standard: 7:1 for normal text
|
||||
|
||||
### Focus States
|
||||
```css
|
||||
.focus-visible {
|
||||
outline: 2px solid var(--primary-500);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
```
|
||||
|
||||
### Screen Reader Support
|
||||
- Use semantic HTML elements
|
||||
- Include ARIA labels where needed
|
||||
- Maintain logical heading hierarchy
|
||||
- Provide alt text for images
|
||||
Reference in New Issue
Block a user