File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -117,14 +117,17 @@ function handleFamilySelection() {
117117 document . querySelectorAll (
118118 '#product-families-list input[type="checkbox"]:checked' ,
119119 ) ,
120- ) . map ( ( checkbox ) => checkbox . id . replace ( "family-" , "" ) . toLowerCase ( ) ) ;
120+ ) . map ( ( checkbox ) =>
121+ checkbox . id . replace ( "family-" , "" ) . replace ( "\\ " , "-" ) . toLowerCase ( ) ,
122+ ) ;
121123
122124 console . log ( "Selected families:" , selectedFamilies ) ;
123125
124126 const projectCards = document . querySelectorAll ( ".project-card" ) ;
125127
126128 projectCards . forEach ( ( card ) => {
127129 const family = card . getAttribute ( "data-family" ) . toLowerCase ( ) ;
130+ console . log ( "Family:" , family ) ;
128131 card . style . display =
129132 selectedFamilies . length === 0 || selectedFamilies . includes ( family )
130133 ? "flex"
@@ -137,7 +140,9 @@ function handleTagSelection() {
137140 document . querySelectorAll (
138141 '#product-tags-list input[type="checkbox"]:checked' ,
139142 ) ,
140- ) . map ( ( checkbox ) => checkbox . id . replace ( "tag-" , "" ) . toLowerCase ( ) ) ;
143+ ) . map ( ( checkbox ) =>
144+ checkbox . id . replace ( "tag-" , "" ) . replace ( "\\ " , "-" ) . toLowerCase ( ) ,
145+ ) ;
141146
142147 console . log ( "Selected tags:" , selectedTags ) ;
143148
Original file line number Diff line number Diff line change @@ -27,10 +27,12 @@ it is now a collection of many Python packages for using Ansys products through
2727 {% set family = metadata.get('family', 'other') | lower | replace(' ', '-') %}
2828 {% set tags = metadata.get('tags', 'other') | lower %}
2929
30- <div class =" project-card sd-shadow-sm sd-card-hover" data-family =" {{ family }}" data-tags =" {{ tags }}" >
30+ <div class =" project-card sd-card sd- shadow-sm sd-card-hover" data-family =" {{ family }}" data-tags =" {{ tags }}" >
3131 <img class =" project-thumbnail" src =" {{ metadata['thumbnail'] }}" />
32- <p class =" project-title" > {{ metadata['name'] }} </p >
33- <p class =" project-description" > {{ metadata['description'] }} </p >
32+ <div class =" sd-card-body" >
33+ <p class =" sd-card-title sd-font-weight-bold" > {{ metadata['name'] }} </p >
34+ <p class =" sd-card-body-text" > {{ metadata['description'] }} </p >
35+ </div >
3436 </div >
3537
3638 {% endfor %}
You can’t perform that action at this time.
0 commit comments