Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 98
feat(web): /contributing page #386
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
RhysSullivan
merged 37 commits into
AnswerOverflow:main
from
JoltCode:contributing-page
May 11, 2023
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
bad9031
tweak(docs): design guidelines
JoltCode 99ffdbf
Merge branch 'AnswerOverflow:main' into main
JoltCode e18232d
Merge remote-tracking branch 'origin/main' into main
JoltCode 55bb14f
Merge branch 'AnswerOverflow:main' into main
JoltCode 09dc679
Merge remote-tracking branch 'upstream/main' into main
JoltCode 9c6a7ef
Merge branch 'AnswerOverflow:main' into main
JoltCode e676b83
Merge branch 'AnswerOverflow:main' into main
JoltCode b7ca667
Merge branch 'AnswerOverflow:main' into main
JoltCode bb60c50
Merge branch 'AnswerOverflow:main' into main
JoltCode e3bb464
Merge branch 'AnswerOverflow:main' into main
JoltCode bfbf34c
Merge branch 'AnswerOverflow:main' into main
JoltCode a1c36e0
Merge branch 'AnswerOverflow:main' into main
JoltCode 060b4a7
Merge remote-tracking branch 'upstream/main' into main
JoltCode e4f7aee
Merge remote-tracking branch 'upstream/main' into main
JoltCode 985aa64
feat(storybook): bg pattern
JoltCode 8ef9b6b
Merge remote-tracking branch 'upstream/main' into main
JoltCode 079d39e
Merge branch 'storybook-bg' into main
JoltCode 077d7ad
Merge remote-tracking branch 'upstream/main' into main
JoltCode 26b7eb4
Merge remote-tracking branch 'upstream/main' into main
JoltCode d82a6a2
Merge remote-tracking branch 'upstream/main' into main
JoltCode 5a59d3f
Merge remote-tracking branch 'origin/main' into main
JoltCode d003094
tweak(ui/follow): new props
JoltCode 583594f
feat(ui/pages): contributors page
JoltCode 5a8de59
feat(main-site/pages): contributors page
JoltCode dd378df
fix(ui/pages): contributors page responsive design
JoltCode 6898e9f
fix(ui/contributors): light mode support, switch profile picture to u…
JoltCode 51eac76
feat(ui/footer): browse communities page
JoltCode 3ca2440
fix(ui/contributors): switch links to next/link
JoltCode 0bd544a
Merge branch 'main' into contributing-page
JoltCode 2470e96
tweak(ui/contributors): change to map
JoltCode cfaba1f
fix(ui/contributors): linkmap types
JoltCode e04cc4c
feat(ui/footer): categories, styling
JoltCode 985dde0
fix(ui/all): font-body as standard
JoltCode 9290c09
Merge branch 'main' into contributing-page
JoltCode 517a312
fix(ui/footer): accessibility (convert category heading from h3 -> h2)
JoltCode 9163df5
asd
RhysSullivan d4365ea
asd
RhysSullivan 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| import type { ContributorData } from '@answeroverflow/ui/src/components/primitives/Contributors'; | ||
| /* eslint-disable @typescript-eslint/naming-convention */ | ||
|
|
||
| export const coreTeamContributors: ContributorData[] = [ | ||
| { | ||
| name: 'Rhys', | ||
| description: 'Project Founder and Lead', | ||
| avatar: 'https://avatars.githubusercontent.com/u/39114868', | ||
| links: [ | ||
| 'https://github.com/RhysSullivan', | ||
| 'https://www.linkedin.com/in/rhyssullivan/', | ||
| 'https://twitter.com/RhysSullivan', | ||
| 'mailto:rhys.sullivan@answeroverflow.com', | ||
| ], | ||
| }, | ||
| ]; | ||
|
|
||
| export const openSourceContributors: ContributorData[] = [ | ||
| { | ||
| name: 'Jolt', | ||
| description: 'Frontend development and design', | ||
| avatar: 'https://avatars.githubusercontent.com/u/46378904', | ||
| links: ['https://github.com/JoltCode', 'mailto:joe@joecc.dev'], | ||
| }, | ||
| { | ||
| name: 'Kyle', | ||
| description: 'Checkmarks on solution messages', | ||
| avatar: 'https://avatars.githubusercontent.com/u/38047633', | ||
| links: ['https://github.com/uerk-io'], | ||
| }, | ||
| { | ||
| name: 'Cole Heigis', | ||
| description: 'Frontend server cards', | ||
| avatar: 'https://avatars.githubusercontent.com/u/123331535', | ||
| links: ['https://github.com/Cole-Heigis'], | ||
| }, | ||
| // { | ||
| // name: 'Orion Tether', | ||
| // description: 'Icon creation', | ||
| // avatar: 'https://avatars.githubusercontent.com/u/46378904', | ||
| // links: ['https://www.artstation.com/huntertether'], | ||
| // }, | ||
| ]; |
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,21 @@ | ||
| import { | ||
| openSourceContributors, | ||
| coreTeamContributors, | ||
| } from '../data/contributors-data'; | ||
| import { Contributors } from '@answeroverflow/ui/src/components/primitives/Contributors'; | ||
|
|
||
| # Contributors | ||
|
|
||
| ## Core Team | ||
|
|
||
| <Contributors contributors={coreTeamContributors} /> | ||
|
|
||
| --- | ||
|
|
||
| <br /> | ||
|
|
||
| ## Open Source Contributors | ||
|
|
||
| <Contributors contributors={openSourceContributors} /> | ||
|
|
||
| ### If you would like to contribute, please read the [contributing docs](https://github.com/AnswerOverflow/AnswerOverflow/blob/main/CONTRIBUTING.md). |
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
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
23 changes: 23 additions & 0 deletions
23
packages/ui/src/components/primitives/Contributors.stories.tsx
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,23 @@ | ||
| import type { Meta, StoryObj } from '@storybook/react'; | ||
|
|
||
| import { Contributors } from './Contributors'; | ||
| const meta = { | ||
| component: Contributors, | ||
| } as Meta<typeof Contributors>; | ||
|
|
||
| export default meta; | ||
|
|
||
| type Story = StoryObj<typeof meta>; | ||
|
|
||
| export const ContributorsStory: Story = { | ||
| args: { | ||
| contributors: [ | ||
| { | ||
| avatar: 'https://avatars.githubusercontent.com/u/9919?s=200&v=4', | ||
| description: 'User description', | ||
| name: 'User name', | ||
| links: ['http://localhost:3000/contributors'], | ||
| }, | ||
| ], | ||
| }, | ||
| }; |
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,60 @@ | ||
| import { FollowCursor } from './Follow'; | ||
| import { Avatar, AvatarFallback, AvatarImage } from './base'; | ||
| import { SocialIcon } from 'react-social-icons'; | ||
|
|
||
| export interface ContributorData { | ||
| name: string; | ||
| description: string; | ||
| avatar: string; | ||
| links: string[]; | ||
| } | ||
|
|
||
| export const Contributor = ({ | ||
| name, | ||
| description, | ||
| avatar, | ||
| links, | ||
| }: ContributorData) => ( | ||
| <div className="flex h-full w-64 flex-col items-center justify-start rounded-standard border-1 border-ao-black/25 bg-ao-black/[0.03] px-8 py-16 dark:border-0 dark:bg-[#1F2124]"> | ||
| <Avatar size="xl"> | ||
| <AvatarImage alt={`The profile picture of ${name}`} src={avatar} /> | ||
| <AvatarFallback>{name}</AvatarFallback> | ||
| </Avatar> | ||
| <div className="grow"> | ||
| <div className="flex flex-col items-center justify-between text-black dark:text-white"> | ||
| <h3 className="mt-2 font-header text-2xl font-semibold">{name}</h3> | ||
| <p className="mb-2 text-center font-body text-black/90 dark:text-white/75"> | ||
| {description} | ||
| </p> | ||
| </div> | ||
| </div> | ||
| <div className="flex h-20 flex-row gap-4 border-t-2 border-ao-black/20 pt-4 dark:border-ao-white/10"> | ||
| {Object.entries(links).map(([key, value]) => ( | ||
| <SocialIcon | ||
| url={value} | ||
| key={`${name}-${key}-${value}`} | ||
| className="fill-black dark:fill-white" | ||
| style={{ | ||
| height: '32px', | ||
| width: '32px', | ||
| }} | ||
| bgColor="inherit" | ||
| /> | ||
| ))} | ||
| </div> | ||
| </div> | ||
| ); | ||
|
|
||
| export const Contributors = ({ | ||
| contributors, | ||
| }: { | ||
| contributors: ContributorData[]; | ||
| }) => ( | ||
| <div className="mx-auto my-16 grid w-max grid-cols-1 gap-8 md:mx-0 md:mr-auto md:grid-flow-col md:grid-cols-2"> | ||
| {contributors.map((contributor) => ( | ||
| <FollowCursor key={`${contributor.name}`} intensity={25}> | ||
| <Contributor key={contributor.name} {...contributor} /> | ||
| </FollowCursor> | ||
| ))} | ||
| </div> | ||
| ); |
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
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.
You can’t perform that action at this time.

Uh oh!
There was an error while loading. Please reload this page.