-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Home wide (#1282) * feat: home wide * fix: chevron css bug * requested changes * feat: Wide profile page (#1286) * fix: vote pagination bug * wide profile page * fix: use WiderContainer * feat: proposal hero (#1288) * feat: proposal hero colored layers WIP * feat: white status pill, transparent category pill * feat: grants hero * feat: catalyst hero * feat: ban name hero * feat: proposal hero colors * feat: finished proposals hero banner * feat: add navigation to proposal page * feat: adjust hero banner to match navigation on max width * feat: proposal hero text display improvements * feat: hide floating bar on smaller screen resolutions * refactor: address pr comments * feat: wider transparency page (#1293) * feat: add wider container to transparency * fix: monthly total shadows * feat: wider proposal view (#1289) * feat: proposal hero colored layers WIP * feat: hide floating bar on smaller screen resolutions * fix: hide floating bar under competing proposals sidebar, align text with proposal view components * feat: break-lines for addresses and links * feat: responsive proposal view without grid * refactor: use wider container for proposal view * feat: align comments icon, so it is at the left of the view box * feat: align navigation with WiderContainer * refactor: group navigation css * refactor: address pr comments, remove (min-width: 320px) * feat: 3-column proposal view (#1300) * feat: proposal hero colored layers WIP * feat: align navigation with WiderContainer * refactor: group navigation css * feat: 3-column proposal view on 1440 or higher res * feat: minor position tweak for proposal detail section * refactor: address pr comments, minor tweaks * feat: font resizing for different breakpoints, improve font family consistence, proposal detail section sticky on the top * feat: Wide proposals list (#1296) * column sizes * wide container * ProposalPreviewCard * requested changes * card style tweaks * margin fix * feat: proposal scroll down heading (#1303) * feat: adjust paddings * fix: fix pills misalignment on smaller resolutions * feat: floating header on scroll for desktop * fix: floating header misbehaving in tablet * fix: hide floating bar reactions on tablet * fix: make proposal hero title a h1 element * chore: address pr comments * feat: proposal breadcrumbs (#1305) * feat: breadcrumbs for single proposal view on mobile * fix: add types for layout components * feat: add opacity to breadcrumb arrow * chore: address pr comments * chore: use custom classnames for breadcrumb * refactor: extract breadcrumb component & internationalization * fix: import useTabletMediaQuery from dist instead of src (#1307) * fix: proposal view render (#1309) * fix: add react-responsive * fix: weird proposal detail rendering & use one loader for proposal page * fix: remove grid in proposals page * fix: remove grid from transparency page and improve css (#1310) * feat: footer is now wide on all pages (#1311) * feat: add max-width to navbar (#1312) * feat: add max-width to navbar * feat: add wider container to debug * feat: remove grid from projects page (#1313) * feat: improve list and text item styles (#1314) * fix: proposal cards (#1316) * fix: proposal cards * bids added --------- Co-authored-by: lemu <[email protected]> Co-authored-by: Andy Espagnolo <[email protected]>
- Loading branch information
1 parent
b795fd0
commit 8681d3c
Showing
97 changed files
with
1,659 additions
and
927 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/components/Common/ProposalPreviewCard/CategoryModule.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.ProposalPreviewCard__Section.CategoryModule { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.CategoryModule__Container { | ||
display: flex; | ||
gap: 16px; | ||
justify-content: flex-start; | ||
align-items: center; | ||
min-width: 300px; | ||
white-space: nowrap; | ||
} | ||
|
||
.CategoryModule__StatusPill { | ||
display: flex; | ||
min-width: 118px; | ||
justify-content: flex-end; | ||
} | ||
|
||
.CategoryModule__GrantSize { | ||
color: var(--black-400); | ||
font-size: 12px; | ||
font-style: normal; | ||
font-weight: var(--weight-medium); | ||
} | ||
|
||
.CategoryModule__Chevron { | ||
visibility: hidden; | ||
} | ||
|
||
.CategoryModule__Chevron--visible { | ||
visibility: visible; | ||
} |
42 changes: 42 additions & 0 deletions
42
src/components/Common/ProposalPreviewCard/CategoryModule.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import classNames from 'classnames' | ||
|
||
import { ProposalAttributes, ProposalType } from '../../../entities/Proposal/types' | ||
import useFormatMessage from '../../../hooks/useFormatMessage' | ||
import CategoryPill from '../../Category/CategoryPill' | ||
import ChevronRight from '../../Icon/ChevronRight' | ||
import StatusPill from '../../Status/StatusPill' | ||
|
||
import './CategoryModule.css' | ||
import ProposalPreviewCardSection from './ProposalPreviewCardSection' | ||
|
||
interface Props { | ||
proposal: ProposalAttributes | ||
isHovered?: boolean | ||
} | ||
|
||
function CategoryModule({ proposal, isHovered }: Props) { | ||
const t = useFormatMessage() | ||
const isGrant = proposal.type === ProposalType.Grant | ||
const isBid = proposal.type === ProposalType.Bid | ||
return ( | ||
<ProposalPreviewCardSection className="CategoryModule"> | ||
<div className="CategoryModule__Container"> | ||
<div className="CategoryModule__StatusPill"> | ||
<StatusPill status={proposal.status} /> | ||
</div> | ||
<CategoryPill proposalType={proposal.type} /> | ||
{(isGrant || isBid) && ( | ||
<span className="CategoryModule__GrantSize">{`$${t('general.number', { | ||
value: isGrant ? proposal.configuration.size : proposal.configuration.funding, | ||
})}`}</span> | ||
)} | ||
</div> | ||
<ChevronRight | ||
className={classNames('CategoryModule__Chevron', isHovered && 'CategoryModule__Chevron--visible')} | ||
color="var(--black-400)" | ||
/> | ||
</ProposalPreviewCardSection> | ||
) | ||
} | ||
|
||
export default CategoryModule |
Oops, something went wrong.