
118 | Devpost username of the user. Found at{" "}
119 |
125 | Integer representing the maximum number of hackathons to return for
126 | a user. Default: 100. Only applies when the{" "}
127 |
133 | Integer representing the minimum level of participation in a
134 | hackathon. Default: 1. Only applies when the{" "}
135 |
137 | 0: All registered hackathons
138 |
139 | 1: Only hackathons where the user submitted a project
140 |
141 | 2: Only hackathons where the user won a prize
142 |
147 | Comma-separated list of event names to add to the wall. Names
148 | correlate to the name of the image file in{" "}
149 |
153 | Examples:
154 |
155 |
157 | Adds tamuhack2020.png and howdyhack2020.png from badges/devpost/ to
158 | the generated image.
159 |
160 |
162 | Adds hh20.png from badges/alt/ and howdyhack2020.png from
163 | badges/devpost/ to the generated image.
164 |
169 | Integer for the number of badge tiles per row in the generated 170 | image. Default: 5. 171 |
172 |176 | The format of the generated image, either svg or png. Default: svg. 177 |
178 |
182 | Integer representing the length of each generated badge. Default:
183 | 100. Only applies when
189 | Specifies what should be done if the sticker is not matched in the
190 | repository. Default: Generates hexagon badge using the {"event's"}
191 | Devpost image. If
201 | Want hackers to showcase your hackathon event badge or want to add 202 | past events you participated in? Follow the steps to add your badge to 203 | the GitHub repository. 204 |
205 |
210 | If your hackathon is on Devpost,{" "}
211 |
212 | visit the issue page
213 | {" "}
214 | and select{" "}
215 |
229 | Alternatively, you can open a Pull Request. Place your event badge
230 | PNG image in
241 | If your hackathon does not use Devpost but would still like users to
242 | showcase the badge,{" "}
243 |
244 | visit the issue page
245 | {" "}
246 | and select{" "}
247 |
260 | {JSON.stringify(EVENT_METADATA, null, 2)}
261 |
262 |
265 | Alternatively, you can open a Pull Request. Place your event badge
266 | PNG image in
281 | Have an MLH event but do not have a sticker file? Use the template to 282 | recreate the hexagon badge from your event. Then follow the steps 283 | above to add your badge to the repository. 284 |
285 |332 | A side-benefit of this project is a providing a basic API to obtain 333 | devpost information for a user. There are currently two endpoints 334 | available.{" "} 335 |
336 |
340 | Devpost username of the user. Found at{" "}
341 |
Returns listing of hackathons that the user has participated in.
345 |{JSON.stringify(HACKATHONS_ENDPOINT_RES, null, 2)}
347 |
352 | Devpost username of the user. Found at{" "}
353 |
Returns listing of projects for a user.
357 |{JSON.stringify(PROJECTS_ENDPOINT_RES, null, 2)}
359 |
12 | {children}
13 |
14 | );
15 |
16 | export const Dropdown = ({ id, options, label, setBadgeProps, badgeProps }) => (
17 |
38 | );
39 |
40 | Dropdown.propTypes = {
41 | id: PropTypes.string,
42 | options: PropTypes.array,
43 | label: PropTypes.string,
44 | setBadgeProps: PropTypes.func,
45 | badgeProps: PropTypes.object,
46 | };
47 |
48 | export const BadgeInput = ({ id, label, setBadgeProps, badgeProps }) => (
49 |
70 | );
71 |
72 | BadgeInput.propTypes = {
73 | id: PropTypes.string,
74 | label: PropTypes.string,
75 | setBadgeProps: PropTypes.func,
76 | badgeProps: PropTypes.object,
77 | };
78 |
79 | export const LogoUpload = ({ id, label, setBadgeProps, badgeProps }) => {
80 | const fileField = React.useRef