-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
289 lines (257 loc) · 8.97 KB
/
Copy pathindex.html
File metadata and controls
289 lines (257 loc) · 8.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
---
layout: default
title: Pattern — Explore Patterns
full_width: true
---
<style>
:root {
--brand-blue: #3AAADC;
--brand-light-blue: #f4f8fa;
--text-dark: #2c3e50;
--text-light: #5a738e;
--border-color: #e6e9ed;
}
.hero-section {
background: var(--brand-light-blue);
text-align: center;
padding: 80px 20px;
}
.hero-icon {
margin-bottom: 15px;
color: var(--brand-blue);
}
.hero-icon [data-lucide] {
width: 48px;
height: 48px;
}
.carousel-card .card-icon [data-lucide] {
width: 36px;
height: 36px;
}
.hero-section h1 {
font-size: 2.8em;
color: var(--text-dark);
font-weight: 600;
margin: 0 0 20px 0;
border: none;
}
.hero-section .hero-subtitle {
font-size: 1.25em;
color: var(--text-light);
max-width: 720px;
margin: 0 auto;
line-height: 1.7;
}
.page-section {
padding: 70px 20px;
}
.bg-white { background: white; }
.bg-light { background: #f9fafb; }
.container {
max-width: 1100px;
margin: 0 auto;
}
.section-header {
text-align: center;
margin-bottom: 40px;
}
.section-header h2 {
font-size: 2em;
color: var(--text-dark);
margin-bottom: 12px;
border: none;
}
.section-header p {
font-size: 1.15em;
color: var(--text-light);
max-width: 650px;
margin: 0 auto;
line-height: 1.6;
}
/* Carousel */
.carousel-wrapper {
position: relative;
padding: 0 50px;
}
.carousel-track {
display: flex;
gap: 24px;
overflow-x: auto;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding: 10px 0;
}
.carousel-track::-webkit-scrollbar {
display: none;
}
.carousel-card {
flex: 0 0 300px;
scroll-snap-align: start;
background: white;
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 30px;
text-decoration: none;
color: inherit;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
}
.bg-white .carousel-card {
background: var(--brand-light-blue);
border-color: transparent;
}
.carousel-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.carousel-card .card-icon {
font-size: 2.2em;
margin-bottom: 15px;
}
.carousel-card h3 {
font-size: 1.3em;
color: var(--text-dark);
margin: 0 0 10px 0;
}
.carousel-card p {
color: var(--text-light);
line-height: 1.6;
font-size: 0.95em;
flex-grow: 1;
margin-bottom: 15px;
}
.carousel-card .card-meta {
font-size: 0.9em;
font-weight: 600;
color: var(--brand-blue);
}
.carousel-card .card-meta.coming {
color: #999;
font-weight: 400;
}
.carousel-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
border-radius: 50%;
background: white;
border: 1px solid var(--border-color);
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
cursor: pointer;
font-size: 1.3em;
color: var(--text-dark);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
z-index: 2;
}
.carousel-btn:hover {
background: var(--brand-light-blue);
border-color: var(--brand-blue);
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
/* Responsive */
@media (max-width: 768px) {
.hero-section { padding: 50px 20px; }
.hero-section h1 { font-size: 2em; }
.carousel-wrapper { padding: 0 10px; }
.carousel-card { flex: 0 0 260px; padding: 24px; }
.carousel-btn { display: none; }
}
</style>
<!-- Hero -->
<div class="hero-section">
<div class="hero-icon"><i data-lucide="hexagon"></i></div>
<h1>Explore Patterns</h1>
<p class="hero-subtitle">A living library of proven solutions for building vital systems. Browse curated collections or explore by domain.</p>
</div>
<!-- Curated Collections -->
<div class="page-section bg-white">
<div class="container">
<div class="section-header">
<h2>Curated Collections</h2>
<p>Guided paths through the pattern library. Each collection is a coherent set of patterns designed to work together.</p>
</div>
<div class="carousel-wrapper">
<button class="carousel-btn prev" onclick="scroll_carousel('collections', -1)">‹</button>
<div class="carousel-track" id="collections">
<a href="{{ site.baseurl }}/commons-blueprint/" class="carousel-card">
<div class="card-icon"><i data-lucide="map"></i></div>
<h3>The Commons Blueprint</h3>
<p>41 foundational patterns for designing and building resilient, self-governing organizations from the ground up.</p>
<div class="card-meta">41 Patterns — Explore Collection →</div>
</a>
<a href="{{ site.baseurl }}/commons-engineer/" class="carousel-card">
<div class="card-icon"><i data-lucide="compass"></i></div>
<h3>The Commons Engineer</h3>
<p>42 patterns for developing the capabilities, character, and community to see, design, build, and steward living systems.</p>
<div class="card-meta">42 Patterns — Explore Collection →</div>
</a>
<!-- Future collections will appear here as new carousel cards -->
</div>
<button class="carousel-btn next" onclick="scroll_carousel('collections', 1)">›</button>
</div>
</div>
</div>
<!-- Commons Domains -->
<div class="page-section bg-light">
<div class="container">
<div class="section-header">
<h2>Commons Domains</h2>
<p>Patterns are organized by the living systems they serve. Each domain represents a different scale of human endeavor.</p>
</div>
<div class="carousel-wrapper">
<button class="carousel-btn prev" onclick="scroll_carousel('domains', -1)">‹</button>
{% comment %}Count patterns per commons_domain (checking both classification and ontology nesting){% endcomment %}
{% assign business_count = 0 %}{% assign urban_count = 0 %}{% assign ecology_count = 0 %}{% assign life_count = 0 %}
{% for p in site.patterns %}
{% assign cd = p.commons_domain %}
{% assign cd_class = p.classification.commons_domain %}
{% assign cd_onto = p.ontology.commons_domain %}
{% if cd contains 'business' or cd contains 'startup' or cd contains 'security' or cd contains 'platform' or cd_class contains 'business' or cd_class contains 'startup' or cd_class contains 'security' or cd_class contains 'platform' or cd_onto contains 'business' or cd_onto contains 'startup' or cd_onto contains 'security' or cd_onto contains 'platform' %}{% assign business_count = business_count | plus: 1 %}{% endif %}
{% if cd contains 'urban' or cd_class contains 'urban' or cd_onto contains 'urban' %}{% assign urban_count = urban_count | plus: 1 %}{% endif %}
{% if cd contains 'ecology' or cd_class contains 'ecology' or cd_onto contains 'ecology' %}{% assign ecology_count = ecology_count | plus: 1 %}{% endif %}
{% if cd contains 'life' or cd_class contains 'life' or cd_onto contains 'life' %}{% assign life_count = life_count | plus: 1 %}{% endif %}
{% endfor %}
<div class="carousel-track" id="domains">
<a href="{{ site.baseurl }}/business/" class="carousel-card">
<div class="card-icon"><i data-lucide="building-2"></i></div>
<h3>Business</h3>
<p>Patterns for designing vital organizations, governance models, value streams, and collaborative ecosystems.</p>
<div class="card-meta">{{ business_count }} Patterns — Browse Domain →</div>
</a>
<a href="{{ site.baseurl }}/urban/" class="carousel-card">
<div class="card-icon"><i data-lucide="landmark"></i></div>
<h3>Urban</h3>
<p>Patterns for cultivating resilient cities, neighborhoods, public spaces, and civic infrastructure.</p>
<div class="card-meta">{{ urban_count }} Patterns — Browse Domain →</div>
</a>
<a href="{{ site.baseurl }}/ecology/" class="carousel-card">
<div class="card-icon"><i data-lucide="trees"></i></div>
<h3>Ecology</h3>
<p>Patterns for stewarding regenerative ecosystems, bioregional economies, and natural commons.</p>
<div class="card-meta">{{ ecology_count }} Patterns — Browse Domain →</div>
</a>
<a href="{{ site.baseurl }}/life/" class="carousel-card">
<div class="card-icon"><i data-lucide="sprout"></i></div>
<h3>Life</h3>
<p>Core patterns of living systems — the deep structures that underpin all other domains.</p>
<div class="card-meta">{{ life_count }} Patterns — Browse Domain →</div>
</a>
</div>
<button class="carousel-btn next" onclick="scroll_carousel('domains', 1)">›</button>
</div>
</div>
</div>
<script>
function scroll_carousel(id, direction) {
var track = document.getElementById(id);
track.scrollBy({ left: 324 * direction, behavior: 'smooth' });
}
</script>