-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Website/conf: Add Partners section to display media, community partner logos #1452
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
Merged
Urigo
merged 2 commits into
graphql:source
from
meenakshi-dhanani:Meena-Partners-section
May 22, 2023
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,88 @@ | ||
/* eslint-disable tailwindcss/no-custom-classname */ | ||
import React from "react" | ||
import { ReactComponent as GraphQLWeekly } from "../../../../static/img/conf/Partners/GraphQLWeekly.svg" | ||
import { ReactComponent as GraphQLWTF } from "../../../../static/img/conf/Partners/GraphQLwtf.svg" | ||
import { ReactComponent as EscapeTechnologies } from "../../../../static/img/conf/Partners/EscapeTechnologies.svg" | ||
|
||
interface Image { | ||
iconPath: string | ||
name: string | ||
link: string | ||
} | ||
|
||
function alphabetSort(a: Image, b: Image) { | ||
if (a.name < b.name) { | ||
return -1 | ||
} | ||
if (a.name > b.name) { | ||
return 1 | ||
} | ||
return 0 | ||
} | ||
|
||
const mediaPartners: Image[] = [ | ||
{ | ||
iconPath: GraphQLWeekly, | ||
name: "GraphQLWeekly", | ||
link: "https://www.graphqlweekly.com/", | ||
}, | ||
{ | ||
iconPath: GraphQLWTF, | ||
name: "GraphQLWTF", | ||
link: "https://graphql.wtf/", | ||
}, | ||
] | ||
|
||
const communityPartners: Image[] = [ | ||
{ | ||
iconPath: EscapeTechnologies, | ||
name: "EscapeTechnologies", | ||
link: "https://escape.tech/", | ||
}, | ||
] | ||
|
||
const PartnersConf = () => { | ||
return ( | ||
<div id="partners" className="bg-white py-10 static"> | ||
<h1 className="text-center text-4xl text-[#171E26] font-bold my-8"> | ||
Partners | ||
</h1> | ||
<h3 className="text-center text-[--rhodamine] font-bold my-10 underline underline-offset-8"> | ||
MEDIA PARTNERS | ||
</h3> | ||
<div className="flex justify-center items-start flex-wrap gap-[20px]"> | ||
{mediaPartners | ||
.sort((a, b) => alphabetSort(a, b)) | ||
.map((partner, i) => ( | ||
<a | ||
key={i} | ||
className="zoom-partner flex flex-col items-center text-center w-full h-full" | ||
href={partner.link} | ||
target="_blank" | ||
> | ||
<partner.iconPath /> | ||
</a> | ||
))} | ||
</div> | ||
<h3 className="text-center text-[--rhodamine] font-bold my-20 underline underline-offset-8"> | ||
COMMUNITY PARTNERS | ||
</h3> | ||
<div className="flex justify-center items-start flex-wrap gap-[20px]"> | ||
{communityPartners | ||
.sort((a, b) => alphabetSort(a, b)) | ||
.map((partner, i) => ( | ||
<a | ||
key={i} | ||
className="zoom-partner flex flex-col items-center text-center w-full h-full" | ||
href={partner.link} | ||
target="_blank" | ||
> | ||
<partner.iconPath /> | ||
</a> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default PartnersConf |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Replace
GraphQLwtf
toGraphqlwtf
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.
Thank you, it worked. Another set of eyes definitely helps!