Initial commit
This commit is contained in:
655
skills/html-visualization/templates/infographic-template.html
Normal file
655
skills/html-visualization/templates/infographic-template.html
Normal file
@@ -0,0 +1,655 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Topic Name - Infographic</title>
|
||||
|
||||
<!-- Mermaid.js -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid@10.9.0/dist/mermaid.min.js"></script>
|
||||
|
||||
<!-- Google Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
||||
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
padding: 2rem 0;
|
||||
}
|
||||
|
||||
.infographic {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
background: white;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
padding: 4rem 2rem;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.header::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="white" opacity="0.05"/></svg>');
|
||||
background-size: 100px;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 900;
|
||||
margin-bottom: 0.5rem;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.header p {
|
||||
font-size: 1.3rem;
|
||||
opacity: 0.95;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Content sections */
|
||||
.section {
|
||||
padding: 3rem 2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.section:nth-child(even) {
|
||||
background: #f8f9fa;
|
||||
}
|
||||
|
||||
.section-number {
|
||||
position: absolute;
|
||||
top: 2rem;
|
||||
left: 2rem;
|
||||
font-size: 4rem;
|
||||
font-weight: 900;
|
||||
color: #667eea;
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
.section h2 {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 1.5rem;
|
||||
color: #667eea;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.section h3 {
|
||||
font-size: 1.5rem;
|
||||
margin: 2rem 0 1rem;
|
||||
color: #444;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.section p {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 1rem;
|
||||
text-align: center;
|
||||
max-width: 700px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* Icon grid */
|
||||
.icon-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 2rem;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.icon-item {
|
||||
text-align: center;
|
||||
padding: 1.5rem;
|
||||
border-radius: 12px;
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.icon-item:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.icon-item i {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 1rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.icon-item h4 {
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.icon-item p {
|
||||
font-size: 0.95rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/* Color variants */
|
||||
.icon-item:nth-child(4n+1) { background: #FFE6E6; }
|
||||
.icon-item:nth-child(4n+1) i { color: #e53935; }
|
||||
|
||||
.icon-item:nth-child(4n+2) { background: #E6F3FF; }
|
||||
.icon-item:nth-child(4n+2) i { color: #1e88e5; }
|
||||
|
||||
.icon-item:nth-child(4n+3) { background: #E6FFE6; }
|
||||
.icon-item:nth-child(4n+3) i { color: #43a047; }
|
||||
|
||||
.icon-item:nth-child(4n+4) { background: #FFF4E6; }
|
||||
.icon-item:nth-child(4n+4) i { color: #fb8c00; }
|
||||
|
||||
/* Stats */
|
||||
.stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||
gap: 2rem;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.stat {
|
||||
text-align: center;
|
||||
padding: 2rem 1rem;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.stat-number {
|
||||
font-size: 3rem;
|
||||
font-weight: 900;
|
||||
color: #667eea;
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 0.95rem;
|
||||
color: #666;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
/* Timeline */
|
||||
.timeline {
|
||||
position: relative;
|
||||
padding: 2rem 0;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.timeline::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 3px;
|
||||
background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.timeline-item {
|
||||
position: relative;
|
||||
margin-bottom: 3rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.timeline-item:nth-child(odd) {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.timeline-item:nth-child(even) {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.timeline-content {
|
||||
width: 45%;
|
||||
padding: 1.5rem;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.timeline-dot {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: #667eea;
|
||||
border: 4px solid white;
|
||||
border-radius: 50%;
|
||||
transform: translateX(-50%);
|
||||
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
|
||||
}
|
||||
|
||||
.timeline-content h4 {
|
||||
font-size: 1.3rem;
|
||||
margin-bottom: 0.5rem;
|
||||
color: #667eea;
|
||||
}
|
||||
|
||||
.timeline-content p {
|
||||
text-align: left;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
/* Mermaid diagrams */
|
||||
.mermaid {
|
||||
background: #fafafa;
|
||||
border-radius: 12px;
|
||||
padding: 2rem;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
/* Large diagram section */
|
||||
.diagram-section {
|
||||
padding: 3rem 1rem;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
/* CTA Section */
|
||||
.cta-section {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
padding: 4rem 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cta-section h2 {
|
||||
color: white;
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.cta-section p {
|
||||
color: white;
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 2rem;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.cta-button {
|
||||
display: inline-block;
|
||||
padding: 1rem 2rem;
|
||||
background: white;
|
||||
color: #667eea;
|
||||
text-decoration: none;
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.cta-button:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* Process flow */
|
||||
.process-flow {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 2rem 0;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.process-step {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 2rem 1rem;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.process-step::after {
|
||||
content: '→';
|
||||
position: absolute;
|
||||
right: -1.5rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 2rem;
|
||||
color: #667eea;
|
||||
}
|
||||
|
||||
.process-step:last-child::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.process-step i {
|
||||
font-size: 2.5rem;
|
||||
color: #667eea;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.process-step h4 {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.process-step p {
|
||||
font-size: 0.9rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.infographic {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.header p {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
|
||||
.timeline::before {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
.timeline-item {
|
||||
flex-direction: row !important;
|
||||
padding-left: 50px;
|
||||
}
|
||||
|
||||
.timeline-content {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.timeline-dot {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
.process-flow {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.process-step::after {
|
||||
content: '↓';
|
||||
right: auto;
|
||||
top: auto;
|
||||
bottom: -1.5rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
|
||||
/* Print styles */
|
||||
@media print {
|
||||
body {
|
||||
background: white;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.infographic {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.section {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="infographic">
|
||||
<!-- Header -->
|
||||
<div class="header">
|
||||
<h1>The Complete Guide</h1>
|
||||
<p>Understanding [Topic] in 5 Minutes</p>
|
||||
</div>
|
||||
|
||||
<!-- Introduction Section -->
|
||||
<div class="section">
|
||||
<div class="section-number">01</div>
|
||||
<h2>What is it?</h2>
|
||||
<p>
|
||||
A brief, compelling introduction to the topic. Explain in simple terms what it is and why it matters.
|
||||
</p>
|
||||
|
||||
<div class="stats">
|
||||
<div class="stat">
|
||||
<span class="stat-number">85%</span>
|
||||
<span class="stat-label">Improvement</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<span class="stat-number">10x</span>
|
||||
<span class="stat-label">Faster</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<span class="stat-number">50K+</span>
|
||||
<span class="stat-label">Users</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<span class="stat-number">99.9%</span>
|
||||
<span class="stat-label">Uptime</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Key Features Section -->
|
||||
<div class="section">
|
||||
<div class="section-number">02</div>
|
||||
<h2>Key Features</h2>
|
||||
<p>The main capabilities and benefits that make this powerful.</p>
|
||||
|
||||
<div class="icon-grid">
|
||||
<div class="icon-item">
|
||||
<i class="fas fa-rocket"></i>
|
||||
<h4>Fast Performance</h4>
|
||||
<p>Lightning-fast processing with optimized algorithms</p>
|
||||
</div>
|
||||
<div class="icon-item">
|
||||
<i class="fas fa-shield-alt"></i>
|
||||
<h4>Secure</h4>
|
||||
<p>Enterprise-grade security built in from the ground up</p>
|
||||
</div>
|
||||
<div class="icon-item">
|
||||
<i class="fas fa-puzzle-piece"></i>
|
||||
<h4>Flexible</h4>
|
||||
<p>Adapts to your needs with extensive customization</p>
|
||||
</div>
|
||||
<div class="icon-item">
|
||||
<i class="fas fa-chart-line"></i>
|
||||
<h4>Scalable</h4>
|
||||
<p>Grows with your business from startup to enterprise</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Architecture Diagram -->
|
||||
<div class="section diagram-section">
|
||||
<div class="section-number">03</div>
|
||||
<h2>How It Works</h2>
|
||||
<p>Visual overview of the architecture and data flow.</p>
|
||||
|
||||
<div class="mermaid">
|
||||
graph TB
|
||||
subgraph "User Interface"
|
||||
A[Web App]
|
||||
B[Mobile App]
|
||||
C[Desktop App]
|
||||
end
|
||||
|
||||
subgraph "API Layer"
|
||||
D[API Gateway]
|
||||
E[Load Balancer]
|
||||
end
|
||||
|
||||
subgraph "Services"
|
||||
F[Auth Service]
|
||||
G[Business Logic]
|
||||
H[Data Processing]
|
||||
end
|
||||
|
||||
subgraph "Data Storage"
|
||||
I[(Primary DB)]
|
||||
J[(Cache)]
|
||||
K[(File Storage)]
|
||||
end
|
||||
|
||||
A --> D
|
||||
B --> D
|
||||
C --> D
|
||||
D --> E
|
||||
E --> F
|
||||
E --> G
|
||||
E --> H
|
||||
F --> I
|
||||
G --> I
|
||||
G --> J
|
||||
H --> K
|
||||
|
||||
style A fill:#FFE6E6
|
||||
style B fill:#FFE6E6
|
||||
style C fill:#FFE6E6
|
||||
style D fill:#E6F3FF
|
||||
style E fill:#E6F3FF
|
||||
style F fill:#E6FFE6
|
||||
style G fill:#E6FFE6
|
||||
style H fill:#E6FFE6
|
||||
style I fill:#FFF4E6
|
||||
style J fill:#FFF4E6
|
||||
style K fill:#FFF4E6
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Process Flow -->
|
||||
<div class="section">
|
||||
<div class="section-number">04</div>
|
||||
<h2>The Process</h2>
|
||||
<p>Step-by-step workflow from start to finish.</p>
|
||||
|
||||
<div class="process-flow">
|
||||
<div class="process-step">
|
||||
<i class="fas fa-sign-in-alt"></i>
|
||||
<h4>Step 1</h4>
|
||||
<p>User initiates the process</p>
|
||||
</div>
|
||||
<div class="process-step">
|
||||
<i class="fas fa-cogs"></i>
|
||||
<h4>Step 2</h4>
|
||||
<p>System processes data</p>
|
||||
</div>
|
||||
<div class="process-step">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<h4>Step 3</h4>
|
||||
<p>Results are validated</p>
|
||||
</div>
|
||||
<div class="process-step">
|
||||
<i class="fas fa-paper-plane"></i>
|
||||
<h4>Step 4</h4>
|
||||
<p>Output is delivered</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Timeline -->
|
||||
<div class="section">
|
||||
<div class="section-number">05</div>
|
||||
<h2>Evolution Timeline</h2>
|
||||
<p>How we got here and where we're going.</p>
|
||||
|
||||
<div class="timeline">
|
||||
<div class="timeline-item">
|
||||
<div class="timeline-content">
|
||||
<h4>Phase 1: Foundation</h4>
|
||||
<p>Built the core infrastructure and basic features</p>
|
||||
</div>
|
||||
<div class="timeline-dot"></div>
|
||||
</div>
|
||||
<div class="timeline-item">
|
||||
<div class="timeline-content">
|
||||
<h4>Phase 2: Growth</h4>
|
||||
<p>Expanded capabilities and user base</p>
|
||||
</div>
|
||||
<div class="timeline-dot"></div>
|
||||
</div>
|
||||
<div class="timeline-item">
|
||||
<div class="timeline-content">
|
||||
<h4>Phase 3: Scale</h4>
|
||||
<p>Enhanced performance and reliability</p>
|
||||
</div>
|
||||
<div class="timeline-dot"></div>
|
||||
</div>
|
||||
<div class="timeline-item">
|
||||
<div class="timeline-content">
|
||||
<h4>Phase 4: Innovation</h4>
|
||||
<p>Introducing AI and advanced automation</p>
|
||||
</div>
|
||||
<div class="timeline-dot"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CTA Section -->
|
||||
<div class="cta-section">
|
||||
<h2>Ready to Get Started?</h2>
|
||||
<p>Join thousands of users already benefiting from this solution</p>
|
||||
<a href="#" class="cta-button">Learn More</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Initialize Mermaid with pastel theme
|
||||
mermaid.initialize({
|
||||
startOnLoad: true,
|
||||
theme: 'base',
|
||||
themeVariables: {
|
||||
primaryColor: '#FFE6E6',
|
||||
primaryTextColor: '#333',
|
||||
primaryBorderColor: '#999',
|
||||
lineColor: '#666',
|
||||
secondaryColor: '#E6F3FF',
|
||||
tertiaryColor: '#E6FFE6',
|
||||
quaternaryColor: '#FFF4E6',
|
||||
quinaryColor: '#F0E6FF',
|
||||
fontFamily: 'Inter, sans-serif',
|
||||
fontSize: '16px'
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user