From 1c40816dcb234902b016a6edd1a7d810ee71e5e0 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Mon, 20 May 2024 18:58:39 +0100 Subject: [PATCH] feat: marketplace improvements, remove Unsplash text, add Weather skeleton, replace Twitter with X, minor fixes etc Co-authored-by: Alex Sparkes Co-authored-by: Isaac --- .../Elements/MainModal/backend/Tab.jsx | 1 + .../MainModal/scss/marketplace/_main.scss | 4 + .../scss/marketplace/modules/_item.scss | 63 +++++- .../Elements/ShareModal/ShareModal.jsx | 12 +- .../Form/Settings/ChipSelect/ChipSelect.jsx | 54 +++--- .../components/PhotoInformation.jsx | 6 - .../background/options/BackgroundOptions.jsx | 1 + .../components/Elements/Lightbox/Lightbox.jsx | 3 +- .../SideloadFailedModal.jsx | 4 +- .../marketplace/components/Items/Item.jsx | 181 +++++++++++++----- .../marketplace/components/Items/Items.jsx | 110 ++++++----- src/features/marketplace/views/Browse.jsx | 110 ++++++----- src/features/misc/sections/About.jsx | 10 +- .../overview_skeletons/QuickLinks.jsx | 6 +- src/features/quote/Quote.jsx | 6 +- src/features/weather/Weather.jsx | 9 +- .../weather/components/WeatherSkeleton.jsx | 49 +++++ src/features/weather/weather.scss | 60 ++++++ src/i18n/locales/en_GB.json | 4 +- src/scss/index.scss | 39 ++++ vite.config.mjs | 1 + 21 files changed, 533 insertions(+), 200 deletions(-) create mode 100644 src/features/weather/components/WeatherSkeleton.jsx diff --git a/src/components/Elements/MainModal/backend/Tab.jsx b/src/components/Elements/MainModal/backend/Tab.jsx index a172a089..e3bfb36f 100644 --- a/src/components/Elements/MainModal/backend/Tab.jsx +++ b/src/components/Elements/MainModal/backend/Tab.jsx @@ -77,6 +77,7 @@ function Tab({ label, currentTab, onClick, navbarTab }) { variables.getMessage('modals.main.marketplace.all'), variables.getMessage('modals.main.settings.sections.experimental.title'), ].includes(label); + const mue = [ variables.getMessage('modals.main.marketplace.product.overview'), variables.getMessage('modals.main.addons.added'), diff --git a/src/components/Elements/MainModal/scss/marketplace/_main.scss b/src/components/Elements/MainModal/scss/marketplace/_main.scss index 85aeebcc..db456cf6 100644 --- a/src/components/Elements/MainModal/scss/marketplace/_main.scss +++ b/src/components/Elements/MainModal/scss/marketplace/_main.scss @@ -395,6 +395,10 @@ p.author { .subtitle { color: #ccc !important; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 5; } } diff --git a/src/components/Elements/MainModal/scss/marketplace/modules/_item.scss b/src/components/Elements/MainModal/scss/marketplace/modules/_item.scss index df18c231..41184526 100644 --- a/src/components/Elements/MainModal/scss/marketplace/modules/_item.scss +++ b/src/components/Elements/MainModal/scss/marketplace/modules/_item.scss @@ -47,7 +47,8 @@ p.description { } .header { - text-transform: uppercase; + // text-transform: uppercase; + font-size: small; @include themed { color: t($subColor); @@ -68,6 +69,59 @@ p.description { } } +.subHeader { + display: flex; + justify-content: space-between; + flex-wrap: wrap; + width: calc(100% - 30px); + gap: 25px; + + .items { + margin-top: 0 !important; + } + + .item { + flex: 1 0 40% !important; + } + + .infoItem { + display: flex; + flex-flow: row; + align-items: center; + gap: 15px; + flex: 1 0 44%; + + svg { + @include themed { + background-image: t($slightGradient); + box-shadow: t($boxShadow); + } + + padding: 7px; + border-radius: 100%; + } + + .text { + display: flex; + flex-flow: column; + } + } + + .header { + font-size: small; + + @include themed { + color: t($subColor); + } + } + + span { + @include themed { + color: t($color); + } + } +} + .showMoreItems { display: flex; flex-flow: column; @@ -81,3 +135,10 @@ p.description { flex-flow: column; gap: 15px; } + +.moreFromCurator { + margin-top: 50px; + display: flex; + flex-flow: column; + gap: 15px; +} diff --git a/src/components/Elements/ShareModal/ShareModal.jsx b/src/components/Elements/ShareModal/ShareModal.jsx index fa0b294f..cb3c0968 100644 --- a/src/components/Elements/ShareModal/ShareModal.jsx +++ b/src/components/Elements/ShareModal/ShareModal.jsx @@ -1,9 +1,9 @@ import { memo } from 'react'; import variables from 'config/variables'; import { MdClose, MdEmail, MdContentCopy } from 'react-icons/md'; -import { FaTwitter, FaFacebookF } from 'react-icons/fa'; +import { FaFacebookF } from 'react-icons/fa'; import { AiFillWechat } from 'react-icons/ai'; -import { SiTencentqq } from 'react-icons/si'; +import { SiTencentqq, SiX } from 'react-icons/si'; import Tooltip from '../Tooltip/Tooltip'; import { toast } from 'react-toastify'; @@ -49,13 +49,13 @@ function ShareModal({ modalClose, data }) { onClick={() => window .open( - `https://twitter.com/intent/tweet?text=Check out ${data.name} on @getmue: ${data.url}`, + `https://x.com/intent/tweet?text=Check out ${data.name} on @getmue: ${data.url}`, '_blank', ) .focus() } - icon={} - tooltipTitle="Twitter" + icon={} + tooltipTitle="X (Twitter)" type="icon" />