Skip to content

Commit dac4dc5

Browse files
authored
feat(core): updated homepage styles (event-catalog#1897)
* feat(core): updated homepage styles * Create tall-adults-end.md
1 parent 39fbd2f commit dac4dc5

File tree

5 files changed

+25
-23
lines changed

5 files changed

+25
-23
lines changed

.changeset/tall-adults-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@eventcatalog/core": patch
3+
---
4+
5+
feat(core): updated homepage styles

eventcatalog/src/components/Grids/DomainGrid.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ const ServiceCard = memo(({ service }: { service: any }) => {
135135
{/* Receives (Inbound) */}
136136
<div className="flex-1 bg-blue-50 border border-blue-200 rounded-lg p-3">
137137
<div className="flex items-center gap-1.5 mb-2">
138-
<ArrowRight className="h-3.5 w-3.5 text-blue-500" />
139138
<span className="text-xs font-semibold text-blue-700 uppercase">Inbound Messages</span>
140139
<span className="text-xs text-blue-500">({receives.length})</span>
141140
</div>
@@ -162,7 +161,6 @@ const ServiceCard = memo(({ service }: { service: any }) => {
162161
{/* Sends (Outbound) */}
163162
<div className="flex-1 bg-green-50 border border-green-200 rounded-lg p-3">
164163
<div className="flex items-center gap-1.5 mb-2">
165-
<ArrowLeft className="h-3.5 w-3.5 text-green-500" />
166164
<span className="text-xs font-semibold text-green-700 uppercase">Outbound Messages</span>
167165
<span className="text-xs text-green-500">({sends.length})</span>
168166
</div>

eventcatalog/src/components/Grids/MessageGrid.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
4141
);
4242

4343
return (
44-
<div className={`rounded-xl overflow-hidden bg-pink-50 p-8 border-2 border-dashed border-pink-300`}>
44+
<div className={`rounded-xl overflow-hidden bg-white p-8 border-2 border-dashed border-pink-300`}>
4545
{/* Service Title */}
46-
<div className="flex items-center gap-2 mb-8">
46+
{/* <div className="flex items-center gap-2 mb-8">
4747
<ServerIcon className="h-6 w-6 text-pink-500" />
4848
<h2 className="text-2xl font-semibold text-gray-900">{service.data.name}</h2>
4949
<div className="flex gap-2 ml-auto">
@@ -60,7 +60,7 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
6060
Read documentation
6161
</a>
6262
</div>
63-
</div>
63+
</div> */}
6464

6565
<div className="grid grid-cols-3 gap-8 relative">
6666
{/* Left Column - Receives Messages & Reads From Containers */}
@@ -70,7 +70,7 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
7070
<div className="mb-6">
7171
<h2 className={`font-semibold text-gray-900 flex items-center gap-2 ${embeded ? 'text-sm' : 'text-xl'}`}>
7272
<ServerIcon className="h-5 w-5 text-blue-500" />
73-
Receives ({receives.length})
73+
Inbound Messages ({receives.length})
7474
</h2>
7575
</div>
7676
{receives.length > 0 ? (
@@ -124,7 +124,7 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
124124
</div>
125125

126126
{/* Service Information (Center) */}
127-
<div className="bg-white border-2 border-pink-100 rounded-lg p-6 flex flex-col justify-center">
127+
<div className="bg-pink-50 border-2 border-pink-100 rounded-lg p-6 flex flex-col justify-center">
128128
<div className="flex flex-col items-center gap-4">
129129
<ServerIcon className="h-12 w-12 text-pink-500" />
130130
<p className="text-xl font-semibold text-gray-900 text-center">{service.data.name}</p>
@@ -133,11 +133,11 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
133133
<div className="w-full grid grid-cols-2 gap-3 mt-2">
134134
<div className="text-center p-3 bg-blue-50 rounded-lg border border-blue-200">
135135
<div className="text-2xl font-bold text-blue-600">{receives.length}</div>
136-
<div className="text-xs text-gray-600 mt-1">Receives</div>
136+
<div className="text-xs text-gray-600 mt-1">Inbound Messages</div>
137137
</div>
138138
<div className="text-center p-3 bg-green-50 rounded-lg border border-green-200">
139139
<div className="text-2xl font-bold text-green-600">{sends.length}</div>
140-
<div className="text-xs text-gray-600 mt-1">Sends</div>
140+
<div className="text-xs text-gray-600 mt-1">Outbound Messages</div>
141141
</div>
142142
{readsFrom.length > 0 && (
143143
<div className="text-center p-3 bg-orange-50 rounded-lg border border-orange-200">
@@ -168,7 +168,7 @@ export default function MessageGridV2({ service, embeded = false }: MessageGridV
168168
<div className="mb-6">
169169
<h2 className={`font-semibold text-gray-900 flex items-center gap-2 ${embeded ? 'text-sm' : 'text-xl'}`}>
170170
<ServerIcon className="h-5 w-5 text-emerald-500" />
171-
Sends ({sends.length})
171+
Outbound Messages ({sends.length})
172172
</h2>
173173
</div>
174174
{sends.length > 0 ? (

eventcatalog/src/components/SideNav/NestedSideBar/builders/domain.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
6565
},
6666
].filter(Boolean) as ChildRef[],
6767
},
68+
renderSubDomains && {
69+
type: 'group',
70+
title: 'Subdomains',
71+
icon: 'Boxes',
72+
pages: subDomains.map((domain) => `domain:${(domain as any).data.id}:${(domain as any).data.version}`),
73+
},
6874
hasFlows && {
6975
type: 'group',
7076
title: 'Flows',
@@ -81,12 +87,7 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
8187
href: buildUrl(`/docs/entities/${(entity as any).data.id}/${(entity as any).data.version}`),
8288
})),
8389
},
84-
renderSubDomains && {
85-
type: 'group',
86-
title: 'Subdomains',
87-
icon: 'Boxes',
88-
pages: subDomains.map((domain) => `domain:${(domain as any).data.id}:${(domain as any).data.version}`),
89-
},
90+
9091
...(hasResourceGroups ? buildResourceGroupSections(resourceGroups, context) : []),
9192
renderServices && {
9293
type: 'group',

eventcatalog/src/pages/_index.astro

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const topTiles = [
174174
description: 'Business domains defined',
175175
href: buildUrl('/discover/domains'),
176176
icon: RectangleGroupIcon,
177-
bgColor: 'bg-yellow-100',
177+
bgColor: 'bg-yellow-500',
178178
textColor: 'text-yellow-600',
179179
arrowColor: 'text-yellow-600',
180180
},
@@ -184,7 +184,7 @@ const topTiles = [
184184
description: 'Services documented in the catalog',
185185
href: buildUrl('/discover/services'),
186186
icon: ServerIcon,
187-
bgColor: 'bg-pink-100',
187+
bgColor: 'bg-pink-500',
188188
textColor: 'text-pink-600',
189189
arrowColor: 'text-pink-600',
190190
},
@@ -194,7 +194,7 @@ const topTiles = [
194194
description: 'Messages documented in the catalog',
195195
href: buildUrl('/discover/events'),
196196
icon: ChatBubbleLeftIcon,
197-
bgColor: 'bg-blue-100',
197+
bgColor: 'bg-blue-500',
198198
textColor: 'text-blue-600',
199199
arrowColor: 'text-blue-600',
200200
},
@@ -204,7 +204,7 @@ const topTiles = [
204204
description: 'Business flows documented',
205205
href: buildUrl('/discover/flows'),
206206
icon: Workflow,
207-
bgColor: 'bg-purple-100',
207+
bgColor: 'bg-purple-500',
208208
textColor: 'text-purple-600',
209209
arrowColor: 'text-purple-600',
210210
},
@@ -347,9 +347,7 @@ const quickActions = [
347347
<div class="absolute inset-0 bg-gradient-to-br from-gray-50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
348348

349349
{/* Colored left border accent */}
350-
<div
351-
class={`absolute left-0 top-0 bottom-0 w-1 ${tile.bgColor} opacity-0 group-hover:opacity-100 transition-opacity duration-300`}
352-
/>
350+
<div class={`absolute left-0 top-0 bottom-0 w-1 ${tile.bgColor} transition-opacity duration-300`} />
353351

354352
<div class="relative">
355353
<div class="flex items-center justify-between mb-4">

0 commit comments

Comments
 (0)