Update App layout and enhance BuildingButton styles for improved UI. Adjusted spacing and column count in SimpleGrid for better building display, and refined text size and button properties in BuildingButton for enhanced readability and usability.
This commit is contained in:
parent
a41208bbfe
commit
8245b7b3b2
@ -94,8 +94,8 @@ function App() {
|
||||
cursor={hasStarted ? "pointer" : "default"}
|
||||
>
|
||||
<ResourceDisplay />
|
||||
<Box pt="100px">
|
||||
<Container maxW="container.xl">
|
||||
<Box pt="100px flex flex-col w-full">
|
||||
<Container maxW="container.xl m-auto">
|
||||
<VStack spacing={8}>
|
||||
<VStack spacing={8} w="full">
|
||||
{/* Game Title */}
|
||||
@ -103,7 +103,7 @@ function App() {
|
||||
<Heading as="h1" size="lg" color="brand.300">Clicker Clicker 2</Heading>
|
||||
</Box>
|
||||
{/* Buildings Grid */}
|
||||
<SimpleGrid columns={{ base: 1, md: 2, lg: 3 }} gap={4}>
|
||||
<SimpleGrid columns={{ base: 1, md: 2, lg: 4 }} gap={4}>
|
||||
{availableBuildings.map((building) => (
|
||||
<BuildingButton
|
||||
key={building.id}
|
||||
|
||||
@ -147,7 +147,7 @@ export function BuildingButton({
|
||||
borderBottomRightRadius="md"
|
||||
boxShadow="0 1px 3px rgba(0,0,0,0.5)"
|
||||
>
|
||||
<Text fontWeight="bold" fontSize="sm" color="brand.200" variant="pixel">{title}</Text>
|
||||
<Text fontWeight="bold" fontSize="xs" color="brand.200" variant="pixel">{title}</Text>
|
||||
</Box>
|
||||
|
||||
{/* Overlay for owned count */}
|
||||
@ -198,6 +198,13 @@ export function BuildingButton({
|
||||
color="text.dark"
|
||||
size="sm"
|
||||
flexGrow={1}
|
||||
px={1}
|
||||
height="auto"
|
||||
minH="2rem"
|
||||
whiteSpace="normal"
|
||||
textAlign="center"
|
||||
lineHeight="1.2"
|
||||
fontSize="xs"
|
||||
>
|
||||
Buy ({formatNumber(cost)} points)
|
||||
</Button>
|
||||
@ -211,6 +218,13 @@ export function BuildingButton({
|
||||
size="sm"
|
||||
flexGrow={1}
|
||||
variant="outline"
|
||||
px={1}
|
||||
height="auto"
|
||||
minH="2rem"
|
||||
whiteSpace="normal"
|
||||
textAlign="center"
|
||||
lineHeight="1.2"
|
||||
fontSize="xs"
|
||||
>
|
||||
Upgrade ({formatNumber(upgradeCost)} points)
|
||||
</Button>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user