From e50480eddc657916458cb33c9025b54fdcf14f71 Mon Sep 17 00:00:00 2001 From: nntthuy-axonivy Date: Mon, 22 Jul 2024 17:40:54 +0700 Subject: [PATCH] Alter not-found search text --- .../src/app/modules/product/product.component.html | 13 +++++++++++-- .../src/app/modules/product/product.component.scss | 13 ++++++++++++- marketplace-ui/src/assets/i18n/de.yaml | 2 +- marketplace-ui/src/assets/i18n/en.yaml | 4 ++-- .../src/assets/images/misc/search-off.svg | 11 +++++++++++ 5 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 marketplace-ui/src/assets/images/misc/search-off.svg diff --git a/marketplace-ui/src/app/modules/product/product.component.html b/marketplace-ui/src/app/modules/product/product.component.html index 333bbcbf6..853bf1d48 100644 --- a/marketplace-ui/src/app/modules/product/product.component.html +++ b/marketplace-ui/src/app/modules/product/product.component.html @@ -36,8 +36,17 @@

} } @else { -
- {{ 'common.nothingFound' | translate }} +
+
+ Search not found +
+
} diff --git a/marketplace-ui/src/app/modules/product/product.component.scss b/marketplace-ui/src/app/modules/product/product.component.scss index e01ebbe71..0b184b05f 100644 --- a/marketplace-ui/src/app/modules/product/product.component.scss +++ b/marketplace-ui/src/app/modules/product/product.component.scss @@ -2,6 +2,17 @@ min-height: 6em; } -.mt-8{ +.mt-8 { margin-top: 8rem; } + +.not-found-result { + max-width: 500px; + margin-bottom: 4rem; + + .not-found-text { + line-height: 140%; + color: var(--text-no-rating-color); + margin-top: 20px; + } +} diff --git a/marketplace-ui/src/assets/i18n/de.yaml b/marketplace-ui/src/assets/i18n/de.yaml index 0cc69d0ed..64524d90a 100644 --- a/marketplace-ui/src/assets/i18n/de.yaml +++ b/marketplace-ui/src/assets/i18n/de.yaml @@ -35,7 +35,7 @@ common: lowest: Niedrigste search: placeholder: Suche - nothingFound: Nichts gefunden + nothingFound: Leider hat deine Suche keinen Treffer ergeben.
Ändere deinen Suchbegriff oder stöbere in unseren Kategorien nach ähnlichen Themen. header: download: Download footer: diff --git a/marketplace-ui/src/assets/i18n/en.yaml b/marketplace-ui/src/assets/i18n/en.yaml index 6b4d76a25..70876ac43 100644 --- a/marketplace-ui/src/assets/i18n/en.yaml +++ b/marketplace-ui/src/assets/i18n/en.yaml @@ -39,7 +39,7 @@ common: lowest: Lowest search: placeholder: Search a keyword - nothingFound: Nothing found + nothingFound: Your search did not yield any results.
Please modify your search terms or browse our categories for related content. header: download: Download footer: @@ -88,7 +88,7 @@ common: label: Choose artifact feedback: label: Feedback - successMessage: Your feedback has been successfully submitted! + successMessage: Your feedback has been successfully submitted! thankMessage: Thank you for your contribution addFeedbackTitle: Give your feedback! addFeedbackDescription: By giving your feedback you are enabling us to constantly improve our products and always deliver the best quality to both you and your team. diff --git a/marketplace-ui/src/assets/images/misc/search-off.svg b/marketplace-ui/src/assets/images/misc/search-off.svg new file mode 100644 index 000000000..0ecde8570 --- /dev/null +++ b/marketplace-ui/src/assets/images/misc/search-off.svg @@ -0,0 +1,11 @@ + + + + + + + + + + +