Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Project card and Banner Image #6

Merged
merged 5 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@
"@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.3",
"@tanstack/react-query": "^5.59.15",
"cmdk": "1.0.0",
"date-fns": "^4.1.0",
"embla-carousel-react": "^8.3.0",
"graphql-request": "^7.1.0",
"input-otp": "^1.2.4",
"next-themes": "^0.3.0",
"react-day-picker": "8.10.1",
Expand Down
126 changes: 126 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions src/features/project/components/ProjectCard.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Meta, Title, Primary, Stories, Controls, Story } from "@storybook/blocks";
import * as ProjectCardStories from "./ProjectCard.stories";
import { ProjectCard } from "./ProjectCard";

# ProjectCard

<Meta of={ProjectCardStories} />

The ProjectCard component renders a Gitcoin Project in a card Format. These can be used to share on social media or to render in a list.

This component provides a Loading and an Error State.

This component natively supports a Tanstack Query for a single Project, and will appropriately display Loading, Error, and Success states.

# Example

<Story of={ProjectCardStories.Default} />

# Controls

<Controls />

# Other variations

<Stories />
Loading