Skip to content

Commit 9d5b92f

Browse files
authored
Merge pull request open-neuromorphic#238 from neural-loop/design-adjustments
Design adjustments
2 parents 2185a42 + 8974df5 commit 9d5b92f

File tree

15 files changed

+233
-66
lines changed

15 files changed

+233
-66
lines changed

assets/scss/buttons.scss

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
// assets/scss/buttons.scss
22

3-
// Base .btn style
3+
// Base .btn style - Added 'no-underline' to prevent link styling
44
.btn {
5-
@apply inline-block rounded border border-transparent px-5 py-2 font-semibold capitalize transition;
5+
@apply inline-block rounded border border-transparent px-5 py-2 font-semibold capitalize transition no-underline;
66
}
77

88
// Base .btn-sm style
99
.btn-sm {
1010
@apply rounded-sm px-4 py-1.5 text-sm;
1111
}
1212

13+
// Suppress the global ::after icon for buttons where we use an inline SVG icon instead.
14+
a.btn.has-inline-icon[target='_blank']::after {
15+
content: none !important;
16+
}
17+
1318
// ----- Project-specific & Updated Theme Button Styles -----
1419

1520
// Project's main primary button (gradient) - e.g., for "Join Discord"
@@ -35,6 +40,16 @@
3540
}
3641
}
3742

43+
// Dark mode override for the outline button
44+
.dark .btn-new-outline {
45+
color: var(--color-darkmode-primary);
46+
border-color: var(--color-darkmode-primary);
47+
&:hover {
48+
background-color: var(--color-darkmode-primary);
49+
color: theme('colors.darkmode.theme-dark');
50+
}
51+
}
52+
3853
// Standard .btn-primary (redefined as a solid fill button using new theme colors)
3954
// Used in 404.html ("Back to home")
4055
.btn-primary {

data/used_icons.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fontawesome_svgs:
1818
- { style: solid, name: envelope }
1919
- { style: solid, name: moon }
2020
- { style: solid, name: sun }
21+
- { style: solid, name: arrow-up-right-from-square }
2122
- { style: brands, name: discord }
2223
- { style: brands, name: github }
2324
- { style: brands, name: twitter }

layouts/about/list.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
<div class="content">
88
{{ .Content }}
99
</div>
10+
<div class="mt-16">
11+
{{ partial "components/content-contribute-cta.html" (dict
12+
"icon" "solid rocket"
13+
"title" "Ready to Shape the Future of <span class=\"gradient-text\">Neuromorphics?</span>"
14+
"description" "Join our mission to advance open, collaborative, and accessible neuromorphic computing. Your expertise and passion can make a real difference."
15+
"link" "/getting-involved/"
16+
"link_text" "Get Involved Now"
17+
) }}
18+
</div>
1019
</div>
1120
</div>
1221
</div>

layouts/blog/list.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,19 @@
1616
{{ end }}
1717
</div>
1818
{{ partial "components/pagination.html" . }}
19+
20+
<div class="mt-16">
21+
{{ partial "components/content-contribute-cta.html" (dict
22+
"icon" "solid pen-to-square"
23+
"title" "Have an idea? <span class=\"gradient-text\">Share your voice.</span>"
24+
"description" "Open Neuromorphic is a community-driven platform. We invite you to share your research, tutorials, or insights by writing a blog post."
25+
"link" "/getting-involved/write-a-blog-post/"
26+
"link_text" "Write for Our Blog"
27+
) }}
28+
</div>
1929
</div>
2030
</div>
2131
</div>
2232
</section>
33+
2334
{{ end }}

layouts/blog/single.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,19 @@
1515
{{ .Content }}
1616
</div>
1717
{{ partial "components/share-cta.html" . }}
18+
1819
{{ partial "components/author-bios.html" . }}
20+
21+
<div class="mt-16">
22+
{{ partial "components/content-contribute-cta.html" (dict
23+
"icon" "solid pen-to-square"
24+
"title" "Have an idea? <span class=\"gradient-text\">Share your voice.</span>"
25+
"description" "Open Neuromorphic is a community-driven platform. We invite you to share your research, tutorials, or insights by writing a blog post."
26+
"link" "/getting-involved/write-a-blog-post/"
27+
"link_text" "Write for Our Blog"
28+
) }}
29+
</div>
30+
1931
</article>
2032
{{ partial "components/sidebar-toc-shared.html" . }}
2133
</div>

layouts/contributors/list.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,19 @@ <h2 class="text-3xl font-bold mb-6 pb-2 border-b border-border dark:border-darkm
181181
{{ end }}
182182
</div>
183183
{{ end }}
184+
{{ if not $uniqueYearsSorted }}
185+
<p class="text-center text-xl">No contributions found with yearly data.</p>
186+
{{ end }}
184187

185-
{{ if not $uniqueYearsSorted }}
186-
<p class="text-center text-xl">No contributions found with yearly data.</p>
187-
{{ end }}
188-
</div>
188+
<div class="mt-8">
189+
{{ partial "components/content-contribute-cta.html" (dict
190+
"icon" "solid user-group"
191+
"title" "Ready to <span class=\"gradient-text\">Join Us?</span>"
192+
"description" "Become part of our growing community of researchers, developers, and enthusiasts. Explore the many ways you can contribute to the future of open-source neuromorphic computing."
193+
"link" "/getting-involved/"
194+
"link_text" "See How to Get Involved"
195+
) }}
196+
</div>
197+
</div>
189198
</section>
190199
{{ end }}

layouts/neuromorphic-computing/list.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ define "main" }}
22
{{ partial "page-header" . }}
33

