|
1 | 1 | {{ define "main" }} |
2 | | - {{ partial "page-header" . }} |
| 2 | +{{ partial "page-header" . }} |
3 | 3 |
|
4 | | - <section class="section pt-8"> |
5 | | - <div class="container"> |
6 | | - <div class="prose dark:prose-invert max-w-none mx-auto text-center mb-12"> |
7 | | - <p class="text-lg"> |
8 | | - Welcome to the Open Neuromorphic Hardware Guide. This directory provides a comprehensive overview of neuromorphic hardware, from pioneering past projects to the latest commercial and research chips. Each entry includes key specifications, architectural details, and links to relevant publications. |
9 | | - For definitions of common terms, please see the <a href="#glossary">glossary</a> below. |
10 | | - </p> |
11 | | - </div> |
| 4 | +<section class="section pt-8"> |
| 5 | + <div class="container"> |
| 6 | + <div class="prose dark:prose-invert max-w-none mx-auto text-center mb-12"> |
| 7 | + <p class="text-lg"> |
| 8 | + Welcome to the Open Neuromorphic Hardware Guide. This directory provides a comprehensive overview of neuromorphic hardware, from pioneering past projects to the latest commercial and research chips. Each entry includes key specifications, architectural details, and links to relevant publications. |
| 9 | + For definitions of common terms, please see the <a href="#glossary">glossary</a> below. |
| 10 | + </p> |
| 11 | + </div> |
12 | 12 |
|
13 | | - {{ $all_hardware := where .Site.RegularPages "Type" "neuromorphic-hardware" }} |
14 | | - {{ $grouped_by_year := $all_hardware.GroupByParam "product.release_year" }} |
15 | | - {{ $sorted_groups := sort $grouped_by_year "Key" "desc" }} |
| 13 | + {{ $all_hardware := where .Site.RegularPages "Type" "neuromorphic-hardware" }} |
| 14 | + {{ $grouped_by_year := $all_hardware.GroupByParam "product.release_year" }} |
| 15 | + {{ $sorted_groups := sort $grouped_by_year "Key" "desc" }} |
16 | 16 |
|
17 | | - <ul class="max-w-4xl mx-auto list-none p-0"> |
18 | | - {{ range $sorted_groups }} |
19 | | - <li class="year-section mb-12 text-center"> |
20 | | - <h2 class="text-3xl font-bold mb-6 pb-2 border-primary dark:border-darkmode-primary">{{ .Key }}</h2> |
21 | | - <ul class="text-left space-y-6 list-none p-0"> |
22 | | - {{ $sorted_pages_in_year := sort .Pages "Title" "asc" }} |
23 | | - {{ range $sorted_pages_in_year }} |
24 | | - <li> |
25 | | - {{ partial "components/hardware-card-wide.html" . }} |
26 | | - </li> |
27 | | - {{ end }} |
28 | | - </ul> |
| 17 | + <ul class="max-w-4xl mx-auto list-none p-0"> |
| 18 | + {{ range $sorted_groups }} |
| 19 | + <li class="year-section mb-12 text-center"> |
| 20 | + <h2 class="text-3xl font-bold mb-6 pb-2 border-primary dark:border-darkmode-primary">{{ .Key }}</h2> |
| 21 | + <ul class="text-left space-y-6 list-none p-0"> |
| 22 | + {{ $sorted_pages_in_year := sort .Pages ".Params.product.release_date" "desc" }} |
| 23 | + {{ range $sorted_pages_in_year }} |
| 24 | + <li> |
| 25 | + {{ partial "components/hardware-card-wide.html" . }} |
29 | 26 | </li> |
30 | | - {{ end }} |
31 | | - </ul> |
| 27 | + {{ end }} |
| 28 | + </ul> |
| 29 | + </li> |
| 30 | + {{ end }} |
| 31 | + </ul> |
32 | 32 |
|
33 | | - <div class="max-w-4xl mx-auto mt-12 mb-16"> |
34 | | - {{ partial "components/content-contribute-cta.html" (dict |
35 | | - "icon" "solid microchip" |
36 | | - "title" "Help Us <span class=\"gradient-text\">Improve this Guide</span>" |
37 | | - "description" "Our hardware guide is community-maintained. If you know of a chip we should add, see an error, or have updated information, please let us know by opening an issue on our GitHub repository." |
38 | | - "link" "https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues/new/choose" |
39 | | - "link_text" "Suggest an Edit on GitHub" |
40 | | - ) }} |
41 | | - </div> |
| 33 | + <div class="max-w-4xl mx-auto mt-12 mb-16"> |
| 34 | + {{ partial "components/content-contribute-cta.html" (dict |
| 35 | + "icon" "solid microchip" |
| 36 | + "title" "Help Us <span class=\"gradient-text\">Improve this Guide</span>" |
| 37 | + "description" "Our hardware guide is community-maintained. If you know of a chip we should add, see an error, or have updated information, please let us know by opening an issue on our GitHub repository." |
| 38 | + "link" "https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues/new/choose" |
| 39 | + "link_text" "Suggest an Edit on GitHub" |
| 40 | + ) }} |
| 41 | + </div> |
42 | 42 |
|
43 | | - <div id="glossary" class="pt-12 max-w-4xl mx-auto"> |
44 | | - <h2 class="text-3xl font-bold text-center mb-8">Glossary of Terms</h2> |
45 | | - <details class="bg-theme-light dark:bg-darkmode-theme-light rounded-lg shadow-md p-6 cursor-pointer"> |
46 | | - <summary class="font-semibold text-xl text-dark dark:text-darkmode-dark list-none"> |
47 | | - <span class="summary-title">Click to expand/collapse glossary</span> |
48 | | - <span class="float-right transition-transform duration-300 transform group-open:rotate-180">+</span> |
49 | | - </summary> |
50 | | - <div class="mt-4 grid md:grid-cols-2 gap-x-8 gap-y-4 prose dark:prose-invert max-w-none"> |
51 | | - {{ with .Params.glossary }} |
52 | | - {{ range . }} |
53 | | - <div class="glossary-item"> |
54 | | - <p><strong>{{ .term }}:</strong> {{ .definition | markdownify }}</p> |
55 | | - </div> |
56 | | - {{ end }} |
57 | | - {{ end }} |
| 43 | + <div id="glossary" class="pt-12 max-w-4xl mx-auto"> |
| 44 | + <h2 class="text-3xl font-bold text-center mb-8">Glossary of Terms</h2> |
| 45 | + <details class="bg-theme-light dark:bg-darkmode-theme-light rounded-lg shadow-md p-6 cursor-pointer"> |
| 46 | + <summary class="font-semibold text-xl text-dark dark:text-darkmode-dark list-none"> |
| 47 | + <span class="summary-title">Click to expand/collapse glossary</span> |
| 48 | + <span class="float-right transition-transform duration-300 transform group-open:rotate-180">+</span> |
| 49 | + </summary> |
| 50 | + <div class="mt-4 grid md:grid-cols-2 gap-x-8 gap-y-4 prose dark:prose-invert max-w-none"> |
| 51 | + {{ with .Params.glossary }} |
| 52 | + {{ range . }} |
| 53 | + <div class="glossary-item"> |
| 54 | + <p><strong>{{ .term }}:</strong> {{ .definition | markdownify }}</p> |
58 | 55 | </div> |
59 | | - </details> |
60 | | - </div> |
| 56 | + {{ end }} |
| 57 | + {{ end }} |
| 58 | + </div> |
| 59 | + </details> |
61 | 60 | </div> |
62 | | - </section> |
| 61 | + </div> |
| 62 | +</section> |
| 63 | + |
| 64 | +<script> |
| 65 | + document.addEventListener('DOMContentLoaded', function() { |
| 66 | + const details = document.querySelector('#glossary details'); |
| 67 | + const summary = details.querySelector('summary'); |
| 68 | + const icon = summary.querySelector('.float-right'); |
63 | 69 |
|
64 | | - <script> |
65 | | - document.addEventListener('DOMContentLoaded', function() { |
66 | | - const details = document.querySelector('#glossary details'); |
67 | | - const summary = details.querySelector('summary'); |
68 | | - const icon = summary.querySelector('.float-right'); |
69 | | - |
70 | | - details.addEventListener('toggle', function() { |
71 | | - if (details.open) { |
72 | | - icon.textContent = '−'; |
73 | | - icon.style.transform = 'rotate(0deg)'; |
74 | | - } else { |
75 | | - icon.textContent = '+'; |
76 | | - icon.style.transform = 'rotate(0deg)'; |
77 | | - } |
78 | | - }); |
| 70 | + details.addEventListener('toggle', function() { |
| 71 | + if (details.open) { |
| 72 | + icon.textContent = '−'; |
| 73 | + icon.style.transform = 'rotate(0deg)'; |
| 74 | + } else { |
| 75 | + icon.textContent = '+'; |
| 76 | + icon.style.transform = 'rotate(0deg)'; |
| 77 | + } |
79 | 78 | }); |
80 | | - </script> |
| 79 | + }); |
| 80 | +</script> |
81 | 81 | {{ end }} |
0 commit comments