Skip to content

Commit da5c217

Browse files
authored
Update Code for the Architecture Diagram (#257)
Update Code for the Archietcture Diagram to match the image in the main repository
1 parent d050288 commit da5c217

2 files changed

Lines changed: 603 additions & 202 deletions

File tree

ecosystem/ai-tools/beacon/components/DataFlowDiagram.module.css

Lines changed: 203 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
padding: 2.5rem 2rem 4rem;
6969
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
7070
background: #0f0f1a;
71-
min-height: 720px;
71+
min-height: 820px;
7272
}
7373

7474
.frameCompact {
@@ -125,16 +125,210 @@
125125
gap: 0.75rem;
126126
}
127127

128-
.gridExec {
128+
/* Architecture layout: ecosystem column aligned with main layers */
129+
.architectureLayout {
129130
display: grid;
130-
grid-template-columns: minmax(0, 0.2fr) minmax(0, 1fr);
131-
gap: 0.75rem;
131+
grid-template-columns: minmax(190px, 240px) 2.25rem minmax(0, 1fr);
132+
grid-template-rows: auto auto auto auto auto auto;
133+
column-gap: 0.625rem;
134+
row-gap: 0.5rem;
135+
align-items: center;
136+
}
137+
138+
.ecosystemHeader {
139+
grid-column: 1;
140+
grid-row: 1;
141+
font-size: 0.7rem;
142+
text-transform: uppercase;
143+
letter-spacing: 0.18em;
144+
color: rgba(148, 163, 184, 0.85);
145+
padding: 0 0.25rem 0.25rem;
146+
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
147+
}
148+
149+
.ecosystemRowClient {
150+
grid-column: 1;
151+
grid-row: 2;
152+
align-self: center;
153+
}
154+
155+
.arrowRowClient,
156+
.arrowRowService,
157+
.arrowRowExec {
158+
grid-column: 2;
159+
display: flex;
160+
align-items: center;
161+
justify-content: center;
162+
}
163+
164+
.arrowRowClient {
165+
grid-row: 2;
166+
}
167+
168+
.mainRowClient {
169+
grid-column: 3;
170+
grid-row: 2;
171+
min-width: 0;
172+
}
173+
174+
.connectorRpc {
175+
grid-column: 3;
176+
grid-row: 3;
177+
display: flex;
178+
justify-content: center;
179+
}
180+
181+
.ecosystemRowService {
182+
grid-column: 1;
183+
grid-row: 4;
184+
align-self: center;
185+
}
186+
187+
.arrowRowService {
188+
grid-row: 4;
189+
}
190+
191+
.mainRowService {
192+
grid-column: 3;
193+
grid-row: 4;
194+
min-width: 0;
132195
}
133196

134-
.gridConsensus {
197+
.connectorFc {
198+
grid-column: 3;
199+
grid-row: 5;
200+
display: flex;
201+
justify-content: center;
202+
}
203+
204+
.ecosystemRowExec {
205+
grid-column: 1;
206+
grid-row: 6;
207+
align-self: start;
208+
}
209+
210+
.arrowRowExec {
211+
grid-row: 6;
212+
align-self: start;
213+
padding-top: 1.25rem;
214+
}
215+
216+
.mainRowExec {
217+
grid-column: 3;
218+
grid-row: 6;
219+
min-width: 0;
220+
}
221+
222+
.ecosystemGroup {
223+
display: flex;
224+
flex-direction: column;
225+
gap: 0.5rem;
226+
padding: 0.625rem 0.5rem;
227+
border-radius: 0.625rem;
228+
border: 1px solid var(--group-border);
229+
background: var(--group-bg);
230+
transition: box-shadow 0.3s;
231+
}
232+
233+
.ecosystemGroupGenAi {
234+
--group-accent: #a5b4fc;
235+
--group-title: rgba(199, 210, 254, 0.9);
236+
--group-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(30, 27, 75, 0.35) 100%);
237+
--group-border: rgba(129, 140, 248, 0.22);
238+
}
239+
240+
.ecosystemGroupService {
241+
--group-accent: #5eead4;
242+
--group-title: rgba(153, 246, 228, 0.9);
243+
--group-bg: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(6, 78, 59, 0.3) 100%);
244+
--group-border: rgba(45, 212, 191, 0.2);
245+
}
246+
247+
.ecosystemGroupMonitoring {
248+
--group-accent: #60a5fa;
249+
--group-title: rgba(191, 219, 254, 0.9);
250+
--group-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(23, 37, 84, 0.4) 100%);
251+
--group-border: rgba(96, 165, 250, 0.22);
252+
}
253+
254+
.ecosystemGroupTitle {
255+
font-size: 0.6rem;
256+
text-transform: uppercase;
257+
letter-spacing: 0.14em;
258+
color: var(--group-title);
259+
padding-bottom: 0.125rem;
260+
}
261+
262+
.toolList {
263+
display: flex;
264+
flex-direction: column;
265+
gap: 0.3rem;
266+
}
267+
268+
.toolPill {
269+
display: flex;
270+
align-items: center;
271+
gap: 0.5rem;
272+
font-size: 0.7rem;
273+
padding: 0.35rem 0.5rem;
274+
border-radius: 0.4rem;
275+
border: 1px solid rgba(255, 255, 255, 0.05);
276+
background: rgba(8, 12, 24, 0.55);
277+
color: rgba(226, 232, 240, 0.95);
278+
}
279+
280+
.toolIconBadge {
281+
display: flex;
282+
align-items: center;
283+
justify-content: center;
284+
flex-shrink: 0;
285+
width: 1.125rem;
286+
height: 1.125rem;
287+
color: var(--group-accent);
288+
}
289+
290+
.toolIconSvg {
291+
width: 100%;
292+
height: 100%;
293+
}
294+
295+
.toolName {
296+
line-height: 1.2;
297+
min-width: 0;
298+
}
299+
300+
.arrowHorizontal {
301+
display: flex;
302+
align-items: center;
303+
justify-content: center;
304+
flex-shrink: 0;
305+
}
306+
307+
.consensusGrid {
308+
display: flex;
309+
flex-direction: column;
310+
gap: 0.5rem;
311+
margin-bottom: 0.75rem;
312+
}
313+
314+
.consensusRow {
135315
display: grid;
136-
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
137-
gap: 0.75rem;
316+
grid-template-columns: repeat(3, 1fr);
317+
gap: 0.5rem;
318+
}
319+
320+
.consensusAlgo {
321+
text-align: center;
322+
font-size: 0.8125rem;
323+
}
324+
325+
.networkSubstrate {
326+
padding: 0.5rem 0.75rem;
327+
text-align: center;
328+
font-size: 0.8125rem;
329+
color: rgb(236, 254, 255);
330+
text-transform: uppercase;
331+
letter-spacing: 0.08em;
138332
}
139333

140334
.flexCol {
@@ -331,29 +525,6 @@
331525
color: rgb(148, 163, 184);
332526
}
333527

334-
/* Network block */
335-
.networkBlock {
336-
min-height: 140px;
337-
padding: 1rem 0;
338-
grid-row: span 2;
339-
}
340-
341-
.networkBlockCompact {
342-
min-height: 100px;
343-
padding: 0.5rem 0;
344-
}
345-
346-
/* RDBC block */
347-
.rdbcBlock {
348-
min-height: 72px;
349-
padding: 1.25rem 0;
350-
}
351-
352-
.rdbcBlockCompact {
353-
min-height: 56px;
354-
padding: 0.75rem 0;
355-
}
356-
357528
/* Spacing */
358529
.mb2 {
359530
margin-bottom: 0.5rem;
@@ -373,12 +544,12 @@
373544
margin-left: auto;
374545
margin-right: auto;
375546
width: 100%;
376-
max-width: 900px;
547+
max-width: 1200px;
377548
font-family: system-ui, -apple-system, sans-serif;
378549
}
379550

380551
.wrapperCompact {
381-
max-width: 1100px;
552+
max-width: 1320px;
382553
}
383554

384555
/* Fit viewport */

0 commit comments

Comments
 (0)