Skip to content

Commit

Permalink
feat(Challenge): Match btn style with multiple proof upload (#1281)
Browse files Browse the repository at this point in the history
Co-authored-by: Raphael Odini <[email protected]>
  • Loading branch information
TTalex and raphodn authored Jan 18, 2025
1 parent a48c78d commit 67c4f28
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/components/ChallengeTakePicturesCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
color="primary"
variant="flat"
:block="!$vuetify.display.smAndUp"
prepend-icon="mdi-image-plus"
to="/proofs/add/multiple"
>
{{ $t('Challenge.StepTakePictures.AddPictures') }}
Expand Down
9 changes: 4 additions & 5 deletions src/components/ChallengeTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<v-timeline direction="horizontal" truncate-line="both">
<v-timeline-item dot-color="success">
<div class="text-h6">
Start
{{ $t('Common.Start') }}
</div>
<template #opposite>
{{ challenge.startDate }}
Expand All @@ -11,23 +11,23 @@
<v-timeline-item dot-color="error">
<template #opposite>
<div class="text-h6">
End
{{ $t('Common.End') }}
</div>
</template>
{{ challenge.endDate }}
</v-timeline-item>
</v-timeline>
<v-progress-linear
style="width: 50%; margin-left: 25%; top: -55px; margin-top: -25px"
color="primary"
height="25"
:model-value="progress"
striped
style="width: 50%; margin-left: 25%; top: -55px; margin-top: -25px"
>
<strong>{{ daysLeftText }}</strong>
</v-progress-linear>
</template>

<script>
export default {
props: {
Expand Down Expand Up @@ -55,4 +55,3 @@ export default {
}
}
</script>

3 changes: 2 additions & 1 deletion src/components/ChallengeValidateCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
color="primary"
variant="flat"
:block="!$vuetify.display.smAndUp"
prepend-icon="mdi-checkbox-marked-circle-plus-outline"
to="/experiments/price-validation-assistant"
>
{{ $t('Challenge.StepValidate.ValidatePrices') }}
{{ $t('Common.ValidatePrices') }} 🤖
</v-btn>
</v-card-actions>
</v-card>
Expand Down
5 changes: 3 additions & 2 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@
"line1": "Price tags are automatically detected, but the robots still need your help to validate them.",
"line2": "Visit the price validation page using the button below, edit the barcode and price if needed, and validate !",
"line3": "If you're having trouble reading the label, mark it as unreable.",
"line4": "This is a collaborative effort, even if you didn't send many pictures, you can still help others by validating.",
"ValidatePrices": "Validate prices"
"line4": "This is a collaborative effort, even if you didn't send many pictures, you can still help others by validating."
},
"Stats": "Challenge stats",
"MyStats": "My stats",
Expand Down Expand Up @@ -239,6 +238,7 @@
"ExamplesWithColon": "Examples:",
"ExamplesWithColonAndValue": "Examples: {value}",
"Edit": "Edit",
"End": "End",
"Filter": "Filter",
"FilterProductWithPriceCount": "With a price",
"FilterProductWithPriceCountHide": "Hide products with prices",
Expand Down Expand Up @@ -331,6 +331,7 @@
"Share": "Share",
"Source": "Source",
"SourceCode": "Source code",
"Start": "Start",
"Stats": "Stats",
"TaglineOriginal": "An open crowdsourced database of food prices",
"TaglineAlt1": "The open crowdsourced database of prices",
Expand Down

0 comments on commit 67c4f28

Please sign in to comment.