Skip to content

Commit 2cd5266

Browse files
authored
chore: visual rework (#140)
1 parent 6658185 commit 2cd5266

6 files changed

Lines changed: 11 additions & 10 deletions

File tree

apps/storefront-telegram/app/app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default defineAppConfig({
5353
},
5454
drawer: {
5555
slots: {
56-
content: '!max-h-10/12',
56+
content: '!max-h-10/12 ring-default',
5757
},
5858
},
5959
navigationMenu: {

apps/storefront-telegram/app/components/cart/Button.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
v-if="isCartButtonShown"
44
variant="solid"
55
color="secondary"
6-
class="flex-1 transition-all duration-200 ease-in-out"
6+
class="flex-1 transition-all duration-200 ease-in-out motion-preset-slide-down motion-duration-500"
77
:ui="{
88
base: 'px-4 py-2 h-14',
99
}"

apps/storefront-telegram/app/components/catalog/CategoriesNavigator.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
:key="category.id"
3434
variant="ghost"
3535
color="neutral"
36-
size="lg"
37-
class="px-0 motion-preset-slide-left"
36+
size="xl"
37+
class="-ml-2 px-2 py-1.5 font-medium motion-preset-slide-left"
3838
:class="[
3939
visibleCategory === category.slug
4040
? 'font-semibold text-primary'

apps/storefront-telegram/app/components/catalog/CategoryBlock.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
ref="target"
44
class="flex flex-col gap-3 mb-10"
55
>
6-
<h2 :id="category?.slug" class="scroll-mt-34 text-2xl/5 font-semibold tracking-tight">
6+
<h2 :id="category?.slug" class="scroll-mt-36 text-2xl/5 font-semibold tracking-tight">
77
{{ category?.name }}
88
</h2>
99

1010
<div class="grid grid-cols-2 gap-2 items-start justify-between">
11-
<ProductCard
11+
<CatalogProductCard
1212
v-for="product in products"
1313
:key="product.id"
1414
:product-id="product.id"

apps/storefront-telegram/app/components/ProductCard.vue renamed to apps/storefront-telegram/app/components/catalog/ProductCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111

1212
<div class="px-3 py-1 flex-1 flex flex-col gap-1">
13-
<p class="text-sm/4 font-medium">
13+
<p class="text-sm/4 font-semibold">
1414
{{ product?.name }}
1515
</p>
1616

apps/storefront-telegram/app/pages/menu.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<UButton
3030
variant="ghost"
3131
color="primary"
32-
class="p-0 text-lg font-medium"
32+
class="p-0 text-lg font-semibold"
3333
:label="formatted"
3434
@click="handleCall()"
3535
/>
@@ -40,13 +40,14 @@
4040
variant="ghost"
4141
to="https://vk.com/sushiloveru"
4242
target="_blank"
43-
color="neutral"
43+
color="primary"
4444
size="xl"
4545
icon="simple-icons:vk"
4646
class="p-0"
4747
:ui="{
4848
leadingIcon: 'size-8',
4949
}"
50+
@click="vibrate()"
5051
/>
5152
</div>
5253
</PageContainer>
@@ -61,7 +62,7 @@ const channelStore = useChannelStore()
6162
6263
const tel = '79959999999'
6364
const formatted = parsePhoneNumberWithError(tel, 'RU').format('INTERNATIONAL')
64-
const formattedToCall = `tel:${tel}`
65+
const formattedToCall = `tel:+${tel}`
6566
6667
async function handleCall() {
6768
vibrate()

0 commit comments

Comments
 (0)