Skip to content

Commit

Permalink
included not found page, update resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanlei committed Dec 9, 2020
1 parent fb67ef3 commit c44b941
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "website",
"version": "0.1.0",
"private": true,
"homepage": "https://www.CIS-522.github.io/website",
"homepage": "https://www.cis-522.github.io/website",
"dependencies": {
"@brainhubeu/react-carousel": "^1.10.30",
"boostrap": "^2.0.0",
Expand Down
Binary file removed public/522_logo.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import Dev from './components/dev.js';
import NotFound from './components/notfound.js';
import ScrollToTop from './components/scrolltotop.js';
import {HashRouter as Router, Route} from 'react-router-dom';
import './App.css';
Expand All @@ -11,6 +12,7 @@ function App() {
<ScrollToTop/>
<div>
<Route path="/" exact component={Dev} />
<Route path="/not-found" exact component={NotFound} />
</div>
</Router>
);
Expand Down
28 changes: 28 additions & 0 deletions src/components/notfound.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React, { Component } from 'react';
import '../css/standard.css';
import {Button} from 'react-bootstrap';


class NotFound extends Component {
render() {
return (
<div className="landing-container">
<div className="dark-container" style={{height:"100vh"}}>
<h1>Oops! Looks like you've gotten stuck in a local minimum.</h1>
<h3>
This page either doesn't exist or is currently still
under construction. Please check back later for updates.
</h3>
<Button href= {process.env.PUBLIC_URL + "/"} variant="dark">
<h3>
Return Home
</h3>
</Button>
</div>
</div>

);
}
}

export default NotFound;
8 changes: 4 additions & 4 deletions src/components/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Resources extends Component {
<Row style={{paddingTop: "2%"}}>

<Col md = {6} style={{paddingTop: "30px"}}>
<Button variant = "outline-dark" href = "https://d2l.ai/" target="blank_" style={{textAlign:"left", width: "100%", height: "100%", padding: "5%"}}>
<Button variant = "outline-dark" href = {process.env.PUBLIC_URL + "/#/not-found"} target="blank_" style={{textAlign:"left", width: "100%", height: "100%", padding: "5%"}}>
<Row style={{backgroundColor: "rgba(0, 0, 0, 0)"}}>
<Col md = {4}><img src={require("../public/github_logo.png")} style={{width: "140px", paddingBottom: "30px"}}></img></Col>
<Col md = {8}>
Expand All @@ -27,7 +27,7 @@ class Resources extends Component {
</Col>

<Col md = {6} style={{paddingTop: "30px"}}>
<Button variant = "outline-dark" href = "https://d2l.ai/" target="blank_" style={{textAlign:"left", width: "100%", height: "100%", padding: "5%"}}>
<Button variant = "outline-dark" href = {process.env.PUBLIC_URL + "/#/not-found"} target="blank_" style={{textAlign:"left", width: "100%", height: "100%", padding: "5%"}}>
<Row style={{backgroundColor: "rgba(0, 0, 0, 0)"}}>
<Col md = {4}><img src={require("../public/piazza_logo.png")} style={{width: "100px", paddingBottom: "30px"}}></img></Col>
<Col md = {8}>
Expand All @@ -41,7 +41,7 @@ class Resources extends Component {


<Col md = {6} style={{paddingTop: "30px"}}>
<Button variant = "outline-dark" href = "https://d2l.ai/" target="blank_" style={{textAlign:"left", width: "100%", height: "100%", padding: "5%"}}>
<Button variant = "outline-dark" href = {process.env.PUBLIC_URL + "/#/not-found"} target="blank_" style={{textAlign:"left", width: "100%", height: "100%", padding: "5%"}}>
<Row style={{backgroundColor: "rgba(0, 0, 0, 0)"}}>
<Col md = {4}><img src={require("../public/crowdcast_logo.png")} style={{width: "120px", paddingBottom: "30px"}}></img></Col>
<Col md = {8}>
Expand All @@ -53,7 +53,7 @@ class Resources extends Component {
</Col>

<Col md = {6} style={{paddingTop: "30px"}}>
<Button variant = "outline-dark" style={{textAlign:"left", width: "100%", height: "100%", padding: "5%"}}>
<Button variant = "outline-dark" href = "https://d2l.ai/" target="blank_" style={{textAlign:"left", width: "100%", height: "100%", padding: "5%"}}>
<Row style={{backgroundColor: "rgba(0, 0, 0, 0)"}}>
<Col md = {4}><img src={require("../public/d2l_logo.png")} style={{width: "120px", paddingBottom: "30px"}}></img></Col>
<Col md = {8}>
Expand Down

0 comments on commit c44b941

Please sign in to comment.