-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for 'partnerLogos' to IncubatedBy component (#190)
* Add support for 'partnerLogos' to IncubatedBy component * Update Patria-bank to transparent png * Compress image * Bump package version
- Loading branch information
Showing
5 changed files
with
77 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import { Logo } from "../logo/logo"; | ||
import TaskforceLogo from "../../images/code4romania-color.svg"; | ||
import "./incubated-by.scss"; | ||
|
||
export const IncubatedBy = () => { | ||
export const IncubatedBy = ({ partnerLogos }) => { | ||
return ( | ||
<div className="incubated-by-wrapper"> | ||
<div className="incubated-by container"> | ||
<p className="caption">proiect dezvoltat în programul</p> | ||
<Logo url="https://code4.ro"> | ||
<TaskforceLogo width="102" /> | ||
</Logo> | ||
<div className="row"> | ||
<p className="caption">proiect dezvoltat în programul</p> | ||
<Logo url="https://code4.ro"> | ||
<TaskforceLogo width="102" /> | ||
</Logo> | ||
</div> | ||
{partnerLogos && ( | ||
<div className="row"> | ||
<p className="caption">cu sprijinul</p> | ||
<div className="logos">{partnerLogos}</div> | ||
</div> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
IncubatedBy.propTypes = { | ||
partnerLogos: PropTypes.arrayOf(PropTypes.node) | ||
}; |
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,8 +1,39 @@ | ||
import React from "react"; | ||
import { IncubatedBy } from "./incubated-by"; | ||
import { Logo } from "../.."; | ||
import patriaBank from "../../images/patria-bank.png"; | ||
|
||
import "./../../styles.scss"; | ||
|
||
const customPartnerLogos = ( | ||
<Logo url="https://www.patriabank.ro/" key="patria-bank"> | ||
<img src={patriaBank} alt="Patria Bank" /> | ||
</Logo> | ||
); | ||
|
||
const customMultiplePartnersLogos = [ | ||
<Logo url={"https://codeforall.org/"} key="github_3"> | ||
<img | ||
src="https://epf.org.pl/en/wp-content/uploads/sites/3/2015/11/code_for_all_logo.png" | ||
alt="Custom Partner" | ||
/> | ||
</Logo>, | ||
<Logo url={"https://girlswhocode.com/"} key="github_4"> | ||
<img | ||
src="http://www.bigdreammovement.com/wp-content/uploads/girls-who-code.png" | ||
alt="Custom Partner" | ||
/> | ||
</Logo> | ||
]; | ||
|
||
export default { title: "Incubated By" }; | ||
|
||
export const normal = () => <IncubatedBy />; | ||
|
||
export const withPartner = () => ( | ||
<IncubatedBy partnerLogos={customPartnerLogos} /> | ||
); | ||
|
||
export const withMultiplePartners = () => ( | ||
<IncubatedBy partnerLogos={customMultiplePartnersLogos} /> | ||
); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1f31020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: