Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Home page design refresh (again)

Matt Roberts17e9f4558967
diff --git a/public/assets/images/chevron-up.svg b/public/assets/images/chevron-up.svg
new file mode 100644
index 000000000..0ef067896
--- /dev/null
+++ b/public/assets/images/chevron-up.svg
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
+ <polyline points="18 15 12 9 6 15"></polyline>
+</svg>
diff --git a/public/assets/images/heroicons-filter.svg b/public/assets/images/heroicons-filter.svg
index 949a0acaf..ffa3684c1 100644
--- a/public/assets/images/heroicons-filter.svg
+++ b/public/assets/images/heroicons-filter.svg
@@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
- <path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75" />
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z" />
</svg>
diff --git a/public/assets/styles/utility/display.scss b/public/assets/styles/utility/display.scss
index dd6c23b30..c8084139b 100644
--- a/public/assets/styles/utility/display.scss
+++ b/public/assets/styles/utility/display.scss
@@ -67,6 +67,14 @@
}
}
+@include media("xl2") {
+ .container {
+ width: 1320px;
+ margin-left: auto;
+ margin-right: auto;
+ }
+}
+
.box {
border-radius: get("border.radius.large");
background-color: var(--colors-white);
diff --git a/public/assets/styles/variables.scss b/public/assets/styles/variables.scss
index a2ffecf70..38b566e85 100644
--- a/public/assets/styles/variables.scss
+++ b/public/assets/styles/variables.scss
@@ -30,17 +30,19 @@ $all: (
small: 6px,
medium: 8px,
large: 12px,
+ xlarge: 20px,
full: 999px,
),
),
);
// Queries
-$medias: "sm", "md", "lg", "xl";
+$medias: "sm", "md", "lg", "xl", "xl2";
$sm-width: 576px;
$md-width: 768px;
$lg-width: 992px;
$xl-width: 1200px;
+$xl2-width: 1400px;
@mixin media($media) {
@if $media == "sm" {
@@ -59,6 +61,10 @@ $xl-width: 1200px;
@media only screen and (min-width: #{$xl-width}) {
@content;
}
+ } @else if $media == "xl2" {
+ @media only screen and (min-width: #{$xl2-width}) {
+ @content;
+ }
}
}
diff --git a/public/assets/styles/variables/_text.scss b/public/assets/styles/variables/_text.scss
index 015668900..0ef975686 100644
--- a/public/assets/styles/variables/_text.scss
+++ b/public/assets/styles/variables/_text.scss
@@ -22,5 +22,6 @@ $font: (
medium: 500,
semibold: 600,
bold: 700,
+ xbold: 800,
),
);
diff --git a/public/components/Header.tsx b/public/components/Header.tsx
index e841b5a04..64b36af7e 100644
--- a/public/components/Header.tsx
+++ b/public/components/Header.tsx
@@ -1,10 +1,11 @@
import React, { useState } from "react"
-import { SignInModal, RSSModal, TenantLogo, NotificationIndicator, UserMenu, ThemeSwitcher, Icon } from "@fider/components"
+import { SignInModal, RSSModal, TenantLogo, NotificationIndicator, UserMenu, ThemeSwitcher, Icon, Button } from "@fider/components"
import { useFider } from "@fider/hooks"
import { HStack } from "./layout"
import { Trans } from "@lingui/react/macro"
import { i18n } from "@lingui/core"
import IconRss from "@fider/assets/images/heroicons-rss.svg"
+import IconArrowLeft from "@fider/assets/images/heroicons-arrowleft.svg"
interface HeaderProps {
hasInert?: boolean
@@ -15,8 +16,7 @@ export const Header = (props: HeaderProps) => {
const [isSignInModalOpen, setIsSignInModalOpen] = useState(false)
const [isRSSModalOpen, setIsRSSModalOpen] = useState(false)
- const showSignInModal = (e: React.MouseEvent) => {
- e.preventDefault()
+ const handleSignInClick = () => {
setIsSignInModalOpen(true)
}
@@ -60,9 +60,14 @@ export const Header = (props: HeaderProps) => {
</button>
)}
<ThemeSwitcher />
- <a href="#" className="uppercase text-sm" onClick={showSignInModal}>
- <Trans id="action.signin">Sign in</Trans>
- </a>
+ <Button variant="primary" size="default" onClick={handleSignInClick}>
+ <HStack spacing={1} className="flex-items-center">
+ <Icon sprite={IconArrowLeft} className="h-4" style={{ transform: "rotate(180deg)" }} />
+ <span>
+ <Trans id="action.signin">Sign in</Trans>
+ </span>
+ </HStack>
+ </Button>
</HStack>
)}
</HStack>
diff --git a/public/components/VoteCounter.scss b/public/components/VoteCounter.scss
index 40d7926a7..37a8be575 100644
--- a/public/components/VoteCounter.scss
+++ b/public/components/VoteCounter.scss
@@ -2,58 +2,73 @@
.c-vote-counter {
&__button {
- font-size: get("font.size.lg");
- width: sizing(12);
- height: sizing(12);
+ width: sizing(14);
+ height: sizing(14);
cursor: pointer;
text-align: center;
margin: 0 auto;
- padding: 3px 0 8px 0;
- color: var(--colors-gray-600);
+ padding: spacing(3) 0;
+ color: var(--colors-gray-500);
display: flex;
flex-direction: column;
align-items: center;
- border-radius: 8px;
+ justify-content: center;
+ gap: spacing(2);
+ border-radius: 12px;
transition: all 0.15s ease;
- background-color: transparent;
- border: 1px solid transparent;
-
- svg {
- color: var(--colors-gray-600);
- margin-bottom: -2px;
- transition: all 0.15s ease;
- }
+ background-color: var(--colors-gray-50);
+ border: 1px solid var(--colors-gray-200);
&:hover {
- background-color: var(--colors-gray-50);
+ background-color: var(--colors-white);
+ border-color: var(--colors-gray-300);
color: var(--colors-primary-base);
- svg {
+
+ .c-vote-counter__icon {
color: var(--colors-primary-base);
- transform: scale(1.1);
+ transform: translateY(-1px);
}
}
&--voted {
- justify-content: center;
- padding: 0;
+ padding: spacing(3) 0;
+ gap: spacing(2);
font-weight: get("font.weight.bold");
background-color: var(--colors-blue-50);
color: var(--colors-primary-base);
border-color: var(--colors-primary-light);
- svg {
+ .c-vote-counter__icon {
color: var(--colors-primary-base);
}
+ .c-vote-counter__count {
+ font-weight: get("font.weight.bold");
+ }
+
&:hover {
background-color: var(--colors-blue-100);
}
}
&--disabled {
- justify-content: center;
- padding: 0;
+ padding: spacing(3) 0;
+ gap: spacing(2);
@include disabled();
}
}
+
+ &__icon {
+ width: 18px;
+ height: 18px;
+ color: var(--colors-gray-500);
+ transition: all 0.15s ease;
+ flex-shrink: 0;
+ }
+
+ &__count {
+ font-size: get("font.size.sm");
+ font-weight: get("font.weight.semibold");
+ line-height: 1;
+ }
}
diff --git a/public/components/VoteCounter.tsx b/public/components/VoteCounter.tsx
index 5604e153b..28f83bd1b 100644
--- a/public/components/VoteCounter.tsx
+++ b/public/components/VoteCounter.tsx
@@ -5,7 +5,7 @@ import { Post, PostStatus } from "@fider/models"
import { actions, classSet } from "@fider/services"
import { Icon, SignInModal } from "@fider/components"
import { useFider } from "@fider/hooks"
-import FaCaretUp from "@fider/assets/images/fa-caretup.svg"
+import ChevronUp from "@fider/assets/images/chevron-up.svg"
export interface VoteCounterProps {
post: Post
@@ -46,15 +46,15 @@ export const VoteCounter = (props: VoteCounterProps) => {
const vote = (
<button className={className} onClick={voteOrUndo}>
- {!hasVoted && <Icon sprite={FaCaretUp} height="16" width="16" />}
- {votesCount}
+ {!hasVoted && <Icon sprite={ChevronUp} className="c-vote-counter__icon" />}
+ <span className="c-vote-counter__count">{votesCount}</span>
</button>
)
const disabled = (
<button className={className}>
- {!hasVoted && <Icon sprite={FaCaretUp} height="16" width="16" />}
- {votesCount}
+ {!hasVoted && <Icon sprite={ChevronUp} className="c-vote-counter__icon" />}
+ <span className="c-vote-counter__count">{votesCount}</span>
</button>
)
diff --git a/public/pages/Home/Home.page.scss b/public/pages/Home/Home.page.scss
index ee5910943..c7b8d1ca1 100644
--- a/public/pages/Home/Home.page.scss
+++ b/public/pages/Home/Home.page.scss
@@ -5,6 +5,9 @@
grid-template-columns: 1fr;
column-gap: 0;
row-gap: spacing(8);
+ background-color: var(--colors-gray-100);
+ padding-top: spacing(12);
+ padding-bottom: spacing(12);
@include media("lg") {
grid-template-columns: 1fr 1fr 1fr;
@@ -14,27 +17,63 @@
.p-home {
&__welcome-col {
- > :first-child {
- background-color: var(--colors-white);
- border-radius: get("border.radius.large");
- border: 1px solid var(--colors-gray-200);
+ @include media("lg") {
+ padding-right: spacing(4);
+ }
+ }
+
+ &__welcome-title {
+ font-size: 32px;
+ font-weight: get("font.weight.xbold");
+ line-height: 1.2;
+ color: var(--colors-gray-900);
+ letter-spacing: -0.5px;
- @include media("lg") {
- }
+ @include media("lg") {
+ font-size: 36px;
}
}
+ &__welcome-body {
+ // font-size: get("font.size.lg");
+ line-height: 1.6;
+ // color: var(--colors-gray-700);
+ }
+
&__posts-col {
+ grid-column: span 2 / span 2;
+ }
+
+ &__add-idea-btn {
+ width: 100%;
+ margin-bottom: spacing(6);
+ padding: spacing(5);
background-color: var(--colors-white);
- border-radius: get("border.radius.large");
border: 1px solid var(--colors-gray-200);
+ border-radius: get("border.radius.xlarge");
+ box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
+ cursor: pointer;
+ transition: box-shadow 0.2s ease-in-out;
+ font-size: get("font.size.lg");
+ font-weight: get("font.weight.medium");
+ color: var(--colors-gray-700);
+ text-align: left;
- @include media("lg") {
+ &:hover {
+ box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
+ }
+
+ &:focus {
+ outline: 2px solid var(--colors-primary-base);
+ outline-offset: 2px;
}
}
- &__posts-col {
- grid-column: span 2 / span 2;
+ &__add-idea-icon {
+ width: 40px;
+ height: 40px;
+ color: var(--colors-primary-base);
+ flex-shrink: 0;
}
}
}
diff --git a/public/pages/Home/Home.page.tsx b/public/pages/Home/Home.page.tsx
index f7a30b6af..a64c82cd4 100644
--- a/public/pages/Home/Home.page.tsx
+++ b/public/pages/Home/Home.page.tsx
@@ -1,12 +1,13 @@
import "./Home.page.scss"
import NoDataIllustration from "@fider/assets/images/undraw-no-data.svg"
+import IconPlusCircle from "@fider/assets/images/heroicons-pluscircle.svg"
import React, { useEffect, useState } from "react"
import { Post, Tag, PostStatus } from "@fider/models"
-import { Markdown, Hint, PoweredByFider, Icon, Header, Button } from "@fider/components"
+import { Markdown, Hint, PoweredByFider, Icon, Header } from "@fider/components"
import { PostsContainer } from "./components/PostsContainer"
import { useFider } from "@fider/hooks"
-import { VStack } from "@fider/components/layout"
+import { VStack, HStack } from "@fider/components/layout"
import { ShareFeedback } from "./components/ShareFeedback"
import { i18n } from "@lingui/core"
import { Trans } from "@lingui/react/macro"
@@ -95,17 +96,25 @@ What can we do better? This is the place for you to vote, discuss and share idea
<Header hasInert={isShareFeedbackOpen && !fider.isReadOnly} />
<div id="p-home" className="page container" {...(isShareFeedbackOpen && !fider.isReadOnly && { inert: "true" })}>
<div className="p-home__welcome-col">
- <VStack spacing={2} className="p-4">
- <Markdown text={fider.session.tenant.welcomeMessage || defaultWelcomeMessage} style="full" />
- <Button className="c-input" type="submit" variant="secondary" onClick={handleNewPost}>
- {fider.session.tenant.invitation || defaultInvitation}
- </Button>
+ <VStack spacing={6}>
+ <div>
+ <h1 className="p-home__welcome-title mb-5">
+ Help us build the <span className="text-primary-base">best feedback platform.</span>
+ </h1>
+ <Markdown className="p-home__welcome-body" text={fider.session.tenant.welcomeMessage || defaultWelcomeMessage} style="full" />
+ </div>
</VStack>
- <div onClick={() => setIsShareFeedbackOpen(true)}>
+ <div>
<PoweredByFider slot="home-input" className="sm:hidden md:hidden lg:block mt-3" />
</div>
</div>
- <div className="p-home__posts-col p-4">
+ <div className="p-home__posts-col">
+ <button className="p-home__add-idea-btn" onClick={handleNewPost}>
+ <HStack spacing={4} align="center">
+ <Icon sprite={IconPlusCircle} className="p-home__add-idea-icon" />
+ <span>{fider.session.tenant.invitation || defaultInvitation}</span>
+ </HStack>
+ </button>
{isLonely() ? <Lonely /> : <PostsContainer posts={props.posts} tags={props.tags} countPerStatus={props.countPerStatus} />}
<PoweredByFider slot="home-footer" className="lg:hidden xl:hidden mt-8" />
</div>
diff --git a/public/pages/Home/components/ListPosts.tsx b/public/pages/Home/components/ListPosts.tsx
index 341d5ba87..a6d3d04d6 100644
--- a/public/pages/Home/components/ListPosts.tsx
+++ b/public/pages/Home/components/ListPosts.tsx
@@ -13,23 +13,24 @@ interface ListPostsProps {
const ListPostItem = (props: { post: Post; user?: CurrentUser; tags: Tag[] }) => {
return (
- <HStack spacing={4} align="start" className="c-posts-container__post">
+ <HStack spacing={6} align="start" className="c-posts-container__post">
<div>
<VoteCounter post={props.post} />
</div>
- <VStack className="w-full" spacing={2}>
+ <VStack className="w-full" spacing={4}>
{props.post.status !== "open" && (
- <div className="mb-2 align-self-start">
+ <div className="mb-1 align-self-start">
<ResponseLozenge status={props.post.status} response={props.post.response} size={"small"} />
</div>
)}
- <HStack justify="between">
- <a className="text-title text-break hover:text-primary-base" href={`/posts/${props.post.number}/${props.post.slug}`}>
+ <HStack justify="between" align="start">
+ <a className="c-posts-container__post-title text-break hover:text-primary-base" href={`/posts/${props.post.number}/${props.post.slug}`}>
{props.post.title}
</a>
{props.post.commentsCount > 0 && (
- <HStack className="text-muted">
- {props.post.commentsCount} <Icon sprite={IconChatAlt2} className="h-4 ml-1" />
+ <HStack spacing={1} className="c-posts-container__post-comments flex-shrink-0">
+ <span>{props.post.commentsCount}</span>
+ <Icon sprite={IconChatAlt2} className="h-5 w-5" />
</HStack>
)}
</HStack>
@@ -48,7 +49,7 @@ const ListPostItem = (props: { post: Post; user?: CurrentUser; tags: Tag[] }) =>
const MinimalListPostItem = (props: { post: Post; tags: Tag[] }) => {
return (
- <HStack spacing={4} align="start" className="c-posts-container__post">
+ <HStack spacing={4} align="start" className="c-posts-container__post-minimal">
<HStack className="w-full" justify="between" align="start">
<a className="text-link" href={`/posts/${props.post.number}/${props.post.slug}`}>
{props.post.title}
@@ -85,11 +86,11 @@ export const ListPosts = (props: ListPostsProps) => {
))}
</VStack>
) : (
- <VStack spacing={4} divide>
+ <>
{props.posts.map((post) => (
<ListPostItem key={post.id} post={post} tags={props.tags.filter((tag) => post.tags.indexOf(tag.slug) >= 0)} />
))}
- </VStack>
+ </>
)}
</>
)
diff --git a/public/pages/Home/components/PostFilter.scss b/public/pages/Home/components/PostFilter.scss
index 4e4afb897..6895e6a53 100644
--- a/public/pages/Home/components/PostFilter.scss
+++ b/public/pages/Home/components/PostFilter.scss
@@ -4,3 +4,28 @@
margin: spacing(2);
width: calc(100% - spacing(4));
}
+
+.c-post-filter-btn,
+.c-post-sort-btn {
+ cursor: pointer;
+ transition: all 0.2s ease-in-out;
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
+
+ &:hover {
+ background-color: var(--colors-white);
+ border-color: var(--colors-gray-300);
+ box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
+ }
+}
+
+// Override parent dropdown handle focus to apply to children
+.c-dropdown__handle:focus:not(.no-focus) {
+ border-color: transparent !important;
+ box-shadow: none !important;
+
+ .c-post-filter-btn,
+ .c-post-sort-btn {
+ border-color: var(--colors-primary-base) !important;
+ box-shadow: 0 0 0 3px rgba(45, 87, 237, 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
+ }
+}
diff --git a/public/pages/Home/components/PostFilter.tsx b/public/pages/Home/components/PostFilter.tsx
index 0e739ab98..96d818a35 100644
--- a/public/pages/Home/components/PostFilter.tsx
+++ b/public/pages/Home/components/PostFilter.tsx
@@ -151,7 +151,7 @@ export const PostFilter = (props: PostFilterProps) => {
<Dropdown
onToggled={() => setQuery("")}
renderHandle={
- <HStack className="h-10 text-medium text-xs rounded-md uppercase border border-gray-400 text-gray-800 p-2 px-3">
+ <HStack className="c-post-filter-btn h-10 text-medium text-xs rounded-md uppercase border border-gray-200 text-gray-700 p-2 px-3 bg-white">
<Icon sprite={HeroIconFilter} className="h-5 pr-1" />
{i18n._({ id: "home.filter.label", message: "Filter" })}
{filterCount > 0 && <div className="bg-gray-200 inline-block rounded-full px-2 py-1 w-min-4 text-2xs text-center">{filterCount}</div>}
diff --git a/public/pages/Home/components/PostsContainer.scss b/public/pages/Home/components/PostsContainer.scss
index 0f3245417..f5a2e9536 100644
--- a/public/pages/Home/components/PostsContainer.scss
+++ b/public/pages/Home/components/PostsContainer.scss
@@ -5,7 +5,7 @@
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
row-gap: spacing(4);
- margin-bottom: spacing(5);
+ margin-bottom: spacing(6);
}
&__filter-col {
@@ -35,4 +35,52 @@
grid-column: 1 / -1;
}
}
+
+ &__list {
+ display: flex;
+ flex-direction: column;
+ gap: spacing(4);
+ }
+
+ &__post {
+ background-color: var(--colors-white);
+ border-radius: get("border.radius.xlarge");
+ padding: spacing(6) spacing(7);
+ box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
+ transition: box-shadow 0.2s ease-in-out;
+
+ &:hover {
+ box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
+ }
+ }
+
+ &__post-title {
+ font-size: get("font.size.lg");
+ font-weight: get("font.weight.bold");
+ color: var(--colors-gray-900);
+ line-height: 1.4;
+ }
+
+ &__post-comments {
+ color: var(--colors-gray-500);
+ font-size: get("font.size.sm");
+ align-items: center;
+ margin-left: spacing(4);
+ }
+
+ &__postdescription {
+ color: var(--colors-gray-800);
+ font-size: get("font.size.base");
+ line-height: 1.6;
+ }
+
+ &__post-minimal {
+ // Minimal styling for compact post lists (e.g., similar posts)
+ padding: spacing(2) 0;
+ border-bottom: 1px solid var(--colors-gray-200);
+
+ &:last-child {
+ border-bottom: none;
+ }
+ }
}
diff --git a/public/pages/Home/components/PostsContainer.tsx b/public/pages/Home/components/PostsContainer.tsx
index 7f0c0b0ab..8329e8b98 100644
--- a/public/pages/Home/components/PostsContainer.tsx
+++ b/public/pages/Home/components/PostsContainer.tsx
@@ -144,7 +144,7 @@ export class PostsContainer extends React.Component<PostsContainerProps, PostsCo
return (
<div className="c-posts-container">
- <div className="c-posts-container__header mb-5">
+ <div className="c-posts-container__header">
{!this.state.query && (
<div className="c-posts-container__filter-col">
<PostFilter
@@ -167,19 +167,21 @@ export class PostsContainer extends React.Component<PostsContainerProps, PostsCo
/>
</div>
</div>
- <ListPosts
- posts={this.state.posts}
- tags={this.props.tags}
- emptyText={i18n._({ id: "home.postscontainer.label.noresults", message: "No results matched your search, try something different." })}
- />
- {this.state.loading && <Loader />}
- {showMoreLink && (
- <div className="my-4 ml-4">
- <a href={showMoreLink} className="text-primary-base text-medium hover:underline" onClick={this.showMore}>
- <Trans id="home.postscontainer.label.viewmore">View more posts</Trans>
- </a>
- </div>
- )}
+ <div className="c-posts-container__list">
+ <ListPosts
+ posts={this.state.posts}
+ tags={this.props.tags}
+ emptyText={i18n._({ id: "home.postscontainer.label.noresults", message: "No results matched your search, try something different." })}
+ />
+ {this.state.loading && <Loader />}
+ {showMoreLink && (
+ <div className="my-4 text-center">
+ <a href={showMoreLink} className="text-primary-base text-medium hover:underline" onClick={this.showMore}>
+ <Trans id="home.postscontainer.label.viewmore">View more posts</Trans>
+ </a>
+ </div>
+ )}
+ </div>
</div>
)
}
diff --git a/public/pages/Home/components/PostsSort.tsx b/public/pages/Home/components/PostsSort.tsx
index fc1fcae33..c285b6e37 100644
--- a/public/pages/Home/components/PostsSort.tsx
+++ b/public/pages/Home/components/PostsSort.tsx
@@ -26,7 +26,7 @@ export const PostsSort: React.FC<PostsSortProps> = ({ value = "trending", onChan
<HStack>
<Dropdown
renderHandle={
- <div className="h-10 flex flex-items-center text-medium text-xs rounded-md uppercase border border-gray-400 text-gray-800 p-2 px-3">
+ <div className="c-post-sort-btn h-10 flex flex-items-center text-medium text-xs rounded-md uppercase border border-gray-200 text-gray-700 p-2 px-3 bg-white">
{i18n._({ id: "home.postsort.label", message: "Sort by:" })} {selectedItem.label}
</div>
}