-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
461 additions
and
168 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
!.huskyrc.js | ||
public |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ module.exports = { | |
'pre-commit': 'yarn lint', | ||
'pre-push': 'yarn lint' | ||
} | ||
}; | ||
}; |
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,31 @@ | ||
#!/bin/sh | ||
if [ -z "$husky_skip_init" ]; then | ||
debug () { | ||
if [ "$HUSKY_DEBUG" = "1" ]; then | ||
echo "husky (debug) - $1" | ||
fi | ||
} | ||
|
||
readonly hook_name="$(basename "$0")" | ||
debug "starting $hook_name..." | ||
|
||
if [ "$HUSKY" = "0" ]; then | ||
debug "HUSKY env variable is set to 0, skipping hook" | ||
exit 0 | ||
fi | ||
|
||
if [ -f ~/.huskyrc ]; then | ||
debug "sourcing ~/.huskyrc" | ||
. ~/.huskyrc | ||
fi | ||
|
||
export readonly husky_skip_init=1 | ||
sh -e "$0" "$@" | ||
exitCode="$?" | ||
|
||
if [ $exitCode != 0 ]; then | ||
echo "husky - $hook_name hook exited with code $exitCode (error)" | ||
fi | ||
|
||
exit $exitCode | ||
fi |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lint |
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,16 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lint | ||
|
||
echo "> ACM Hack Pre-push Hook: Checking branch name for push to main. \n" | ||
|
||
BRANCH=`git rev-parse --abbrev-ref HEAD` | ||
PROTECTED_BRANCHES="^(main|master)" | ||
|
||
if [[ "$BRANCH" =~ $PROTECTED_BRANCHES ]] | ||
then | ||
echo "ERROR: Oops! You tried pushing directly to $BRANCH. Please create your own branch with \n git checkout -b <your_name/feature_name> \nand push again to create a pull request. Note: The < > is inserted for convention as a variable placeholder. Do not include < > in your actual branch name.\n" && exit 1 | ||
fi | ||
|
||
exit 0 |
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 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,94 @@ | ||
import React, { useState } from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Typography from '@material-ui/core/Typography'; | ||
import Container from '@material-ui/core/Container'; | ||
import Link from '@material-ui/core/Link'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
title: { | ||
fontWeight: theme.typography.fontWeightBold, | ||
paddingTop: theme.spacing(11), | ||
[theme.breakpoints.down('sm')]: { | ||
paddingTop: theme.spacing(4) | ||
}, | ||
paddingBottom: theme.spacing(4) | ||
}, | ||
info: { | ||
paddingTop: theme.spacing(4) | ||
}, | ||
link: { | ||
color: theme.palette.secondary.main | ||
}, | ||
linkClicked: { | ||
color: theme.palette.secondary.dark | ||
} | ||
})); | ||
|
||
const SubmissionsPage = () => { | ||
const classes = useStyles(); | ||
|
||
const [formClicked, setFormClicked] = useState(false); | ||
const [devPostClicked, setDevPostClicked] = useState(false); | ||
|
||
const handleFormClick = () => { | ||
setFormClicked(true); | ||
}; | ||
|
||
const handleDevPostClick = () => { | ||
setDevPostClicked(true); | ||
}; | ||
|
||
return ( | ||
<Container maxWidth="md"> | ||
<Typography | ||
align="left" | ||
variant="h4" | ||
component="h1" | ||
className={classes.title} | ||
> | ||
Submission Info | ||
</Typography> | ||
|
||
<Typography align="left" variant="h5" component="h2"> | ||
Follow These 2 Final Steps to Submit Your Project: | ||
</Typography> | ||
|
||
<Typography className={classes.info}> | ||
1{')'} Submit the project on the HOTH XI{' '} | ||
<Link | ||
href="https://hoth-xi.devpost.com/?ref_feature=challenge&ref_medium=discover" | ||
target="_blank" | ||
className={devPostClicked ? classes.linkClicked : classes.link} | ||
onClick={handleDevPostClick} | ||
rel="noopener noreferrer" | ||
> | ||
Devpost | ||
</Link> | ||
</Typography> | ||
|
||
<Typography className={classes.info}> | ||
2{')'} Fill out the HOTH XI{' '} | ||
<Link | ||
href="https://forms.gle/VPBHtLTyPo1pn7pn9" | ||
target="_blank" | ||
className={formClicked ? classes.linkClicked : classes.link} | ||
onClick={handleFormClick} | ||
rel="noopener noreferrer" | ||
> | ||
Submission Google Form | ||
</Link> | ||
</Typography> | ||
|
||
<Typography | ||
className={classes.info} | ||
align="left" | ||
variant="h6" | ||
component="h3" | ||
> | ||
Thank You for Participating in HOTH XI! | ||
</Typography> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default SubmissionsPage; |
Oops, something went wrong.