Skip to content

Commit

Permalink
update modal cards
Browse files Browse the repository at this point in the history
  • Loading branch information
aabidsofi19 committed Jan 29, 2024
1 parent b4be175 commit 22f10ff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _includes/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
<h4 class="pattern-name">{{pattern.name}}</h4>
<div class="pattern-image-container">
<img class= "pattern-image"
<img class= "pattern-image pattern-snapshot"
data-snapshot-light="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}-light.png"
data-snapshot-dark="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}-dark.png"
src="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}-dark.png"
Expand Down
6 changes: 5 additions & 1 deletion _includes/modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ <h6 class="pattern-type"> {{pattern.type | upcase }}</h6>
{%if pattern.filters.type == "wasm filter" %}
<img class="image-class" src="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}.png" onerror="this.src='/assets/images/webassembly_logo.svg'" loading="lazy" onclick="toggleFullScreenImage('{{ pattern.patternId }}')" />
{%else%}
<img class="image-class" src="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}.png" onerror="this.src='/assets/images/patterns/service-mesh.svg'" loading="lazy" onclick="toggleFullScreenImage('{{ pattern.patternId }}')" />
<img class="image-class pattern-snapshot"
data-snapshot-light="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}-light.png"
data-snapshot-dark="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}-dark.png"
src="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}-dark.png"
onerror="this.src='/assets/images/patterns/service-mesh.svg'" loading="lazy" onclick="toggleFullScreenImage('{{ pattern.patternId }}')" />
{%endif%}
<h4 class="related-patterns">RELATED PATTERNS</h4>
{% include related-patterns.html %}
Expand Down
6 changes: 5 additions & 1 deletion _includes/partials/mini-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<small class="modal-pattern-type"> {{pttrn.type}}</small>
</div>
<h5 class="modal-pattern-name">{{pttrn.name}}</h5>
<img class= "modal-pattern-image" src="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pttrn.patternId}}.png" onerror="this.src='/assets/images/patterns/service-mesh.svg'" loading="lazy"/>
<img class= "modal-pattern-image pattern-snapshot"
data-snapshot-light="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}-light.png"
data-snapshot-dark="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}-dark.png"
src="https://raw.githubusercontent.com/layer5labs/meshery-extensions-packages/master/action-assets/design-assets/{{pattern.patternId}}-dark.png"
onerror="this.src='/assets/images/patterns/service-mesh.svg'" loading="lazy"/>
<div>
<h6 class="modal-pattern-id">
<img class="modal-smp"
Expand Down

0 comments on commit 22f10ff

Please sign in to comment.