4-
<section class="section pt-6 mt-0">
4+
<section class="section pt-6 mt-0 pb-16">
55
<div class="container">
66
{{/* Display the main content of the _index.md page */}}
77
<div class="content text-center mb-12 prose dark:prose-invert max-w-none">
@@ -85,7 +85,7 @@
8585
}}
8686

8787
<!-- Recent Posts -->
88-
<div class="mb-16"> <!-- Added mb-16 for spacing similar to new sections -->
88+
<div class="mb-0">
8989
<h3 class="section-title text-3xl font-semibold mb-3">Blog</h3>
9090
<p class="section-subtitle text-lg text-gray-600 dark:text-gray-400 mb-8 mx-auto">Stay informed with our latest articles, tutorials, and community updates.</p>
9191
<div class="row"> <!-- Kept row for 3-column layout for blogs -->
@@ -102,6 +102,16 @@ <h3 class="section-title text-3xl font-semibold mb-3">Blog</h3>
102102
</div>
103103
</div>
104104

105+
<div class="mt-16">
106+
{{ partial "components/content-contribute-cta.html" (dict
107+
"icon" "solid brain"
108+
"title" "Join the <span class=\"gradient-text\">Conversation</span>"
109+
"description" "The Open Neuromorphic community thrives on collaboration. Join our Discord, attend an event, or contribute to a project to help push the boundaries of brain-inspired computing."
110+
"link" "/getting-involved/"
111+
"link_text" "Find Your Place in Our Community"
112+
) }}
113+
</div>
114+
105115
</div>
106116
</section>
107117
{{ end }}

layouts/neuromorphic-hardware/list.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ <h2 class="text-3xl font-bold mb-6 pb-2 border-primary dark:border-darkmode-prim
3030
{{ end }}
3131
</ul>
3232

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+
3343
<div id="glossary" class="pt-12 max-w-4xl mx-auto">
3444
<h2 class="text-3xl font-bold text-center mb-8">Glossary of Terms</h2>
3545
<details class="bg-theme-light dark:bg-darkmode-theme-light rounded-lg shadow-md p-6 cursor-pointer">

layouts/neuromorphic-software/list.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@
2020
{{ partial "components/software-categories" . }}
2121
</div>
2222
</div>
23+
24+
<div class="mt-16">
25+
{{ partial "components/content-contribute-cta.html" (dict
26+
"icon" "solid code"
27+
"title" "Know a Tool <span class=\"gradient-text\">We Missed?</span>"
28+
"description" "Help us keep the software guide comprehensive and up-to-date. Suggest new frameworks, data tools, or corrections by opening an issue on our GitHub repository."
29+
"link" "https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues/new/choose"
30+
"link_text" "Suggest an Addition on GitHub"
31+
) }}
32+
</div>
33+
2334
</div>
2435
</section>
2536
{{ end }}

layouts/neuromorphic-software/single.html

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,27 @@
99
{{ .Content }}
1010
</article>
1111

12-
<blockquote class="p-4 border-l-4 border-[var(--color-primary-new)] bg-blue-50 dark:bg-darkmode-theme-dark">
13-
<h3 class="text-lg font-semibold !mt-0 !mb-2">Want to contribute to this entry?</h3>
14-
<p class="!mb-0">
15-
Help us keep this guide up-to-date! You can submit tutorials, case studies, or corrections by
16-
<a href="https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues" target="_blank">opening an issue on GitHub</a> or joining the discussion on our <a href="https://discord.gg/C9bzWgNmqk" target="_blank">Discord server</a>.
17-
</p>
18-
</blockquote>
12+
{{ partial "components/content-contribute-cta.html" (dict
13+
"icon" "solid code"
14+
"title" "Help Improve this <span class=\"gradient-text\">Software Guide</span>"
15+
"description" "Our software guide is maintained by the community. If you have updates, see an error, or want to suggest a new tool, please let us know by opening an issue on our GitHub repository."
16+
"link" "https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues/new/choose"
17+
"link_text" "Suggest an Edit on GitHub"
18+
) }}
1919

20-
<div class="mt-8 flex justify-end">
21-
{{ partial "override-social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" true "Telegram" false) }}
20+
<div class="mt-8">
21+
{{ partial "components/share-cta.html" . }}
2222
</div>
2323
</div>
2424

2525
{{/* Sidebar Column */}}
2626
<aside class="lg:col-4">
27-
{{ partial "software/at-a-glance.html" . }}
27+
<div class="pb-4">
28+
{{ partial "components/og-preview.html" . }}
29+
</div>
30+
<div class="sticky top-24">
31+
{{ partial "software/at-a-glance.html" . }}
32+
</div>
2833
</aside>
2934
</div>
3035

0 commit comments

Comments
 (0)