Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Commit

Permalink
updated site as part of v2 refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjiang97 committed May 20, 2018
1 parent 9c79b09 commit ed541ff
Show file tree
Hide file tree
Showing 10 changed files with 435 additions and 21 deletions.
15 changes: 15 additions & 0 deletions catalog/GENERAL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# General

## Tagline

The tagline represents what MonPlan is and shows the exciting factor of the tool being be built by the students.

Some pre-approved taglines include:

- _The Monash Course Planner for students, by students_

The 'for students, by students' is a key here as it helps drive the Student Innovation Program being developed.

While 'The Monash Course Planner' helps promote us as **the** course planning tool for Monash Students.

- _The Monash Course Planning Tool for students, by students_


## Tone of Voice

Please remember when developing frontend interfaces for MonPlan that you are also by extension representing Monash University.
Expand Down
56 changes: 56 additions & 0 deletions catalog/WELCOME.js
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);
7 changes: 0 additions & 7 deletions catalog/WELCOME.md

This file was deleted.

24 changes: 24 additions & 0 deletions catalog/config/theme.js
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;
48 changes: 48 additions & 0 deletions catalog/constants/colors.js
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;
1 change: 1 addition & 0 deletions catalog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png">
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<title>MonPlan Brand</title>
</head>

Expand Down
19 changes: 11 additions & 8 deletions catalog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import React from "react";
import ReactDOM from "react-dom";
import { Catalog, pageLoader } from "catalog";
import Theme from "./theme";

import { MuiThemeProvider } from "material-ui";
import MuiTheme from "./config/theme";
const pages = [
{
path: "/",
title: "Welcome",
content: pageLoader(() => import("./WELCOME.md"))
content: pageLoader(() => import("./WELCOME.js"))
},
{
title: "Language",
Expand Down Expand Up @@ -57,11 +58,13 @@ const pages = [
];

ReactDOM.render(
<Catalog
title="MonPlan Brand"
pages={pages}
theme={Theme}
logoSrc={"/logos/logo_full_black.png"}
/>,
<MuiThemeProvider theme={MuiTheme}>
<Catalog
title="MonPlan Brand"
pages={pages}
theme={Theme}
logoSrc={"/logos/logo_full_black.png"}
/>
</MuiThemeProvider>,
document.getElementById("catalog")
);
4 changes: 4 additions & 0 deletions catalog/static/icons/language.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "branding",
"description": "branding guidelines for monplan",
"dependencies": {
"@material-ui/core": "^1.0.0",
"@material-ui/icons": "^1.0.0",
"catalog": "^3.0.0-rc.4",
"material-ui": "^0.20.1",
Expand Down
Loading

0 comments on commit ed541ff

Please sign in to comment.