Skip to content

Commit ea84998

Browse files
committed
Added css classes
Signed-off-by: krishnaShuk <shuklakrishna.kris@gmail.com>
1 parent fa69c03 commit ea84998

2 files changed

Lines changed: 19 additions & 47 deletions

File tree

content-learn/mastering-meshery/introduction-to-meshery/meshery/interpreting-meshery-designs.mdx

Lines changed: 15 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ These components encapsulate the resources and include their detailed configurat
5555
<h2 class="chapter-sub-heading">Meshery Design at a Glance</h2>
5656

5757
<a href={basicDesign}>
58-
<img src={basicDesign} width="100%" align="center" />
58+
<img class="image-design" src={basicDesign} width="100%" align="center" />
5959
</a>
6060

6161

@@ -93,12 +93,10 @@ Let's explore a few of these categories.
9393
1. **Triangles**:
9494

9595
<img
96+
class="image-design"
9697
src={Triangles}
9798
align="center"
9899
width="25%"
99-
style={{
100-
objectFit: 'contain !important',
101-
}}
102100
/>
103101

104102
- **Category**: **Networking and Service Management**.
@@ -111,12 +109,10 @@ Let's explore a few of these categories.
111109
2. **Rectangles**:
112110

113111
<img
112+
class="image-design"
114113
src={Rectangles}
115114
align="center"
116115
width="25%"
117-
style={{
118-
objectFit: 'contain !important',
119-
}}
120116
/>
121117

122118
- **Category**: **Hierarchical and Parent Components**
@@ -130,12 +126,10 @@ Let's explore a few of these categories.
130126
3. **User Icons**:
131127

132128
<img
129+
class="image-design"
133130
src={Users}
134131
align="center"
135132
width="25%"
136-
style={{
137-
objectFit: 'contain !important',
138-
}}
139133
/>
140134

141135
- **Category**: **Role-based access control (RBAC) components**
@@ -147,12 +141,10 @@ Let's explore a few of these categories.
147141
4. **Cylinders**:
148142

149143
<img
144+
class="image-design"
150145
src={Cylinders}
151146
align="center"
152147
width="25%"
153-
style={{
154-
objectFit: 'contain !important',
155-
}}
156148
/>
157149

158150
- **Category**: **Storage and Stateful Components**
@@ -175,25 +167,21 @@ Note that users have the flexibility to **customize** these arrow styles to suit
175167
**Edge Relationships**
176168

177169
<img
170+
class="image-design"
178171
src={DashedArrows}
179172
align="center"
180173
width="25%"
181-
style={{
182-
objectFit: 'contain !important',
183-
}}
184174
/>
185175

186176
These are used to indicate traffic flow and relationships between components. The dashed lines represent dynamic interactions and data movement, while the arrowheads show the direction of the flow or relationship.
187177

188178
**Annotations**
189179

190180
<img
181+
class="image-design"
191182
src={AnnotationArrow}
192183
align="center"
193184
width="25%"
194-
style={{
195-
objectFit: 'contain !important',
196-
}}
197185
/>
198186

199187
These are used to denote annotations or static connections between components. They serve to illustrate fixed relationships or highlight specific details without implying a flow of data or interaction.
@@ -203,12 +191,10 @@ These are used to denote annotations or static connections between components. T
203191
1. **Edge-Network Relationship**: Represented by a dashed arrow with **port/network protocol**.
204192

205193
<img
194+
class="image-design"
206195
src={NetworkEdgeRelationship}
207196
align="center"
208197
width="50%"
209-
style={{
210-
objectFit: 'contain !important',
211-
}}
212198
/>
213199

214200
- **Dashed arrow**: Indicates that the service is linked to the pod, exposing network access to it through a specified port.
@@ -217,7 +203,7 @@ These are used to denote annotations or static connections between components. T
217203
**Creating Edge-Network Relationships Between Kubernetes Components**
218204

219205
<a href={EdgeNetworkGif}>
220-
<img src={EdgeNetworkGif} width="100%" align="center" />
206+
<img class="image-design" src={EdgeNetworkGif} width="100%" align="center" />
221207
</a>
222208

223209

@@ -226,21 +212,16 @@ These are used to denote annotations or static connections between components. T
226212
The intermediary component (such as a RoleBinding) connects the two, defining how permissions are assigned. For example, a dashed arrow from a `Role` to a `ServiceAccount` with a `RoleBinding` in the middle shows the connection established by the RoleBinding, which links the specific role to the service account and grants the appropriate permissions.
227213

228214
<img
215+
class="image-design"
229216
src={EdgePermissions}
230217
align="center"
231218
width="50%"
232-
style={{
233-
objectFit: 'contain !important',
234-
}}
235219
/>
236220

237221
**Creating Edge-Permission Relationships Between Components**
238222

239223
<a href={edgePermissionGif}>
240-
<img src={edgePermissionGif} width="100%" align="center"
241-
style={{
242-
objectFit: 'contain !important',
243-
}}
224+
<img class="image-design" src={edgePermissionGif} width="100%" align="center"
244225
/>
245226
</a>
246227

@@ -255,14 +236,10 @@ Meshery extends and offers support for numerous [integrations](https://docs.mesh
255236
In Meshery, these integrated components are distinctly represented by their specific logos as icons and various shapes. These components can be found in `Components` in the dock.
256237

257238
<img
239+
class="image-design"
258240
src={Integrations}
259241
align="center"
260242
width="50%"
261-
style={{
262-
marginTop: '20px',
263-
marginBottom: '20px',
264-
objectFit: 'contain !important',
265-
}}
266243
/>
267244
<h5 class="chapter-sub-heading">_Example of integration components in Meshery_</h5>
268245

@@ -300,10 +277,7 @@ Annotations can be created using Meshery's Diagramming tools found in the dock a
300277
1. **Images**: Images can be added to the design to represent components, logos, or any visual aid that supports understanding the architecture.
301278

302279
<a href={AnnotationExampleGif}>
303-
<img src={AnnotationExampleGif} width="100%" align="center"
304-
style={{
305-
objectFit: 'contain !important',
306-
}}
280+
<img class="image-design" src={AnnotationExampleGif} width="100%" align="center"
307281
/>
308282
</a>
309283

@@ -325,21 +299,15 @@ While default shapes, colors, and icons are provided for components and annotati
325299
**Customizing Kubernetes Components**
326300

327301
<a href={CustomizeKubernetesGif}>
328-
<img src={CustomizeKubernetesGif} width="100%" align="center"
329-
style={{
330-
objectFit: 'contain !important',
331-
}}
302+
<img class="image-design" src={CustomizeKubernetesGif} width="100%" align="center"
332303
/>
333304
</a>
334305

335306

336307
**Creating and Customizing Arrow Annotations**
337308

338309
<a href={CreateAnnotationGif}>
339-
<img src={CreateAnnotationGif} width="100%" align="center"
340-
style={{
341-
objectFit: 'contain !important',
342-
}}
310+
<img class="image-design" src={CreateAnnotationGif} width="100%" align="center"
343311
/>
344312
</a>
345313

src/components/Learn-Components/Chapters-Style/chapters.style.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ export const ChapterStyle = styled.div`
2222
aspect-ratio: unset !important;
2323
margin: 20px;
2424
}
25+
26+
.image-design {
27+
object-fit: contain !important;
28+
}
2529
`;

0 commit comments

Comments
 (0)