Skip to content

Commit c1441f7

Browse files
committed
dark theme on page
1 parent 6a2528c commit c1441f7

2 files changed

Lines changed: 14 additions & 15 deletions

File tree

frontend/src/components/Landing/OddsCard.tsx

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function BookBadge({ logoUrl, name }: BookInfo) {
3535

3636
return (
3737
<Flex
38-
mt={3}
38+
mt={2}
3939
align="center"
4040
gap={2}
4141
bg={badgeBg}
@@ -72,6 +72,8 @@ function OddsPill({ value, book, label, onSelect }: OddsPillProps) {
7272
display="flex"
7373
flexDir="column"
7474
alignItems="center"
75+
justifyContent="center"
76+
gap={2}
7577
transition="all 0.2s ease-in-out"
7678
_hover={{ transform: "translateY(-3px)", bg: hoverBg, shadow: "md" }}
7779
>
@@ -166,22 +168,15 @@ export function OddsCard({
166168
{awayTeam}
167169
</Text>
168170
</Flex>
169-
<Flex direction="column" justify="center" align="center" gap={2}>
170-
<Text fontSize="sm" fontWeight="medium" color="teal.600">
171+
<Flex direction="column" align="center" justify="center" w="full" maxW="3xl" gap={4}>
172+
<Text fontSize="sm" fontWeight="medium" color="teal.600" textTransform="uppercase">
171173
{marketLabel}
172174
</Text>
173-
</Flex>
174-
175-
<Flex
176-
justify="space-evenly"
177-
align="center"
178-
gap={10}
179-
w="full"
180-
maxW="3xl"
181-
>
182-
<MarketColumn title="HOME" market={home} onSelect={() => onSelect?.("home")} />
183-
<MarketColumn title="DRAW" market={draw} onSelect={() => onSelect?.("draw")} />
184-
<MarketColumn title="AWAY" market={away} onSelect={() => onSelect?.("away")} />
175+
<Flex justify="space-evenly" align="center" gap={10} w="full">
176+
<MarketColumn title="HOME" market={home} onSelect={() => onSelect?.("home")} />
177+
<MarketColumn title="DRAW" market={draw} onSelect={() => onSelect?.("draw")} />
178+
<MarketColumn title="AWAY" market={away} onSelect={() => onSelect?.("away")} />
179+
</Flex>
185180
</Flex>
186181
</Flex>
187182
</Box>

frontend/src/routes/landing.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Link as RouterLink, createFileRoute } from "@tanstack/react-router"
33

44
import { isLoggedIn } from "@/hooks/useAuth"
55
import { OddsCard } from "@/components/Landing/OddsCard"
6+
import { ColorModeButton } from "@/components/ui/color-mode"
67
import useCustomToast from "@/hooks/useCustomToast"
78

89
export const Route = createFileRoute("/landing")({
@@ -51,6 +52,9 @@ function LandingPage() {
5152
py={12}
5253
>
5354
<Flex direction="column" gap={6}>
55+
<Flex justify="flex-end">
56+
<ColorModeButton aria-label="Toggle color mode" size="sm" />
57+
</Flex>
5458
<Heading as="h1" size="3xl">
5559
Seamless Arbitrage Insights
5660
</Heading>

0 commit comments

Comments
 (0)