-
Notifications
You must be signed in to change notification settings - Fork 14
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 #77 from BSims623/main
Single Project Contribute and Project/Single Project Refactor
- Loading branch information
Showing
19 changed files
with
368 additions
and
254 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
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,23 +1,19 @@ | ||
import Link from "next/link"; | ||
|
||
export default function SingleProjectsContribute({ sectionType, data }) { | ||
export default function SingleProjectsContribute({ sectionType, contributeAs, setContributeAs }) { | ||
return ( | ||
<> | ||
<section id="how-to-contribute" className="project-contribute-container"> | ||
<div className="project-main-heading-container projects-main-heading-underline"> | ||
<h2 className="project-heading project-heading-underline">How to Contribute</h2> | ||
<section id="how-to-contribute" className={`project-contribute-container`}> | ||
<div className={`project-main-heading-container projects-main-heading-underline`}> | ||
<h2 className={`project-heading project-heading-underline`}>How to Contribute</h2> | ||
</div> | ||
<p className="project-paragraph half-width"> | ||
<p className={`project-paragraph`}> | ||
Open Sacramento is run by volunteers. We are always looking for help. | ||
Explore the various ways you can make a difference. | ||
</p> | ||
<h4 className="project-info-label">Get Involved As</h4> | ||
<div className = "project-button-container"> | ||
<Link className = "project-button project-button-alt" href=".">Developer</Link> {/*TODO: FILL IN LINKS*/} | ||
<Link className = "project-button" href=".">Designer</Link> | ||
<Link className = "project-button" href=".">Other</Link> | ||
<h4 className={`project-info-label`}>Get Involved As</h4> | ||
<div className = {`project-button-container`}> | ||
<button className = {`project-button ${contributeAs === 'developer' && 'project-button-alt'}`} onClick={() => setContributeAs("developer")}>Developer</button> | ||
<button className={`project-button ${contributeAs === 'designer' && 'project-button-alt'}`} onClick={() => setContributeAs("designer")}>Designer</button> | ||
<button className={`project-button ${contributeAs === 'other' && 'project-button-alt'}`} onClick={() => setContributeAs("other")}>Other</button> | ||
</div> | ||
</section> | ||
</> | ||
); | ||
} |
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,63 @@ | ||
import { upperFirst } from "@/utils/string"; | ||
|
||
export default function SingleProjectsDesigner({ sectionType, data }) { | ||
return ( | ||
<section id="designer" className={`project-contributor-container`}> | ||
<div className={`project-main-heading-container projects-main-heading-underline`}> | ||
<h2 className={`project-heading project-heading-underline`}>Designer</h2> | ||
</div> | ||
<p className={`project-section-paragraph`}> | ||
Designers can actively contribute to the project by creating content, updating Figma files, and more. | ||
</p> | ||
<hr className={`project-info-line-top-2`}/> | ||
<div className={`project-info-container project-info-line-top`}> | ||
<p className={`project-info-label`}>Difficulty</p> | ||
<p className={`project-info-text`}> | ||
{upperFirst(data.meta.contributing.designer.difficulty)} | ||
</p> | ||
</div> | ||
<hr className={`project-info-line-top-2`}/> | ||
<div className={`project-info-container project-info-line-top`}> | ||
<p className={`project-info-label`}>Prototyping Tool</p> | ||
<p className={`project-info-text`}> | ||
Figma | ||
</p> | ||
</div> | ||
<hr className={`project-info-line-top-2`}/> | ||
<div className={`project-info-container project-info-line-top`}> | ||
<p className={`project-info-label`}>Version</p> | ||
<p className={`project-info-text`}> | ||
2 | ||
</p> | ||
</div> | ||
<hr className={`project-info-line-top-2`}/> | ||
<div className={`project-info-container project-info-line-top`}> | ||
<p className={`project-info-label`}>Technologies</p> | ||
<p className={`project-info-text`}> | ||
{data.meta.contributing.designer.technologies} | ||
</p> | ||
</div> | ||
<hr className={`project-info-line-top-2`}/> | ||
<div className={`project-info-line-top`}> | ||
<div className={`project-info-container`}> | ||
<p className={`project-info-label`}>Version Control</p> | ||
<p className={`project-info-text`}> | ||
{data.meta.contributing.developer.version_control} | ||
</p> | ||
<p className={`project-info-label`}>Repo</p> | ||
<p className={`project-info-text`}> | ||
{data.meta.contributing.developer.repo} | ||
</p> | ||
</div> | ||
</div> | ||
<hr className={`project-info-line-top-2`}/> | ||
<div className={`project-info-container project-info-line-top project-info-line-bottom`}> | ||
<p className={`project-info-label`}>Ways to Contribute</p> | ||
<p className={`project-info-text`}> | ||
{data.meta.contributing.designer.ways_to_contribute} | ||
</p> | ||
</div> | ||
<hr className={`project-info-line-top-2`}/> | ||
</section> | ||
); | ||
} |
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
Oops, something went wrong.