forked from substrate-asia/hackathon-2023-winter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from opensquare-network/feat-explore-2
feat: add explore info
- Loading branch information
Showing
5 changed files
with
98 additions
and
38 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import Card from "@/components/card"; | ||
import { Button } from "@/components/button"; | ||
import { RoundCardMetadata } from "@/components/card/round"; | ||
|
||
export default function ExploreProjectInfo({ data }) { | ||
return ( | ||
<div className="flex gap-5 max-sm:flex-col"> | ||
<Card | ||
className="flex-1" | ||
head={ | ||
<div> | ||
<RoundCardMetadata data={data} /> | ||
|
||
<p className="mt-4 text-text-secondary text14medium"> | ||
{data.description} | ||
</p> | ||
</div> | ||
} | ||
> | ||
<div className="flex justify-between gap-4"> | ||
<div className="space-y-1"> | ||
<div className="text14medium text-text-tertiary"> | ||
Program Funders | ||
</div> | ||
<div className="text16semibold text-text-primary"> | ||
{data.programFunders} | ||
</div> | ||
</div> | ||
<div className="flex items-end justify-end"> | ||
<Button>Apply</Button> | ||
</div> | ||
</div> | ||
</Card> | ||
|
||
<div className="w-[392px] max-w-full"> | ||
<Card className="text-center h-full"> | ||
<div className="w-full h-full flex gap-2 flex-col items-center"> | ||
<div className=""> | ||
<div className="text14medium text-text-tertiary"> | ||
Matching Pool | ||
</div> | ||
<div className="text24bold text-text-primary"> | ||
{data.matchingPool} DOT | ||
</div> | ||
</div> | ||
<div> | ||
<div className="text14medium text-text-tertiary"> | ||
Total Contributors | ||
</div> | ||
<div className="text24bold text-text-primary"> | ||
{data.contributors} | ||
</div> | ||
</div> | ||
</div> | ||
</Card> | ||
</div> | ||
</div> | ||
); | ||
} |
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