Skip to content

Commit 034e35d

Browse files
adamintCopilot
andcommitted
Polish Why Aspire and Worlds to match mockup
Why Aspire: colored titles, visible 3px top border, pixel font links, removed dangerouslySetInnerHTML, p=5 for breathing room Worlds: 165px cards with 2px borders, larger icons, readable text Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 47fbd4a commit 034e35d

1 file changed

Lines changed: 20 additions & 18 deletions

File tree

AspireAcademy.Web/src/pages/HomePage.tsx

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ export default function HomePage() {
518518
{
519519
icon: '▶️',
520520
title: 'Start everything with one command',
521-
desc: '\u003Ccode\u003Easpire run\u003C/code\u003E starts containers, waits for health checks, injects connection strings, and opens a dashboard. New developer? Clone, run, done.',
521+
desc: 'aspire run starts containers, waits for health checks, injects connection strings, and opens a dashboard. New developer? Clone, run, done.',
522522
linkLabel: 'See how → Gallery',
523523
linkTo: '/gallery',
524524
accent: '#FBBF24',
@@ -548,32 +548,36 @@ export default function HomePage() {
548548
direction="column"
549549
borderRadius="md"
550550
bg="dark.card"
551-
p="4"
551+
p="5"
552552
cursor="pointer"
553553
role="link"
554554
tabIndex={0}
555555
border="1px solid"
556556
borderColor="dark.border"
557-
css={{ borderTopWidth: '3px', borderTopColor: card.accent }}
557+
borderTop="3px solid"
558+
borderTopColor={card.accent}
559+
position="relative"
560+
overflow="hidden"
558561
_hover={{
559562
transform: 'translateY(-4px)',
560563
borderColor: card.accent,
561-
boxShadow: `0 8px 32px ${card.accentBg}`,
564+
boxShadow: `0 8px 24px ${card.accentBg}`,
562565
}}
563566
transition="all 0.3s ease"
564567
onClick={() => navigate(card.linkTo)}
565568
onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); navigate(card.linkTo); } }}
566569
>
567570
<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"
570-
dangerouslySetInnerHTML={{ __html: card.desc }}
571-
/>
571+
<Text fontWeight="bold" fontSize="13px" color={card.accent} mb="2">{card.title}</Text>
572+
<Text fontSize="12px" color="dark.muted" lineHeight="1.6" flex="1">
573+
{card.desc}
574+
</Text>
572575
<Text
573576
fontSize="10px"
574577
color={card.accent}
575578
cursor="pointer"
576579
mt="3"
580+
{...pixelFontProps}
577581
_hover={{ textDecoration: 'underline' }}
578582
onClick={(e) => { e.stopPropagation(); navigate(card.linkTo); }}
579583
>
@@ -751,12 +755,12 @@ export default function HomePage() {
751755
<Box
752756
key={w.id}
753757
bg="dark.card"
754-
border="1px solid"
758+
border="2px solid"
755759
borderColor={accent}
756760
borderRadius="lg"
757-
p="3"
758-
minW="140px"
759-
maxW="140px"
761+
p="4"
762+
minW="165px"
763+
maxW="165px"
760764
flexShrink={0}
761765
textAlign="center"
762766
cursor="pointer"
@@ -765,24 +769,22 @@ export default function HomePage() {
765769
tabIndex={0}
766770
_hover={{
767771
transform: 'translateY(-4px)',
768-
boxShadow: `0 0 16px ${accent}33`,
772+
boxShadow: `0 4px 20px ${accent}33`,
769773
}}
770774
onClick={() => navigate(`/worlds/${w.id}`)}
771775
onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); navigate(`/worlds/${w.id}`); } }}
772776
>
773-
<Text fontSize="24px" mb="1">{w.icon}</Text>
777+
<Text fontSize="28px" mb="2">{w.icon}</Text>
774778
<Text
775779
{...pixelFontProps}
776780
fontSize="7px"
777781
color={accent}
778782
mb="1"
779-
overflow="hidden"
780-
textOverflow="ellipsis"
781-
whiteSpace="nowrap"
783+
lineHeight="1.4"
782784
>
783785
{w.name}
784786
</Text>
785-
<Text fontSize="9px" color="dark.muted" lineHeight="1.3" overflow="hidden" textOverflow="ellipsis" whiteSpace="nowrap">
787+
<Text fontSize="10px" color="dark.muted" lineHeight="1.4" overflow="hidden" textOverflow="ellipsis" whiteSpace="nowrap">
786788
{w.description}
787789
</Text>
788790
</Box>

0 commit comments

Comments
 (0)