Skip to content

Commit a8dfb1a

Browse files
committed
[Catalog] Update catalog title, restructure layout, and enhance styles for improved readability
Signed-off-by: Lee Calcote <[email protected]>
1 parent e38303c commit a8dfb1a

File tree

5 files changed

+70
-50
lines changed

5 files changed

+70
-50
lines changed

_includes/help-modal.html renamed to _includes/catalog-help-modal.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@
8282
cursor: pointer;
8383
}
8484
</style>
85-
<p class="catalog-subtext">
86-
Easily <span style="color: #00D3A9; cursor: pointer;" id="myBtn">import any catalog item</span> into Meshery. Have a design pattern to share? <a style ="color: #00D3AF; text-decoration: none;" href="https://docs.meshery.io/concepts/catalog#to-create-a-design-pattern-using-meshery-ui" target="_blank">Add yours to the catalog.</a></p>
85+
86+
87+
8788
<div id="myModal" class="help-modal">
8889
<div class="help-modal-content">
8990

@@ -140,7 +141,7 @@ <h3>Meshery CLI</h3>
140141

141142
<script src="{{ site.baseurl }}/assets/js/help-modal.js"></script>
142143
<script>
143-
function openTab(evt, cityName) {
144+
function openTab(evt, tabName) {
144145
var i, tabcontent, tablinks;
145146
tabcontent = document.getElementsByClassName("tabcontent");
146147
for (i = 0; i < tabcontent.length; i++) {
@@ -150,7 +151,7 @@ <h3>Meshery CLI</h3>
150151
for (i = 0; i < tablinks.length; i++) {
151152
tablinks[i].className = tablinks[i].className.replace(" active", "");
152153
}
153-
document.getElementById(cityName).style.display = "block";
154+
document.getElementById(tabName).style.display = "block";
154155
evt.currentTarget.className += " active";
155156
}
156157
</script>

_includes/partials/feature.html renamed to _includes/partials/catalog-feature.html

Lines changed: 53 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,53 @@
1-
<h1 class="catalog-heading" style="padding-bottom: 0.5rem;">Cloud Native Catalog</h1>
2-
{% include help-modal.html %}
3-
<div class="features-container">
1+
<h2 class="catalog-heading">Cloud Native Catalog</h2>
2+
<h3 class="catalog-subheading">Harness Well-Architected Kubernetes Patterns</h3>
3+
4+
<p class="catalog-subtext">
5+
Discover and use top-quality patterns and conventions as templates for your cloud native infrastructure with Meshery Catalog.</p>
6+
<p class="catalog-subtext">
7+
<span style="color: #00D3A9; cursor: pointer;" id="myBtn">Publish your own best practices</span> and <a style ="color: #00D3AF; text-decoration: none;" href="https://docs.meshery.io/concepts/catalog#to-create-a-design-pattern-using-meshery-ui" target="_blank">share with team members and the world</a>.</p>
8+
9+
10+
{% include catalog-help-modal.html %}
11+
12+
13+
14+
<!-- <script type="module">
15+
import data from "{{ site.baseurl }}/integrations/data.js";
16+
17+
const pattern = document.getElementById("pattern");
18+
const filter = document.getElementById("filter");
19+
20+
const patternCards = document.querySelectorAll(".ptrn");
21+
const filterCards = document.querySelectorAll(".wsm");
22+
const ComingSoonCards = document.querySelectorAll(".cmg");
23+
24+
25+
function showElements(elements) {
26+
elements.forEach((element) => {
27+
element.style.display = "block";
28+
});
29+
}
30+
31+
function hideElements(elements) {
32+
elements.forEach((element) => {
33+
element.style.display = "none";
34+
});
35+
}
36+
37+
pattern.addEventListener("click", () => {
38+
hideElements(filterCards);
39+
showElements(patternCards);
40+
showElements(ComingSoonCards);
41+
});
42+
43+
filter.addEventListener("click", () => {
44+
hideElements(patternCards);
45+
hideElements(ComingSoonCards);
46+
showElements(filterCards);
47+
});
48+
49+
</script> -->
50+
<!-- <div class="features-container">
451
552
<div class="feature-container">
653
<div class="box">
@@ -37,7 +84,7 @@ <h1 class="catalog-heading" style="padding-bottom: 0.5rem;">Cloud Native Catalog
3784
</div>
3885
<div class="description wasm">Embedded in the data plane of a service mesh, WebAssembly filters offer fine-grained control over service requests.</div>
3986
</div>
40-
<!-- <div class="feature-container">
87+
<div class="feature-container">
4188
<div class="box">
4289
<div class="title ebpf">Programs</div>
4390
<img class="patterns-coming-soon" src="{{site.baseurl}}/assets/images/coming-soon.png" />
@@ -53,7 +100,7 @@ <h1 class="catalog-heading" style="padding-bottom: 0.5rem;">Cloud Native Catalog
53100
</div>
54101
</div>
55102
<div class="description ebpf">Embedded in the data plane of a service mesh, eBPF programs performant, fine-grained control over service requests.</div>
56-
</div>-->
103+
</div>
57104
58105
<div class="feature-container">
59106
<div class="box">
@@ -72,41 +119,4 @@ <h1 class="catalog-heading" style="padding-bottom: 0.5rem;">Cloud Native Catalog
72119
</div>
73120
<div class="description opa">Applied across the cloud native infrastructure under management, policies may be applied broadly and specificly.</div>
74121
</div>
75-
</div>
76-
77-
<script type="module">
78-
import data from "{{ site.baseurl }}/integrations/data.js";
79-
80-
const pattern = document.getElementById("pattern");
81-
const filter = document.getElementById("filter");
82-
83-
const patternCards = document.querySelectorAll(".ptrn");
84-
const filterCards = document.querySelectorAll(".wsm");
85-
const ComingSoonCards = document.querySelectorAll(".cmg");
86-
87-
88-
function showElements(elements) {
89-
elements.forEach((element) => {
90-
element.style.display = "block";
91-
});
92-
}
93-
94-
function hideElements(elements) {
95-
elements.forEach((element) => {
96-
element.style.display = "none";
97-
});
98-
}
99-
100-
pattern.addEventListener("click", () => {
101-
hideElements(filterCards);
102-
showElements(patternCards);
103-
showElements(ComingSoonCards);
104-
});
105-
106-
filter.addEventListener("click", () => {
107-
hideElements(patternCards);
108-
hideElements(ComingSoonCards);
109-
showElements(filterCards);
110-
});
111-
112-
</script>
122+
</div> -->

_layouts/catalog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ <h3>Pattern Management</h3>
1414

1515
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
1616
-->
17-
{% include partials/feature.html type="pattern" %}
17+
{% include partials/catalog-feature.html type="pattern" %}
1818
<div class="catalog">{% include patterns-filter.html %} {{ content }}</div>
1919
<!-- CARD-END -->

_sass/catalog.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
@use "./variables.scss" as *;
22
.catalog-heading {
33
text-align: center;
4+
font-weight:700;
45
margin: 2.5rem 0 1rem 0;
56
word-spacing: 5px;
7+
font-size: 2.5rem;
8+
}
9+
.catalog-subheading {
10+
text-align: center;
11+
font-weight: 500;
12+
margin: 1rem auto;
13+
font-size: 2rem;
614
}
715
.catalog-subtext {
816
text-align: center;
@@ -113,7 +121,7 @@
113121
opacity: 0.7;
114122
}
115123
.catalog {
116-
padding-top: 5rem;
124+
padding-top: 1rem;
117125
padding-bottom: 2rem;
118126
display: flex;
119127

collections/_pages/catalog.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: catalog
3-
title: Cloud Native Catalog
3+
title: Cloud Native Catalogsz
44
permalink: /catalog
55
---
66

@@ -55,6 +55,7 @@
5555

5656
{% assign catalog = site.collections | concat: site.catalog | concat: site.models | sort: 'name' %}
5757
<div class="section-container">
58+
5859
{% include view-all.html %}
5960

6061
<div class="row">

0 commit comments

Comments
 (0)