-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added project title and refactored routing * Cleanup * refactored projects to use modules from buildbox and modified props * refactored card button to use just id as param to project, fixed styling and alignment on button link * Refactor project.jsx to include additional props and update data retrieval * Add User component and extractNearAddress function, with way to retrieve data from id prop * Removed unused code for project tabs * Add project-data.jsx module for retrieving project metadata * Refactor project page component * Refactor Roadmap component to include project meta data and styling * Refactor Code.jsx to add GitHub Repo button * Fix sidebar layout in projects page
- Loading branch information
1 parent
3f0fb04
commit b4c7cb1
Showing
10 changed files
with
327 additions
and
264 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,35 @@ | ||
return <div className="text-white">Code</div>; | ||
const { Button } = VM.require("buildhub.near/widget/components") || { | ||
Button: () => <></>, | ||
}; | ||
|
||
const { getProjectMeta } = VM.require( | ||
"buildhub.near/widget/lib.project-data" | ||
) || { | ||
getProjectMeta: () => {}, | ||
}; | ||
|
||
const { id } = props; | ||
|
||
const project = getProjectMeta(id); | ||
|
||
const { projectLink } = project; | ||
const Container = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
return ( | ||
<Container className="text-white"> | ||
<Button | ||
variant="secondary" | ||
href={projectLink} | ||
target="_blank" | ||
noLink={true} | ||
> | ||
GitHub Repo | ||
</Button> | ||
</Container> | ||
); |
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
Oops, something went wrong.