This repository has been archived by the owner on Apr 4, 2019. It is now read-only.
-
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.
- Loading branch information
1 parent
9c79b09
commit ed541ff
Showing
10 changed files
with
435 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import React from "react"; | ||
import { Page, ReactSpecimen, ImageSpecimen } from "catalog"; | ||
import { Card } from "material-ui"; | ||
import Button from "@material-ui/core/Button"; | ||
import Icon from "@material-ui/core/Icon"; | ||
import { withStyles, MuiThemeProvider } from "@material-ui/core/styles"; | ||
import MuiTheme from "./config/theme"; | ||
|
||
const styles = theme => ({ | ||
button: { | ||
margin: theme.spacing.unit | ||
}, | ||
|
||
leftIcon: { | ||
marginRight: theme.spacing.unit | ||
} | ||
}); | ||
|
||
const WelcomeV2Page = ({ classes }) => ( | ||
<MuiThemeProvider theme={MuiTheme}> | ||
<Page> | ||
<ImageSpecimen src="/logos/logo_full_black.png" plain={true} span={2} /> | ||
MonPlan is the Monash Course Planner built for students, by students. You | ||
can find the following: | ||
<Button | ||
variant="outlined" | ||
color="primary" | ||
className={classes.button} | ||
href="/#/general" | ||
> | ||
<Icon className={classes.leftIcon}>language</Icon> | ||
Language | ||
</Button> | ||
<Button | ||
variant="outlined" | ||
color="primary" | ||
className={classes.button} | ||
href="/#/logos" | ||
> | ||
<Icon className={classes.leftIcon}>style</Icon> | ||
Styles | ||
</Button> | ||
<Button | ||
variant="outlined" | ||
color="primary" | ||
className={classes.button} | ||
href="/#/components/UnitCard" | ||
> | ||
<Icon className={classes.leftIcon}>extension</Icon> | ||
Components | ||
</Button> | ||
</Page> | ||
</MuiThemeProvider> | ||
); | ||
|
||
export default withStyles(styles)(WelcomeV2Page); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { createMuiTheme } from "@material-ui/core/styles"; | ||
|
||
import COLORS from "../constants/COLORS"; | ||
|
||
const theme = createMuiTheme({ | ||
palette: { | ||
primary: COLORS.PRIMARY, | ||
secondary: COLORS.SECONDARY, | ||
error: COLORS.ERROR, | ||
success: COLORS.SUCCESS | ||
}, | ||
// define custom theme props here | ||
custom: { | ||
palette: { | ||
facultyColors: COLORS.FACULTY, | ||
misc: COLORS.MISC | ||
} | ||
}, | ||
// try to avoid using this unless absolutely necessary! | ||
// it will apply changes to ALL components | ||
overrides: {} | ||
}); | ||
|
||
export default theme; |
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,48 @@ | ||
import { Faculty } from "./faculty"; | ||
|
||
const COLORS = { | ||
PRIMARY: { | ||
light: "#2682b8", | ||
main: "#006cab", | ||
dark: "#00599a", | ||
contrastText: "#fff" | ||
}, | ||
SECONDARY: { | ||
light: "#898989", | ||
main: "#565656", | ||
dark: "#454545", | ||
contrastText: "#fff" | ||
}, | ||
ERROR: { | ||
light: "#e57373", | ||
main: "#f44336", | ||
dark: "#d32f2f", | ||
contrastText: "#fff" | ||
}, | ||
SUCCESS: { | ||
main: "#4caf50" | ||
}, | ||
FACULTY: { | ||
[Faculty.ADA]: "#455a64", | ||
[Faculty.ART]: "#b71c1c", | ||
[Faculty.BUS]: "#00bcd4", | ||
[Faculty.EDU]: "#b81b60", | ||
[Faculty.ENG]: "#ff9800", | ||
[Faculty.FIT]: "#7b1fa2", | ||
[Faculty.LAW]: "#776c55", | ||
[Faculty.MHS]: "#2196f3", | ||
[Faculty.PHA]: "#7c8500", | ||
[Faculty.SCI]: "#009688", | ||
default: "#006dae" | ||
}, | ||
MISC: { | ||
footer: "#2e2e2e", | ||
warning: "#c3185a", | ||
beta: "#ffb300", | ||
success: "#4caf50", | ||
softBackground: "#dddddd", | ||
monashBlue: "#006dae" | ||
} | ||
}; | ||
|
||
export default COLORS; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.