-
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.
add sponsor page, gather town logic, lazy import for picrew and sponsor
- Loading branch information
1 parent
096b483
commit 1fa3f38
Showing
37 changed files
with
266 additions
and
152 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
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 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
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,36 @@ | ||
import React from "react"; | ||
import "./Sponsor.scss"; | ||
import { MEDPARS, SPONSORS } from "../../images/orgz"; | ||
|
||
const handleClassName = (size, className) => ({ size, className }); | ||
const classNameList = { | ||
XL: "logo-xl", | ||
L: "logo-l", | ||
M: "logo-m", | ||
S: "logo-s", | ||
}; | ||
|
||
const SponsorTemplate = ({ arr, alt }) => ( | ||
<div className="logo-container"> | ||
{arr.map(({ size, content }, idx) => ( | ||
<React.Fragment key={idx}> | ||
{content.map((orgz, idx) => ( | ||
<img src={orgz} key={idx} className={classNameList[size]} alt={alt} /> | ||
))} | ||
</React.Fragment> | ||
))} | ||
</div> | ||
); | ||
|
||
const Sponsor = () => { | ||
return ( | ||
<div className="sponsor-medpar"> | ||
<h3>OUR SPONSORS</h3> | ||
<SponsorTemplate arr={SPONSORS} alt="sponsor-logo" /> | ||
<h3>MEDIA PARTNERS</h3> | ||
<SponsorTemplate arr={MEDPARS} alt="media-partner-logo" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Sponsor; |
Oops, something went wrong.