Skip to content

Commit ddba17d

Browse files
committed
add ins link and favicon
1 parent 61b5ea2 commit ddba17d

File tree

5 files changed

+35
-15
lines changed

5 files changed

+35
-15
lines changed

public/favicon.jpg

16.6 KB
Loading

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<meta charset="utf-8">
6-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
6+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.jpg">
77
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
88
<meta name="theme-color" content="#000000">
99
<!--

src/Footer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import React from "react";
2-
import { Mail, Facebook, Slack } from "react-feather";
2+
import { Mail, Facebook, Slack, Instagram } from "react-feather";
33

44
const links = [
55
{
66
icon: <Mail />,
77
address: "mailto:[email protected]"
88
},
99
{ icon: <Facebook />, address: "https://www.facebook.com/uiucacmsiggraph/" },
10-
{ icon: <Slack />, address: "https://siggraphuiuc.slack.com" }
10+
{ icon: <Slack />, address: "https://siggraphuiuc.slack.com" },
11+
{
12+
icon: <Instagram />,
13+
address: "https://www.instagram.com/siggraph.uiuc/"
14+
}
1115
];
1216

1317
const Footer = () => (

src/Gallery.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const models = ["cookie", "gorillaobjrefined", "person2", "unicorn"];
1010

1111
class Gallery extends Component {
1212
state = {
13-
slideIndex: 0
13+
slideIndex: 0,
14+
loading: null
1415
};
1516

1617
componentDidMount() {
@@ -99,7 +100,9 @@ class Gallery extends Component {
99100
that.start();
100101
},
101102
function(xhr) {
102-
console.log((xhr.loaded / xhr.total) * 100 + "% Loaded");
103+
that.setState({
104+
loading: xhr.loaded !== xhr.total ? xhr.loaded / xhr.total : null
105+
});
103106
},
104107
function(error) {
105108
console.log(error);
@@ -119,6 +122,7 @@ class Gallery extends Component {
119122
};
120123
render() {
121124
const { width, height } = this.props.size;
125+
const { loading } = this.state;
122126
return (
123127
<>
124128
<div
@@ -128,6 +132,7 @@ class Gallery extends Component {
128132
this.mount = mount;
129133
}}
130134
/>
135+
{loading && <p>Loading {(loading * 100).toFixed(2)}%</p>}
131136
<div className="d-flex justify-content-between align-items-center slide-controls">
132137
<Button variant="outline-dark" onClick={() => this.nextSlide(-1)}>
133138
<ChevronLeft />

src/Navigation.js

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from "react";
2-
import { BrowserRouter as Router, Route } from "react-router-dom";
2+
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
33
import { Container } from "react-bootstrap";
44

55
import Header from "./Header";
@@ -33,14 +33,21 @@ class Navigation extends Component {
3333
render() {
3434
return (
3535
<Router basename={process.env.PUBLIC_URL}>
36-
<DefaultLayout exact path="/" component={App} size={this.state} />
37-
<DefaultLayout
38-
path="/projects"
39-
component={Projects}
40-
size={this.state}
41-
/>
42-
<DefaultLayout path="/about" component={About} size={this.state} />
43-
<DefaultLayout path="/gallery" component={Gallery} size={this.state} />
36+
<Switch>
37+
<DefaultLayout exact path="/" component={App} size={this.state} />
38+
<DefaultLayout
39+
path="/projects"
40+
component={Projects}
41+
size={this.state}
42+
/>
43+
<DefaultLayout path="/about" component={About} size={this.state} />
44+
<DefaultLayout
45+
path="/gallery"
46+
component={Gallery}
47+
size={this.state}
48+
/>
49+
<DefaultLayout component={NotFound} />
50+
</Switch>
4451
</Router>
4552
);
4653
}
@@ -67,6 +74,10 @@ const DefaultLayout = ({ component: Component, size, ...rest }) => {
6774

6875
const Construction = () => <h1>This page is under construction</h1>;
6976

70-
const NotFound = () => <h1>The page you're looking for does not exist :(</h1>;
77+
const NotFound = () => (
78+
<h1 className="d-flex align-items-center justify-content-center">
79+
The page you're looking for does not exist :(
80+
</h1>
81+
);
7182

7283
export default Navigation;

0 commit comments

Comments
 (0)