-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
872 lines (785 loc) · 32.6 KB
/
index.html
File metadata and controls
872 lines (785 loc) · 32.6 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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>DisSModel — Discrete Spatial Modeling Ecosystem</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@300;400;600;700;800&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--blue-dark: #1a2e4a;
--blue-mid: #2e6fb5;
--blue-light: #4a9fd4;
--green: #4a9e4a;
--green-light:#6abf6a;
--amber: #e8a020;
--red: #c0392b;
--bg: #f5f7f2;
--bg-card: #ffffff;
--text: #1a2e4a;
--muted: #5a7090;
--border: #dde4ee;
}
html { scroll-behavior: smooth; }
body {
font-family: 'Outfit', sans-serif;
background: var(--bg);
color: var(--text);
overflow-x: hidden;
}
/* ── NAV ── */
nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
display: flex; align-items: center; justify-content: space-between;
padding: 0 3rem;
height: 64px;
background: rgba(245,247,242,0.88);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.nav-logo {
display: flex; align-items: center; gap: 10px;
font-size: 1.15rem; font-weight: 700; color: var(--blue-dark);
text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
text-decoration: none; color: var(--muted);
font-size: 0.9rem; font-weight: 500;
transition: color .2s;
}
.nav-links a:hover { color: var(--blue-mid); }
.nav-cta {
background: var(--blue-mid); color: #fff !important;
padding: 6px 18px; border-radius: 6px;
transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; color: #fff !important; }
/* ── HERO ── */
.hero {
min-height: 100vh;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
text-align: center;
padding: 120px 2rem 80px;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute; inset: 0;
background-image:
linear-gradient(var(--border) 1px, transparent 1px),
linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 40px 40px;
opacity: .5;
pointer-events: none;
}
.blob {
position: absolute; border-radius: 50%;
filter: blur(80px); pointer-events: none; opacity: .18;
}
.blob-1 {
width: 500px; height: 500px;
background: var(--blue-mid);
top: -100px; left: -150px;
animation: drift 12s ease-in-out infinite alternate;
}
.blob-2 {
width: 400px; height: 400px;
background: var(--green);
bottom: 0; right: -100px;
animation: drift 15s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
from { transform: translate(0,0) scale(1); }
to { transform: translate(40px, 30px) scale(1.08); }
}
.hero-badge {
display: inline-flex; align-items: center; gap: 8px;
background: #e8f4e8; border: 1px solid #b8ddb8;
color: var(--green); border-radius: 999px;
font-size: .78rem; font-weight: 600; letter-spacing: .04em;
padding: 5px 14px; margin-bottom: 2rem;
animation: fadeUp .6s ease both;
}
.hero-badge span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; display: inline-block; }
.hero-logo-wrap {
display: flex; align-items: center; justify-content: center; gap: 20px;
margin-bottom: 1.5rem;
animation: fadeUp .7s .1s ease both;
}
.hero-sub {
font-size: clamp(1rem, 2.5vw, 1.25rem);
color: var(--muted); font-weight: 300;
max-width: 600px; margin: 1.2rem auto 0;
line-height: 1.6;
animation: fadeUp .7s .2s ease both;
}
.hero-actions {
display: flex; gap: 1rem; flex-wrap: wrap;
justify-content: center; margin-top: 2.5rem;
animation: fadeUp .7s .3s ease both;
}
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 12px 28px; border-radius: 8px;
font-family: 'Outfit', sans-serif;
font-size: .95rem; font-weight: 600;
text-decoration: none; transition: all .2s;
cursor: pointer;
}
.btn-primary {
background: var(--blue-dark); color: #fff;
box-shadow: 0 4px 20px rgba(26,46,74,.25);
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); }
.btn-secondary {
background: #fff; color: var(--blue-dark);
border: 1.5px solid var(--border);
box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.btn-secondary:hover { border-color: var(--blue-mid); transform: translateY(-2px); }
.pip-block {
margin-top: 2.5rem;
animation: fadeUp .7s .4s ease both;
}
.pip-cmd {
display: inline-flex; align-items: center; gap: 12px;
background: var(--blue-dark); color: #e0eeff;
font-family: 'DM Mono', monospace; font-size: .9rem;
padding: 12px 24px; border-radius: 8px;
border: 1px solid rgba(255,255,255,.08);
}
.pip-cmd .pip-label { color: var(--green-light); }
.copy-btn {
background: none; border: none; cursor: pointer;
color: #7aa8d4; font-size: 1rem;
padding: 2px 4px; border-radius: 4px;
transition: color .2s;
}
.copy-btn:hover { color: #fff; }
.copy-confirm { font-size: .75rem; color: var(--green-light); opacity: 0; transition: opacity .3s; }
.copy-confirm.show { opacity: 1; }
/* ── STATS STRIP ── */
.stats-strip {
width: 100%;
background: var(--blue-dark);
padding: 1.5rem 2rem;
}
.stats-inner {
max-width: 1120px; margin: 0 auto;
display: grid; grid-template-columns: repeat(4, 1fr);
gap: 1rem;
}
.stat-item {
text-align: center;
border-right: 1px solid rgba(255,255,255,.1);
padding: 0.5rem 1rem;
}
.stat-item:last-child { border-right: none; }
.stat-number {
font-size: clamp(1.6rem, 3vw, 2.4rem);
font-weight: 800;
color: var(--green-light);
line-height: 1;
font-family: 'DM Mono', monospace;
}
.stat-label {
font-size: .78rem; color: #7aa8d4;
font-weight: 500; margin-top: .3rem;
letter-spacing: .04em;
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
/* ── SECTION COMMONS ── */
section { padding: 100px 2rem; }
.section-label {
font-size: .75rem; font-weight: 700; letter-spacing: .12em;
text-transform: uppercase; color: var(--blue-mid);
margin-bottom: .75rem;
}
.section-title {
font-size: clamp(1.8rem, 4vw, 2.8rem);
font-weight: 800; line-height: 1.1;
letter-spacing: -.02em; color: var(--blue-dark);
margin-bottom: 1rem;
}
.section-desc {
color: var(--muted); font-size: 1.05rem;
max-width: 560px; line-height: 1.7;
}
.container { max-width: 1120px; margin: 0 auto; }
/* ── REPOS ── */
#repos { background: var(--bg); }
.repos-header { margin-bottom: 3.5rem; }
/* loading state */
.repos-loading {
display: flex; align-items: center; gap: 12px;
color: var(--muted); font-size: .95rem;
padding: 2rem 0;
}
.spinner {
width: 20px; height: 20px;
border: 2px solid var(--border);
border-top-color: var(--blue-mid);
border-radius: 50%;
animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.repos-error {
background: #fff3f3; border: 1px solid #f5c6c6;
border-radius: 10px; padding: 1.25rem 1.5rem;
color: var(--red); font-size: .9rem;
}
.repos-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
}
.repo-card {
background: #fff;
border: 1.5px solid var(--border);
border-radius: 14px;
padding: 1.75rem;
text-decoration: none; color: inherit;
display: flex; flex-direction: column; gap: .75rem;
transition: all .25s;
position: relative; overflow: hidden;
}
.repo-card::after {
content: '';
position: absolute; top: 0; left: 0; right: 0;
height: 3px;
background: linear-gradient(90deg, var(--blue-mid), var(--green));
transform: scaleX(0); transform-origin: left;
transition: transform .3s;
}
.repo-card:hover { border-color: var(--blue-mid); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,46,74,.1); }
.repo-card:hover::after { transform: scaleX(1); }
.repo-card.featured {
background: var(--blue-dark); color: #fff;
border-color: transparent;
grid-column: span 2;
}
.repo-card.featured .repo-desc { color: #a0c0e0; }
.repo-card.featured .repo-tag { background: rgba(255,255,255,.12); color: #c0dcf4; }
.repo-card.featured .repo-meta { color: #5a8ab8; }
.repo-card.featured::after { background: linear-gradient(90deg, var(--green-light), var(--blue-light)); }
.repo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.repo-icon {
width: 44px; height: 44px; border-radius: 10px;
display: flex; align-items: center; justify-content: center;
font-size: 1.4rem; flex-shrink: 0;
background: #e8f0fb;
}
.repo-card.featured .repo-icon { background: rgba(255,255,255,.15); }
.repo-arrow { color: var(--muted); font-size: 1.1rem; transition: transform .2s; }
.repo-card:hover .repo-arrow { transform: translate(3px,-3px); }
.repo-card.featured .repo-arrow { color: #a0c0e0; }
.repo-name {
font-size: 1.05rem; font-weight: 700;
font-family: 'DM Mono', monospace;
color: var(--blue-dark);
}
.repo-card.featured .repo-name { color: #fff; }
.repo-desc { font-size: .9rem; color: var(--muted); line-height: 1.6; flex: 1; }
.repo-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }
.repo-tag {
font-size: .72rem; font-weight: 600; letter-spacing: .04em;
background: var(--border); color: var(--muted);
padding: 3px 10px; border-radius: 999px;
}
.repo-bench { display: flex; gap: .75rem; flex-wrap: wrap; }
.bench-pill {
display: inline-flex; align-items: center; gap: 5px;
background: rgba(74,158,74,.12); color: var(--green);
border: 1px solid rgba(74,158,74,.25);
font-size: .72rem; font-weight: 700;
padding: 3px 10px; border-radius: 999px;
font-family: 'DM Mono', monospace;
}
.repo-meta {
font-size: .78rem; color: var(--muted);
display: flex; align-items: center; gap: 12px;
}
.repo-meta-item { display: flex; align-items: center; gap: 4px; }
/* ── ARCHITECTURE ── */
#architecture { background: #fff; }
.arch-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.arch-diagram {
background: var(--blue-dark);
border-radius: 16px;
padding: 2rem;
font-family: 'DM Mono', monospace;
font-size: .82rem; line-height: 1.9;
color: #a0c8e8;
border: 1px solid rgba(255,255,255,.06);
box-shadow: 0 20px 60px rgba(26,46,74,.2);
white-space: pre;
overflow-x: auto;
}
.arch-diagram .c-green { color: var(--green-light); }
.arch-diagram .c-blue { color: #7ac0f4; }
.arch-diagram .c-white { color: #e8f4ff; font-weight: 500; }
.arch-diagram .c-dim { color: #4a6a8a; }
.arch-points { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.arch-point { display: flex; gap: 1rem; }
.arch-dot {
width: 10px; height: 10px; border-radius: 50%;
flex-shrink: 0; margin-top: 6px;
}
.arch-dot.blue { background: var(--blue-mid); }
.arch-dot.green { background: var(--green); }
.arch-dot.amber { background: var(--amber); }
.arch-point-text h4 { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.arch-point-text p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
/* ── USE CASE ── */
#usecase { background: var(--bg); }
.usecase-sub {
display: grid;
grid-template-columns: 280px 1fr;
gap: 2rem;
align-items: start;
margin-bottom: 1rem;
}
.usecase-sub-label p {
font-size: .88rem; color: var(--muted);
line-height: 1.6; margin-top: .6rem;
}
.sub-badge {
display: inline-block;
font-size: .75rem; font-weight: 700; letter-spacing: .08em;
text-transform: uppercase; padding: 4px 12px;
border-radius: 6px;
}
.sub-badge.blue { background: #e8f0fb; color: var(--blue-mid); }
.sub-badge.green { background: #e8f4e8; color: var(--green); }
.sub-badge.gray { background: var(--border); color: var(--muted); }
.usecase-arrow {
font-size: 1.5rem; color: var(--border);
text-align: center; padding: .5rem 0 1.5rem;
padding-left: 280px;
}
.usecase-code {
background: var(--blue-dark);
border-radius: 10px;
padding: 1.5rem 1.75rem;
font-family: 'DM Mono', monospace; font-size: .8rem; line-height: 1.85;
color: #a0c8e8;
white-space: pre;
overflow-x: auto;
border: 1px solid rgba(255,255,255,.06);
box-shadow: 0 8px 30px rgba(26,46,74,.12);
}
.tabs-wrap { width: 100%; }
.tab-btns { display: flex; gap: .5rem; margin-bottom: 0; }
.tab-btn {
background: var(--bg); border: 1.5px solid var(--border);
border-bottom: none;
color: var(--muted); font-family: 'Outfit', sans-serif;
font-size: .85rem; font-weight: 600;
padding: 7px 18px; border-radius: 8px 8px 0 0;
cursor: pointer; transition: all .2s;
}
.tab-btn.active { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.tab-btn:not(.active):hover { border-color: var(--blue-mid); color: var(--blue-mid); }
.tab-panel { border-radius: 0 8px 8px 8px !important; }
/* ── FOOTER ── */
footer {
background: var(--blue-dark); color: #a0c0e0;
padding: 60px 2rem 40px;
}
.footer-inner {
max-width: 1120px; margin: 0 auto;
display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
font-size: .8rem; font-weight: 700; letter-spacing: .1em;
text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: #7a9ab8; text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
max-width: 1120px; margin: 2.5rem auto 0;
padding-top: 1.5rem;
border-top: 1px solid rgba(255,255,255,.08);
display: flex; justify-content: space-between; align-items: center;
font-size: .8rem; color: #4a6a88;
}
/* repo list in footer — populated dynamically */
#footer-repo-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 768px) {
nav { padding: 0 1.25rem; }
.nav-links { display: none; }
.repo-card.featured { grid-column: span 1; }
.arch-wrap { grid-template-columns: 1fr; gap: 2rem; }
.footer-inner { grid-template-columns: 1fr; gap: 2rem; }
.footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
.stats-inner { grid-template-columns: repeat(2,1fr); }
.stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.usecase-sub { grid-template-columns: 1fr; }
.usecase-arrow { padding-left: 0; }
}
</style>
</head>
<body>
<!-- ── NAV ── -->
<nav>
<a class="nav-logo" href="#">
<img src="dissmodel_transparent.png" alt="DisSModel" style="width:32px;height:32px;object-fit:contain;">
DisSModel
</a>
<ul class="nav-links">
<li><a href="#repos">Repositories</a></li>
<li><a href="#architecture">Architecture</a></li>
<li><a href="#usecase">Use Cases</a></li>
<li><a href="https://dissmodel.github.io/dissmodel/" class="nav-cta">Documentation</a></li>
</ul>
</nav>
<!-- ── HERO ── -->
<section class="hero">
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
<div class="hero-badge"><span></span> Open Source · MIT License · PyPI</div>
<div class="hero-logo-wrap">
<img src="dissmodel_transparent.png" alt="DisSModel — Discrete Spatial Modeling Ecosystem" style="height:190px; object-fit:contain;">
</div>
<p class="hero-sub" style="margin-top:0.5rem;">
A modular Python ecosystem for spatially explicit dynamic modeling —
Cellular Automata, System Dynamics, and Land Use & Cover Change simulation.
</p>
<div class="hero-actions">
<a href="https://dissmodel.github.io/dissmodel/" class="btn btn-primary">📖 Documentation</a>
<a href="https://github.com/DisSModel" class="btn btn-secondary">⭐ GitHub Organization</a>
</div>
<div class="pip-block">
<div class="pip-cmd">
<span class="pip-label">$</span>
<span id="pip-text">pip install dissmodel</span>
<button class="copy-btn" onclick="copyPip()" title="Copy to clipboard">⧉</button>
<span class="copy-confirm" id="copy-confirm">Copied!</span>
</div>
</div>
</section>
<!-- ── STATS STRIP ── -->
<div class="stats-strip">
<div class="stats-inner" id="stats-strip">
<!-- populated by JS after GitHub fetch -->
<div class="stat-item"><div class="stat-number">—</div><div class="stat-label">Repositories</div></div>
<div class="stat-item"><div class="stat-number">100k</div><div class="stat-label">Cells · BR-MANGUE</div></div>
<div class="stat-item"><div class="stat-number">100m</div><div class="stat-label">Resolution</div></div>
<div class="stat-item"><div class="stat-number">MIT</div><div class="stat-label">License</div></div>
</div>
</div>
<!-- ── REPOS ── -->
<section id="repos">
<div class="container">
<div class="repos-header">
<p class="section-label">Ecosystem</p>
<h2 class="section-title" id="repos-title">Repositories</h2>
<p class="section-desc">Each package has a focused role. Use the core alone or combine extensions for complex geospatial simulations.</p>
</div>
<div id="repos-container">
<div class="repos-loading">
<div class="spinner"></div>
Loading repositories from GitHub…
</div>
</div>
</div>
</section>
<!-- ── ARCHITECTURE ── -->
<section id="architecture">
<div class="container">
<div class="arch-wrap">
<div>
<p class="section-label">Design</p>
<h2 class="section-title">Built for modularity and reproducibility</h2>
<p class="section-desc">Every simulation is a traceable experiment. Coefficients live in versioned TOML files, not buried in code.</p>
<div class="arch-points">
<div class="arch-point">
<div class="arch-dot blue"></div>
<div class="arch-point-text">
<h4>Experiment as first-class object</h4>
<p>Each run produces an immutable <code>ExperimentRecord</code> capturing provenance, input SHA-256 checksums, and model commit — ready to cite in a paper.</p>
</div>
</div>
<div class="arch-point">
<div class="arch-dot amber"></div>
<div class="arch-point-text">
<h4>Configuration separated from code</h4>
<p>Calibrated coefficients live in versioned TOML files in <code>dissmodel-configs</code>, reviewed via PR before publication. Never hardcoded, always citeable by git hash.</p>
</div>
</div>
<div class="arch-point">
<div class="arch-dot green"></div>
<div class="arch-point-text">
<h4>Two-layer architecture</h4>
<p>Science logic stays pure in the <code>Model</code> layer. The <code>ModelExecutor</code> wraps I/O, column mapping, and provenance — without touching the science.</p>
</div>
</div>
<div class="arch-point">
<div class="arch-dot blue"></div>
<div class="arch-point-text">
<h4>Production-ready infrastructure</h4>
<p>Built on JupyterLab, FastAPI, Redis, and MinIO via Docker Compose. Pangeo / BDC integration planned for a future release.</p>
</div>
</div>
</div>
</div>
<pre class="arch-diagram"><span class="c-dim">┌─────────────────────────────────┐</span>
<span class="c-white">│ DisSModel Platform │</span>
<span class="c-dim">│ │</span>
<span class="c-green">│ FastAPI │</span>
<span class="c-blue">│ ├── POST /submit_job │</span>
<span class="c-blue">│ ├── GET /job/{id} │</span>
<span class="c-blue">│ └── POST /experiments/repro │</span>
<span class="c-dim">│ │</span>
<span class="c-green">│ Worker │</span>
<span class="c-blue">│ ├── ExecutorRegistry │</span>
<span class="c-blue">│ ├── ModelExecutor ABC │</span>
<span class="c-blue">│ └── Dask Client │</span>
<span class="c-dim">├─────────────────────────────────┤</span>
<span class="c-green">│ dissmodel-configs │</span>
<span class="c-blue">│ ├── models/brmangue.toml │</span>
<span class="c-blue">│ └── models/dissluc.toml │</span>
<span class="c-dim">├─────────────────────────────────┤</span>
<span class="c-white">│ Infrastructure │</span>
<span class="c-dim">│ JupyterLab · MinIO · Dask │</span>
<span class="c-dim">└─────────────────────────────────┘</span></pre>
</div>
</div>
</section>
<!-- ── USE CASE ── -->
<section id="usecase">
<div class="container">
<p class="section-label">Reference Application</p>
<h2 class="section-title">Coastal dynamics & Mangrove migration</h2>
<p class="section-desc" style="margin-bottom:3.5rem;">
The <code>brmangue-dissmodel</code> repository demonstrates DisSModel on real data from Maranhão, Brazil —
implementing flood propagation and mangrove migration based on <strong>Bezerra et al. (2014)</strong>.
</p>
<div class="usecase-sub">
<div class="usecase-sub-label">
<span class="sub-badge blue">Model</span>
<p>Pure simulation logic — no I/O, no infrastructure. Works standalone in a notebook or script.</p>
</div>
<pre class="usecase-code"><span style="color:#6abf6a">from</span> <span style="color:#e8f4ff">dissmodel</span> <span style="color:#6abf6a">import</span> <span style="color:#e8f4ff">Environment</span>
env = Environment(start_time=2008, end_time=2030)
FloodModel(gdf=gdf, taxa_elevacao=0.5, attr_uso="uso")
MangroveModel(gdf=gdf, altura_mare=6.0, attr_solo="solo")
env.run()</pre>
</div>
<div class="usecase-arrow">↓</div>
<div class="usecase-sub">
<div class="usecase-sub-label">
<span class="sub-badge green">ModelExecutor</span>
<p>Wraps the model with I/O, column mapping, provenance, and platform integration.</p>
</div>
<pre class="usecase-code">class CoastalVectorExecutor(ModelExecutor):
name = "brmangue_vector"
def load(self, record: ExperimentRecord) -> GeoDataFrame:
# load + apply column_map → canonical names
...
def run(self, data, record: ExperimentRecord):
# build env + models, call env.run()
...</pre>
</div>
<div class="usecase-arrow">↓</div>
<div class="usecase-sub">
<div class="usecase-sub-label">
<span class="sub-badge gray">Run</span>
<p>The same executor runs locally via CLI or remotely via the platform API.</p>
</div>
<div class="tabs-wrap">
<div class="tab-btns">
<button class="tab-btn active" onclick="switchTab('local')">🖥️ Local / CLI</button>
<button class="tab-btn" onclick="switchTab('api')" >🌐 Platform API</button>
</div>
<pre class="usecase-code tab-panel" id="tab-local">python main.py run \
--input data/input/mangue_grid.zip \
--output data/output/simulation.gpkg \
--param end_time=2030</pre>
<pre class="usecase-code tab-panel" id="tab-api" style="display:none;">curl -X POST http://localhost:8000/submit_job \
-d '{
"model_name": "brmangue_vector",
"input_dataset": "s3://inputs/grid.shp",
"parameters": {"end_time": 2050}
}'</pre>
</div>
</div>
</div>
</section>
<!-- ── FOOTER ── -->
<footer>
<div class="footer-inner">
<div class="footer-brand">
<h3>DisSModel</h3>
<p>A modular Python ecosystem for discrete spatial modeling, developed at LambdaGEO / UFMA. Designed as the innovation laboratory for LuccME++ at CCST/INPE.</p>
</div>
<div class="footer-col">
<h4>Repositories</h4>
<ul id="footer-repo-list">
<!-- populated dynamically -->
</ul>
</div>
<div class="footer-col">
<h4>Resources</h4>
<ul>
<li><a href="https://dissmodel.github.io/dissmodel/">Documentation</a></li>
<li><a href="https://github.com/DisSModel">GitHub Organization</a></li>
<li><a href="https://github.com/DisSModel/dissmodel/blob/main/LICENSE">MIT License</a></li>
<li><a href="https://lambdageo.github.io">LambdaGEO / UFMA</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<span>© 2026 DisSModel — LambdaGEO, UFMA</span>
<span>Built with Python · MIT License</span>
</div>
</footer>
<!-- ── data.js must be loaded before this script ── -->
<script src="data.js"></script>
<script>
// ── Helpers ──────────────────────────────────────────────────────────────
function copyPip() {
navigator.clipboard.writeText('pip install dissmodel');
const el = document.getElementById('copy-confirm');
el.classList.add('show');
setTimeout(() => el.classList.remove('show'), 2000);
}
function switchTab(tab) {
document.getElementById('tab-local').style.display = tab === 'local' ? 'block' : 'none';
document.getElementById('tab-api').style.display = tab === 'api' ? 'block' : 'none';
document.querySelectorAll('.tab-btn').forEach((btn, i) => {
btn.classList.toggle('active', (tab === 'local' && i === 0) || (tab === 'api' && i === 1));
});
}
// ── GitHub API fetch ──────────────────────────────────────────────────────
const ORG = 'DisSModel';
const API = `https://api.github.com/orgs/${ORG}/repos?per_page=100&sort=updated&type=public`;
async function loadRepos() {
try {
const res = await fetch(API, {
headers: { 'Accept': 'application/vnd.github+json' }
});
if (!res.ok) throw new Error(`GitHub API responded ${res.status}`);
const allRepos = await res.json();
// Filter archived and hidden
const repos = allRepos.filter(r =>
!r.archived &&
!r.fork &&
!(REPO_HIDDEN || []).includes(r.name)
);
renderRepos(repos);
updateStats(repos);
updateFooter(repos);
} catch (err) {
document.getElementById('repos-container').innerHTML = `
<div class="repos-error">
⚠️ Could not load repositories from GitHub API.
<a href="https://github.com/orgs/${ORG}/repositories" style="color:var(--red)">View on GitHub →</a>
<br><small style="opacity:.7;font-size:.8rem">${err.message}</small>
</div>`;
}
}
// ── Render repos grid ─────────────────────────────────────────────────────
function renderRepos(repos) {
// Sort: featured first, then by REPO_EXTRAS order, then alphabetical
const sorted = [...repos].sort((a, b) => {
const ea = REPO_EXTRAS[a.name] || {};
const eb = REPO_EXTRAS[b.name] || {};
if (ea.featured && !eb.featured) return -1;
if (!ea.featured && eb.featured) return 1;
const oa = ea.order ?? 999;
const ob = eb.order ?? 999;
if (oa !== ob) return oa - ob;
return a.name.localeCompare(b.name);
});
// Update section title
document.getElementById('repos-title').textContent =
`${sorted.length} repositories, one coherent framework`;
const grid = document.createElement('div');
grid.className = 'repos-grid';
sorted.forEach(repo => {
const extras = REPO_EXTRAS[repo.name] || {};
const icon = extras.icon || '📦';
const pills = extras.pills || [];
const featured = extras.featured || false;
// topics → tags
const topics = (repo.topics || []).slice(0, 4);
// stars / language
const meta = [
repo.stargazers_count > 0 ? `★ ${repo.stargazers_count}` : null,
repo.language || null
].filter(Boolean);
const card = document.createElement('a');
card.href = repo.html_url;
card.target = '_blank';
card.rel = 'noopener noreferrer';
card.className = 'repo-card' + (featured ? ' featured' : '');
card.innerHTML = `
<div class="repo-top">
<div class="repo-icon">${icon}</div>
<span class="repo-arrow">↗</span>
</div>
<div class="repo-name">${repo.name}</div>
<p class="repo-desc">${repo.description || 'No description yet.'}</p>
${pills.length ? `<div class="repo-bench">${pills.map(p => `<span class="bench-pill">${p}</span>`).join('')}</div>` : ''}
${topics.length ? `<div class="repo-tags">${topics.map(t => `<span class="repo-tag">${t}</span>`).join('')}</div>` : ''}
${meta.length ? `<div class="repo-meta">${meta.map(m => `<span class="repo-meta-item">${m}</span>`).join('')}</div>` : ''}
`;
grid.appendChild(card);
});
const container = document.getElementById('repos-container');
container.innerHTML = '';
container.appendChild(grid);
}
// ── Stats strip ───────────────────────────────────────────────────────────
function updateStats(repos) {
const strip = document.getElementById('stats-strip');
strip.innerHTML = `
<div class="stat-item">
<div class="stat-number">${repos.length}</div>
<div class="stat-label">Repositories</div>
</div>
<div class="stat-item">
<div class="stat-number">100k</div>
<div class="stat-label">Cells · BR-MANGUE</div>
</div>
<div class="stat-item">
<div class="stat-number">100m</div>
<div class="stat-label">Spatial Resolution</div>
</div>
<div class="stat-item">
<div class="stat-number">MIT</div>
<div class="stat-label">License</div>
</div>
`;
}
// ── Footer repo list ──────────────────────────────────────────────────────
function updateFooter(repos) {
const list = document.getElementById('footer-repo-list');
// Sort: extras order first, rest alphabetical
const sorted = [...repos].sort((a, b) => {
const oa = (REPO_EXTRAS[a.name] || {}).order ?? 999;
const ob = (REPO_EXTRAS[b.name] || {}).order ?? 999;
if (oa !== ob) return oa - ob;
return a.name.localeCompare(b.name);
});
list.innerHTML = sorted
.map(r => `<li><a href="${r.html_url}" target="_blank" rel="noopener">${r.name}</a></li>`)
.join('');
}
// ── Boot ──────────────────────────────────────────────────────────────────
loadRepos();
</script>
</body>
</html>