Skip to content

Commit b452974

Browse files
committed
Enhance Community Gallery layout and content
- Adjusted spacing in the community gallery sections for better visual appeal. - Updated descriptions and added new entries in the gallery section of the markdown file. - Improved HTML structure for image handling in the community gallery layout.
1 parent 8f9451c commit b452974

File tree

3 files changed

+46
-7
lines changed

3 files changed

+46
-7
lines changed

assets/css/style.css

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,4 +1160,31 @@ a.next-page-btn:hover {
11601160
background-color: #e6f0f9;
11611161
border: 2px solid #114b7c;
11621162
text-decoration: none !important;
1163-
}
1163+
}
1164+
1165+
/* Community Gallery - Reduced spacing */
1166+
.community-gallery .section {
1167+
padding: 60px 0 !important;
1168+
}
1169+
1170+
.community-gallery .hero {
1171+
height: 300px !important;
1172+
}
1173+
1174+
.community-gallery .section:first-of-type {
1175+
padding: 40px 0 !important;
1176+
}
1177+
1178+
@media (max-width: 768px) {
1179+
.community-gallery .section {
1180+
padding: 40px 0 !important;
1181+
}
1182+
1183+
.community-gallery .hero {
1184+
height: 250px !important;
1185+
}
1186+
1187+
.community-gallery .section:first-of-type {
1188+
padding: 30px 0 !important;
1189+
}
1190+
}

content/community/gallery.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gallery_section:
77
content: "Tools and resources for converting data to NWB format"
88
boxes:
99
- title: "NeuroConv Catalog"
10-
content: "Real-world examples of labs using NeuroConv to convert their data to NWB files. Each project listed contains a description and a link to an open GitHub repository. Many of the projects listed use advanced customization features beyond what is demonstrated in the core NeuroConv conversion gallery."
10+
content: "A collection of real-world examples of labs using NeuroConv to convert their data to NWB files. Each project listed contains a description and a link to an open GitHub repository. Many of the projects listed use advanced customization features beyond what is demonstrated in the core NeuroConv conversion gallery."
1111
image: "/images/community_gallery/neuroconv_gallery.png"
1212
url: "https://neuroconv.readthedocs.io/en/stable/conversion_examples_gallery/index.html"
1313
- title: "Bristol Neuroscience Data Guide"
@@ -32,6 +32,12 @@ analysis_section:
3232
content: "The International Brain Laboratory (IBL) released a Brainwide Map of neural activity during decision-making, consisting of 547 Neuropixel recordings of 32,784 neurons across 194 regions of the mouse brain. The IBL team provides tutorials on Using IBL data with NWB."
3333
image: "/images/community_gallery/ibl_brainmap.png"
3434
url: "https://colab.research.google.com/drive/1zr6lP_zzRgPZuHs3nB5oGnFtPKrduQ3L"
35+
- title: "INCF MATLAB Examples"
36+
content: "The INCF working group on NWB has created a library of MATLAB examples using DANDI datasets authored as MATLAB live scripts."
37+
url: "https://github.com/INCF/example-live-scripts"
38+
- title: "Neuromatch-AJILE12"
39+
content: "A package for exploratory analysis of long-term naturalistic human intracranial neural recordings and pose data as part of Dandiset 000055."
40+
url: "https://github.com/neurovium/Neuromatch-AJILE12"
3541

3642
publications_section:
3743
enable: true
@@ -48,4 +54,4 @@ disclaimer:
4854
content: "**Disclaimer:** Reference herein to any specific product, process, or service by its trade name, trademark, manufacturer, or otherwise, does not constitute or imply its endorsement, recommendation, or favoring by the NWB development team, United States Government or any agency thereof, or The Regents of the University of California. Use of the NeurodataWithoutBorders name for endorsements is prohibited."
4955
---
5056

51-
This page is a collection of community conversion, analysis, and reuse projects cataloged here as a convenient reference for NWB users. This list is not comprehensive. Many of the projects and resources are built and supported by other groups.
57+
This page is a collection of community conversion and analysis projects cataloged here as a convenient reference for NWB users. This list is not comprehensive and many of the projects and resources are built and supported by other groups, and are in active development.

layouts/community/single.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{ define "main" }}
2+
<div class="community-gallery">
23
{{/* Hero Section */}}
34
<section class="hero teamSect d-flex justify-content-center align-items-center position-relative"
45
style="background: radial-gradient(#063053e5, #062e52e5), url('/images/essentials/aboutBg.png');">
@@ -31,11 +32,13 @@ <h3 class="inter-700 text-40 dark-900 mb-3">{{ .title | markdownify }}</h3>
3132
<div class="col-12 col-md-6">
3233
<div class="bg-white h-100 rounded-3 p-4 shadow-sm">
3334
<div class="d-flex flex-row">
34-
<div class="me-4">
35+
{{ if .image }}
36+
<div class="me-4 flex-shrink-0">
3537
<a href="{{ .url }}" target="_blank">
36-
<img src="{{ .image }}" alt="{{ .title }}" class="rounded-3" style="width: 100px; height: 100px; object-fit: cover;">
38+
<img src="{{ .image }}" alt="{{ .title }}" class="rounded-3 gallery-card-image" style="width: 100px; height: 100px; object-fit: cover;" onerror="this.parentElement.parentElement.style.display='none';">
3739
</a>
3840
</div>
41+
{{ end }}
3942
<div class="flex-grow-1">
4043
<a href="{{ .url }}" class="text-decoration-none" target="_blank">
4144
<h5 class="inter-700 text-18 dark-900 mb-2 text-decoration-underline">{{ .title | markdownify }}</h5>
@@ -65,11 +68,13 @@ <h3 class="inter-700 text-40 dark-900 mb-3">{{ .title | markdownify }}</h3>
6568
<div class="col-12 col-md-6">
6669
<div class="bg-dark-100 h-100 rounded-3 p-4 shadow-sm">
6770
<div class="d-flex flex-row">
68-
<div class="me-4">
71+
{{ if .image }}
72+
<div class="me-4 flex-shrink-0">
6973
<a href="{{ .url }}" target="_blank">
70-
<img src="{{ .image }}" alt="{{ .title }}" class="rounded-3" style="width: 100px; height: 100px; object-fit: cover;">
74+
<img src="{{ .image }}" alt="{{ .title }}" class="rounded-3 gallery-card-image" style="width: 100px; height: 100px; object-fit: cover;" onerror="this.parentElement.parentElement.style.display='none';">
7175
</a>
7276
</div>
77+
{{ end }}
7378
<div class="flex-grow-1">
7479
<a href="{{ .url }}" class="text-decoration-none" target="_blank">
7580
<h5 class="inter-700 text-18 dark-900 mb-2 text-decoration-underline">{{ .title | markdownify }}</h5>
@@ -139,4 +144,5 @@ <h5 class="inter-700 text-18 dark-900 mb-2 text-decoration-underline">{{ .title
139144
{{ end }}
140145
{{/* End Disclaimer Section */}}
141146

147+
</div>
142148
{{ end }}

0 commit comments

Comments
 (0)