Skip to content

Commit e6cde94

Browse files
adamintCopilot
andcommitted
Fix Why Aspire spacing: tighter gaps, equal-height cards, plain emoji icons
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3849d38 commit e6cde94

1 file changed

Lines changed: 9 additions & 21 deletions

File tree

AspireAcademy.Web/src/pages/HomePage.tsx

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@ export default function HomePage() {
499499
>
500500
Why Aspire?
501501
</Heading>
502-
<Text textAlign="center" color="dark.muted" mb="10" maxW="700px" mx="auto" lineHeight="1.7">
502+
<Text textAlign="center" color="dark.muted" mb="6" maxW="700px" mx="auto" lineHeight="1.7">
503503
Every team that splits into services inherits the same problems: wiring connection strings,
504504
coordinating startup, reading four log files to debug one request, maintaining separate configs
505505
per environment.
506506
</Text>
507-
<SimpleGrid columns={{ base: 1, sm: 2, lg: 4 }} gap="5" maxW="1100px" mx="auto">
507+
<SimpleGrid columns={{ base: 1, sm: 2, lg: 4 }} gap="4" maxW="1100px" mx="auto">
508508
{[
509509
{
510510
icon: '🏗️',
@@ -543,16 +543,15 @@ export default function HomePage() {
543543
accentBg: 'rgba(52,211,153,0.12)',
544544
},
545545
].map((card) => (
546-
<Box
546+
<Flex
547547
key={card.title}
548+
direction="column"
548549
borderRadius="md"
549550
bg="dark.card"
550551
p="4"
551552
cursor="pointer"
552553
role="link"
553554
tabIndex={0}
554-
borderTop="3px solid"
555-
borderTopColor={card.accent}
556555
border="1px solid"
557556
borderColor="dark.border"
558557
css={{ borderTopWidth: '3px', borderTopColor: card.accent }}
@@ -565,33 +564,22 @@ export default function HomePage() {
565564
onClick={() => navigate(card.linkTo)}
566565
onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); navigate(card.linkTo); } }}
567566
>
568-
<Flex align="center" gap="3" mb="2">
569-
<Flex
570-
align="center"
571-
justify="center"
572-
w="36px"
573-
h="36px"
574-
borderRadius="md"
575-
bg={card.accentBg}
576-
flexShrink={0}
577-
>
578-
<Text fontSize="xl">{card.icon}</Text>
579-
</Flex>
580-
<Text fontWeight="bold" fontSize="sm" color="dark.text">{card.title}</Text>
581-
</Flex>
582-
<Text fontSize="11px" color="dark.muted" lineHeight="1.6" mb="3"
567+
<Text fontSize="2xl" mb="2">{card.icon}</Text>
568+
<Text fontWeight="bold" fontSize="sm" color="dark.text" mb="2">{card.title}</Text>
569+
<Text fontSize="11px" color="dark.muted" lineHeight="1.6" flex="1"
583570
dangerouslySetInnerHTML={{ __html: card.desc }}
584571
/>
585572
<Text
586573
fontSize="10px"
587574
color={card.accent}
588575
cursor="pointer"
576+
mt="3"
589577
_hover={{ textDecoration: 'underline' }}
590578
onClick={(e) => { e.stopPropagation(); navigate(card.linkTo); }}
591579
>
592580
{card.linkLabel}
593581
</Text>
594-
</Box>
582+
</Flex>
595583
))}
596584
</SimpleGrid>
597585
</Box>

0 commit comments

Comments
 (0)