From c4148d3bda1947778ed3742fdcc101cb0fab07e5 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Fri, 13 May 2022 11:37:45 +0300 Subject: [PATCH] style: post details page & feed page layout --- .../PostCard/BountyCard/BountyCard.tsx | 12 ++- .../Posts/pages/FeedPage/FeedPage.tsx | 4 +- .../Posts/pages/FeedPage/styles.module.css | 13 --- .../Posts/pages/FeedPage/styles.module.scss | 17 ++++ .../PageContent/BountyPageContent.tsx | 2 +- .../PageContent/QuestionPageContent.tsx | 8 +- .../PageContent/StoryPageContent.tsx | 8 +- .../Components/PostActions/PostActions.tsx | 2 +- .../pages/PostDetailsPage/PostDetailsPage.tsx | 6 +- .../pages/PostDetailsPage/styles.module.css | 13 --- .../pages/PostDetailsPage/styles.module.scss | 44 +++++++++ src/styles/_media_queries.scss | 93 +++++++++++++++++++ src/styles/_mixins.scss | 1 + src/styles/index.scss | 25 +---- src/styles/scrollbar.scss | 39 +++++--- src/utils/Wrapper.tsx | 1 + src/utils/storybook/decorators.tsx | 3 +- src/utils/theme/index.js | 17 +++- 18 files changed, 230 insertions(+), 78 deletions(-) delete mode 100644 src/features/Posts/pages/FeedPage/styles.module.css create mode 100644 src/features/Posts/pages/FeedPage/styles.module.scss delete mode 100644 src/features/Posts/pages/PostDetailsPage/styles.module.css create mode 100644 src/features/Posts/pages/PostDetailsPage/styles.module.scss create mode 100644 src/styles/_media_queries.scss create mode 100644 src/styles/_mixins.scss diff --git a/src/features/Posts/Components/PostCard/BountyCard/BountyCard.tsx b/src/features/Posts/Components/PostCard/BountyCard/BountyCard.tsx index 1fe0a75..382aa4b 100644 --- a/src/features/Posts/Components/PostCard/BountyCard/BountyCard.tsx +++ b/src/features/Posts/Components/PostCard/BountyCard/BountyCard.tsx @@ -23,6 +23,11 @@ interface Props { bounty: BountyCardType } export default function BountyCard({ bounty }: Props) { + + const handleApply = () => { + + } + return (
@@ -37,7 +42,7 @@ export default function BountyCard({ bounty }: Props) {
- @@ -60,6 +65,11 @@ export default function BountyCard({ bounty }: Props) { {bounty.applicants_count} Applicants + + + ) diff --git a/src/features/Posts/pages/FeedPage/FeedPage.tsx b/src/features/Posts/pages/FeedPage/FeedPage.tsx index ffd33b3..f4283b8 100644 --- a/src/features/Posts/pages/FeedPage/FeedPage.tsx +++ b/src/features/Posts/pages/FeedPage/FeedPage.tsx @@ -6,7 +6,7 @@ import PostsList from '../../Components/PostsList/PostsList' import TrendingCard from '../../Components/TrendingCard/TrendingCard' import PopularCategories from './PopularCategories/PopularCategories' import SortBy from './SortBy/SortBy' -import styles from './styles.module.css' +import styles from './styles.module.scss' export default function FeedPage() { @@ -30,7 +30,7 @@ export default function FeedPage() { return (