From ff81b5b9bbdf052ef9d1b93678ab3265982b5e88 Mon Sep 17 00:00:00 2001 From: Artemiy Solopov Date: Wed, 9 Sep 2026 17:29:12 +0300 Subject: [PATCH] Auctions index card --- src/components/auctions/Index.vue | 30 ++++++++++++++++++++++-------- src/styles/app.scss | 8 +++++++- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/src/components/auctions/Index.vue b/src/components/auctions/Index.vue index c028a8c..fc08663 100644 --- a/src/components/auctions/Index.vue +++ b/src/components/auctions/Index.vue @@ -25,19 +25,33 @@ onMounted(async () => { await loadAuctions() }) +function formatPrice(price) { + const fmt = new Intl.NumberFormat("en-US", {style: "currency", currency: "USD"}) // TODO: maybe load currency from backend or env + + return fmt.format(price) +} \ No newline at end of file diff --git a/src/styles/app.scss b/src/styles/app.scss index d8dc8d2..687c49e 100644 --- a/src/styles/app.scss +++ b/src/styles/app.scss @@ -1 +1,7 @@ -@import "bootstrap/scss/bootstrap"; \ No newline at end of file +@import "bootstrap/scss/bootstrap"; + +/* Minor adjustments */ + +.card-body > p:last-child { + margin-bottom: 0; +} \ No newline at end of file