Skip to content

Commit 276ed6b

Browse files
committed
refactor: adjust grid layout and button text in LiteserversTiersSection and RestApiTiersSection for improved UI consistency; update padding and font size in SimpleTierCard for better readability
1 parent 21c32b7 commit 276ed6b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/features/tonapi/pricing/ui/LiteserversTiersSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const LiteserversTiersSection: FC = observer(() => {
7878
</Text>
7979
</Flex>
8080

81-
<Grid gap="4" templateColumns="repeat(auto-fit, minmax(290px, 1fr))">
81+
<Grid gap="4" templateColumns="repeat(auto-fit, minmax(230px, 1fr))">
8282
{liteserverTiers?.map(tier => {
8383
const price = new UsdCurrencyAmount(tier.usd_price);
8484
const isCurrent = currentLiteserverTier?.id === tier.id;
@@ -105,7 +105,7 @@ export const LiteserversTiersSection: FC = observer(() => {
105105
rps="∞"
106106
priceDescription="Contact us"
107107
onSelect={openFeedbackModal('unlimited-liteservers')}
108-
buttonText="Make request"
108+
buttonText="Request"
109109
buttonVariant="contrast"
110110
/>
111111
</Grid>

src/features/tonapi/pricing/ui/RestApiTiersSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const RestApiTiersSection: FC = observer(() => {
8484
</Text>
8585
</Flex>
8686

87-
<Grid gap="4" templateColumns="repeat(auto-fit, minmax(290px, 1fr))">
87+
<Grid gap="4" templateColumns="repeat(auto-fit, minmax(230px, 1fr))">
8888
{sortedTiers.map(tier => {
8989
const isCurrent = currentRestApiTier?.id === tier.id;
9090
const isFree = tier.price.amount.eq(0);
@@ -117,7 +117,7 @@ export const RestApiTiersSection: FC = observer(() => {
117117
rps="∞"
118118
priceDescription="Contact us"
119119
onSelect={openFeedbackModal('unlimited-tonapi')}
120-
buttonText="Make request"
120+
buttonText="Request"
121121
buttonVariant="contrast"
122122
/>
123123
</Grid>

src/features/tonapi/pricing/ui/SimpleTierCard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const SimpleTierCard: FC<SimpleTierCardProps> = ({
3030
<Card
3131
pos="relative"
3232
direction="column"
33-
p="4"
33+
p="2"
3434
border={isCurrent ? '2px solid' : '1px solid'}
3535
borderColor={isCurrent ? 'text.secondary' : 'gray.200'}
3636
transition="all 0.2s"
@@ -59,11 +59,11 @@ export const SimpleTierCard: FC<SimpleTierCardProps> = ({
5959
)}
6060

6161
<Flex justify="space-between" gap="4">
62-
<Flex direction="column" flex="1" gap="1">
62+
<Flex direction="column" flex="1">
6363
<Text textStyle="label2" color="text.secondary">
6464
{name}
6565
</Text>
66-
<H2>{price}</H2>
66+
<H2 fontSize={24}>{price}</H2>
6767
{priceDescription && (
6868
<Text textStyle="body2" color="text.secondary">
6969
{priceDescription}
@@ -82,11 +82,11 @@ export const SimpleTierCard: FC<SimpleTierCardProps> = ({
8282
{buttonText}
8383
</Button>
8484
) : (
85-
<Flex align="flex-end" direction="column" gap="1">
85+
<Flex align="flex-end" direction="column">
8686
<Text textStyle="label2" color="text.secondary">
8787
RPS
8888
</Text>
89-
<H2>{rps}</H2>
89+
<H2 fontSize={24}>{rps}</H2>
9090
</Flex>
9191
)}
9292
</Flex>

0 commit comments

Comments
 (0)