Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:40:19 +08:00
commit 87a970c077
26 changed files with 9131 additions and 0 deletions

View File

@@ -0,0 +1,305 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>[DOCUMENT_TITLE]</title>
<style>
/* ===== RESET & BASE ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 40px 20px;
min-height: 100vh;
}
/* ===== CONTAINER ===== */
.container {
max-width: 1400px;
margin: 0 auto;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
padding: 40px;
}
/* ===== TYPOGRAPHY ===== */
h1 {
text-align: center;
color: #2d3748;
font-size: 2.5em;
margin-bottom: 10px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
text-align: center;
color: #718096;
font-size: 1.1em;
margin-bottom: 40px;
}
h2.section-title {
font-size: 1.8em;
color: #2d3748;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 3px solid #667eea;
}
h3 {
font-size: 1.4em;
color: #2d3748;
margin-bottom: 15px;
}
/* ===== LAYOUT SECTIONS ===== */
.section {
margin-bottom: 60px;
}
.diagram-container {
background: #f7fafc;
border-radius: 15px;
padding: 30px;
margin: 20px 0;
border: 2px solid #e2e8f0;
}
/* ===== METRIC CARDS ===== */
.metric-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin: 30px 0;
}
.metric-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 25px;
border-radius: 15px;
text-align: center;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.metric-value {
font-size: 2.5em;
font-weight: bold;
margin-bottom: 5px;
}
.metric-label {
font-size: 0.9em;
opacity: 0.9;
}
/* ===== CODE BLOCKS ===== */
.code-block {
background: #2d3748;
color: #e2e8f0;
padding: 20px;
border-radius: 10px;
font-family: 'Courier New', monospace;
font-size: 0.9em;
overflow-x: auto;
margin: 20px 0;
line-height: 1.6;
}
.highlight {
color: #fbbf24;
font-weight: bold;
}
/* ===== EXAMPLE BOXES ===== */
.example-box {
background: #fff;
border: 2px solid #667eea;
border-radius: 10px;
padding: 20px;
margin: 20px 0;
}
.example-title {
font-weight: bold;
color: #667eea;
margin-bottom: 10px;
font-size: 1.1em;
}
/* ===== LEGEND ===== */
.legend {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin: 20px 0;
padding: 20px;
background: #edf2f7;
border-radius: 10px;
}
.legend-item {
display: flex;
align-items: center;
gap: 10px;
}
.legend-box {
width: 30px;
height: 30px;
border-radius: 5px;
border: 2px solid #2d3748;
}
/* ===== SVG STYLING ===== */
svg {
width: 100%;
height: auto;
}
svg text {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* ===== FOOTER ===== */
.footer {
text-align: center;
margin-top: 60px;
padding: 30px;
background: #f7fafc;
border-radius: 10px;
}
.footer p {
margin: 10px 0;
}
.footer-main {
font-size: 1.1em;
color: #4a5568;
font-weight: 500;
}
.footer-sub {
font-size: 0.95em;
color: #718096;
}
.footer-meta {
font-size: 0.85em;
color: #a0aec0;
margin-top: 15px;
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
.container {
padding: 20px;
}
h1 {
font-size: 1.8em;
}
.section-title {
font-size: 1.4em;
}
.metric-grid {
grid-template-columns: 1fr;
}
.metric-value {
font-size: 2em;
}
.legend {
flex-direction: column;
gap: 10px;
}
}
/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
</style>
</head>
<body>
<div class="container">
<h1>[DOCUMENT_TITLE]</h1>
<p class="subtitle">[DOCUMENT_SUBTITLE]</p>
<!-- METRIC CARDS SECTION (Optional) -->
<div class="metric-grid">
<div class="metric-card">
<div class="metric-value">[VALUE_1]</div>
<div class="metric-label">[LABEL_1]</div>
</div>
<div class="metric-card">
<div class="metric-value">[VALUE_2]</div>
<div class="metric-label">[LABEL_2]</div>
</div>
<div class="metric-card">
<div class="metric-value">[VALUE_3]</div>
<div class="metric-label">[LABEL_3]</div>
</div>
</div>
<!-- MAIN CONTENT SECTIONS -->
<div class="section">
<h2 class="section-title">1. [SECTION_TITLE]</h2>
<div class="diagram-container">
<!-- SVG diagrams go here -->
<svg viewBox="0 0 1200 600">
<!-- SVG content -->
</svg>
</div>
<div class="example-box">
<div class="example-title">[EXAMPLE_TITLE]</div>
<p>[EXAMPLE_CONTENT]</p>
</div>
<div class="code-block">
<span class="highlight">[HIGHLIGHTED_TERM]:</span> [CODE_CONTENT]
</div>
</div>
<!-- LEGEND SECTION (Optional) -->
<div class="legend">
<div class="legend-item">
<div class="legend-box" style="background: #4299e1;"></div>
<span>[LEGEND_ITEM_1]</span>
</div>
<div class="legend-item">
<div class="legend-box" style="background: #48bb78;"></div>
<span>[LEGEND_ITEM_2]</span>
</div>
<div class="legend-item">
<div class="legend-box" style="background: #f59e0b;"></div>
<span>[LEGEND_ITEM_3]</span>
</div>
</div>
<!-- FOOTER -->
<div class="footer">
<p class="footer-main"><strong>[FOOTER_MAIN_TEXT]</strong></p>
<p class="footer-sub">[FOOTER_SUB_TEXT]</p>
<p class="footer-meta">[FOOTER_META_TEXT]</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,264 @@
<!-- FLOWCHART COMPONENTS LIBRARY -->
<!-- Copy and customize these SVG patterns for process flow diagrams -->
<svg viewBox="0 0 1200 800" style="width: 100%; height: auto;">
<!-- ===== ARROW MARKER DEFINITIONS ===== -->
<!-- Always include in <defs> section -->
<defs>
<!-- Standard arrow -->
<marker id="arrowhead" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#2d3748"/>
</marker>
<!-- Colored arrows for different paths -->
<marker id="arrowhead-success" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#48bb78"/>
</marker>
<marker id="arrowhead-error" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#f56565"/>
</marker>
<marker id="arrowhead-warning" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#f59e0b"/>
</marker>
</defs>
<!-- ===== BASIC SHAPES ===== -->
<!-- Rounded Rectangle (Process Box) -->
<rect x="50" y="50" width="200" height="100" rx="10"
fill="#4299e1" stroke="#2b6cb0" stroke-width="3"/>
<text x="150" y="95" text-anchor="middle" fill="white" font-size="16" font-weight="bold">
Process Step
</text>
<text x="150" y="115" text-anchor="middle" fill="white" font-size="12">
Subtitle or detail
</text>
<!-- Circle (Start/End Node) -->
<circle cx="400" cy="100" r="50"
fill="#48bb78" stroke="#2f855a" stroke-width="3" opacity="0.9"/>
<text x="400" y="105" text-anchor="middle" fill="white" font-size="16" font-weight="bold">
START
</text>
<!-- Diamond (Decision Node) -->
<path d="M 600 50 L 700 50 L 750 100 L 700 150 L 500 150 L 450 100 Z"
fill="#fbbf24" stroke="#d97706" stroke-width="3"/>
<text x="600" y="95" text-anchor="middle" font-size="14" font-weight="bold">
Decision?
</text>
<text x="600" y="115" text-anchor="middle" font-size="11">
Yes/No
</text>
<!-- Hexagon (Preparation/Setup) -->
<path d="M 900 75 L 1050 75 L 1100 100 L 1050 125 L 900 125 L 850 100 Z"
fill="#9f7aea" stroke="#6b46c1" stroke-width="3"/>
<text x="975" y="105" text-anchor="middle" fill="white" font-size="14" font-weight="bold">
Setup/Config
</text>
<!-- ===== ARROWS & CONNECTORS ===== -->
<!-- Straight arrow (horizontal) -->
<path d="M 250 100 L 350 100" stroke="#2d3748" stroke-width="3"
marker-end="url(#arrowhead)"/>
<!-- Straight arrow (vertical) -->
<path d="M 600 150 L 600 220" stroke="#2d3748" stroke-width="3"
marker-end="url(#arrowhead)"/>
<!-- L-shaped connector -->
<path d="M 750 100 L 850 100 L 850 200 L 950 200" stroke="#2d3748" stroke-width="3"
fill="none" marker-end="url(#arrowhead)"/>
<!-- Curved connector (bezier) -->
<path d="M 150 150 Q 150 250 300 250" stroke="#2d3748" stroke-width="3"
fill="none" marker-end="url(#arrowhead)"/>
<!-- Dashed line (optional/uncertain path) -->
<path d="M 400 150 L 400 250" stroke="#cbd5e0" stroke-width="2"
stroke-dasharray="5,5" marker-end="url(#arrowhead)"/>
<!-- ===== LABELS ON ARROWS ===== -->
<!-- YES/NO labels for decision branches -->
<text x="770" y="90" text-anchor="middle" fill="#2d3748" font-weight="bold" font-size="13">
YES
</text>
<text x="420" y="140" text-anchor="middle" fill="#2d3748" font-weight="bold" font-size="13">
NO
</text>
<!-- ===== STATUS BOXES ===== -->
<!-- Success status -->
<g id="success-box">
<rect x="100" y="300" width="180" height="100" rx="10"
fill="#48bb78" stroke="#2f855a" stroke-width="3"/>
<text x="190" y="335" text-anchor="middle" fill="white" font-size="15" font-weight="bold">
✓ SUCCESS
</text>
<text x="190" y="360" text-anchor="middle" fill="white" font-size="12">
Operation Complete
</text>
<text x="190" y="380" text-anchor="middle" fill="white" font-size="11">
Additional details
</text>
</g>
<!-- Error status -->
<g id="error-box">
<rect x="350" y="300" width="180" height="100" rx="10"
fill="#f56565" stroke="#c53030" stroke-width="3"/>
<text x="440" y="335" text-anchor="middle" fill="white" font-size="15" font-weight="bold">
✗ ERROR
</text>
<text x="440" y="360" text-anchor="middle" fill="white" font-size="12">
Operation Failed
</text>
<text x="440" y="380" text-anchor="middle" fill="white" font-size="11">
Error details
</text>
</g>
<!-- Warning/Uncertain status -->
<g id="warning-box">
<rect x="600" y="300" width="180" height="100" rx="10"
fill="#f59e0b" stroke="#d97706" stroke-width="3"/>
<text x="690" y="335" text-anchor="middle" fill="white" font-size="15" font-weight="bold">
⚠ WARNING
</text>
<text x="690" y="360" text-anchor="middle" fill="white" font-size="12">
Needs Attention
</text>
<text x="690" y="380" text-anchor="middle" fill="white" font-size="11">
Warning details
</text>
</g>
<!-- In-Progress status -->
<g id="progress-box">
<rect x="850" y="300" width="180" height="100" rx="10"
fill="#ed8936" stroke="#c05621" stroke-width="3"/>
<text x="940" y="335" text-anchor="middle" fill="white" font-size="15" font-weight="bold">
⟳ IN PROGRESS
</text>
<text x="940" y="360" text-anchor="middle" fill="white" font-size="12">
Processing...
</text>
<text x="940" y="380" text-anchor="middle" fill="white" font-size="11">
Status details
</text>
</g>
<!-- ===== SWIMLANES ===== -->
<!-- Background rectangles for different process areas -->
<rect x="50" y="450" width="350" height="300" rx="10"
fill="#e6f2ff" stroke="#4299e1" stroke-width="2" opacity="0.3"/>
<text x="225" y="480" text-anchor="middle" font-size="16" font-weight="bold" fill="#2d3748">
Swimlane 1: Frontend
</text>
<rect x="450" y="450" width="350" height="300" rx="10"
fill="#e6ffe6" stroke="#48bb78" stroke-width="2" opacity="0.3"/>
<text x="625" y="480" text-anchor="middle" font-size="16" font-weight="bold" fill="#2d3748">
Swimlane 2: Backend
</text>
<rect x="850" y="450" width="300" height="300" rx="10"
fill="#fff5e6" stroke="#f59e0b" stroke-width="2" opacity="0.3"/>
<text x="1000" y="480" text-anchor="middle" font-size="16" font-weight="bold" fill="#2d3748">
Swimlane 3: Database
</text>
<!-- ===== GROUPINGS ===== -->
<!-- Dashed box for related items -->
<rect x="100" y="500" width="250" height="150" rx="8"
fill="none" stroke="#9f7aea" stroke-width="2" stroke-dasharray="8,4"/>
<text x="225" y="525" text-anchor="middle" font-size="13" fill="#6b46c1" font-weight="bold">
Related Process Group
</text>
<!-- Small process boxes within swimlane -->
<rect x="120" y="540" width="100" height="60" rx="8"
fill="#4299e1" stroke="#2b6cb0" stroke-width="2"/>
<text x="170" y="575" text-anchor="middle" fill="white" font-size="12">
Sub-process
</text>
<rect x="230" y="540" width="100" height="60" rx="8"
fill="#4299e1" stroke="#2b6cb0" stroke-width="2"/>
<text x="280" y="575" text-anchor="middle" fill="white" font-size="12">
Sub-process
</text>
<path d="M 220 570 L 230 570" stroke="#2d3748" stroke-width="2"
marker-end="url(#arrowhead)"/>
<!-- ===== NOTES/ANNOTATIONS ===== -->
<!-- Callout box with line -->
<rect x="900" y="550" width="150" height="80" rx="5"
fill="#fff" stroke="#cbd5e0" stroke-width="2"/>
<text x="975" y="575" text-anchor="middle" font-size="11" fill="#4a5568">
Note: This is an
</text>
<text x="975" y="595" text-anchor="middle" font-size="11" fill="#4a5568">
annotation or
</text>
<text x="975" y="615" text-anchor="middle" font-size="11" fill="#4a5568">
additional detail
</text>
<!-- Leader line from callout to target -->
<path d="M 900 590 L 850 590" stroke="#cbd5e0" stroke-width="1"
stroke-dasharray="3,3"/>
</svg>
<!-- ===== USAGE EXAMPLES ===== -->
<!--
SIMPLE LINEAR FLOW:
Start → Process → Decision → (Yes → Success) or (No → Error)
<svg viewBox="0 0 1200 400">
<defs>
<marker id="arrowhead" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
<polygon points="0 0, 10 3, 0 6" fill="#2d3748"/>
</marker>
</defs>
<circle cx="150" cy="200" r="50" fill="#48bb78" stroke="#2f855a" stroke-width="3"/>
<text x="150" y="205" text-anchor="middle" fill="white" font-weight="bold">START</text>
<path d="M 200 200 L 300 200" stroke="#2d3748" stroke-width="3" marker-end="url(#arrowhead)"/>
<rect x="300" y="150" width="200" height="100" rx="10" fill="#4299e1" stroke="#2b6cb0" stroke-width="3"/>
<text x="400" y="205" text-anchor="middle" fill="white" font-weight="bold">Process Step</text>
<path d="M 500 200 L 600 200" stroke="#2d3748" stroke-width="3" marker-end="url(#arrowhead)"/>
<path d="M 700 150 L 800 150 L 850 200 L 800 250 L 600 250 L 550 200 Z"
fill="#fbbf24" stroke="#d97706" stroke-width="3"/>
<text x="700" y="205" text-anchor="middle" font-weight="bold">Decision?</text>
<path d="M 850 200 L 950 200" stroke="#2d3748" stroke-width="3" marker-end="url(#arrowhead)"/>
<text x="895" y="190" text-anchor="middle" fill="#2d3748" font-weight="bold">YES</text>
<rect x="950" y="170" width="150" height="60" rx="10" fill="#48bb78" stroke="#2f855a" stroke-width="3"/>
<text x="1025" y="205" text-anchor="middle" fill="white" font-weight="bold">SUCCESS</text>
<path d="M 700 250 L 700 320 L 1000 320" stroke="#f56565" stroke-width="3" marker-end="url(#arrowhead)"/>
<text x="720" y="290" text-anchor="start" fill="#2d3748" font-weight="bold">NO</text>
<rect x="1000" y="290" width="150" height="60" rx="10" fill="#f56565" stroke="#c53030" stroke-width="3"/>
<text x="1075" y="325" text-anchor="middle" fill="white" font-weight="bold">ERROR</text>
</svg>
-->

After

Width:  |  Height:  |  Size: 10 KiB