Skip to content

Commit d4ef885

Browse files
Merge pull request #26 from SIGGraph-UIUC/master
PR Fall 2021 Updates
2 parents 66e735a + d9c2c39 commit d4ef885

File tree

10 files changed

+5848
-3650
lines changed

10 files changed

+5848
-3650
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
# [siggraph website](https://acm-uiuc.github.io/siggraph/)
2+
The ACM-UIUC SIGGraph Website
23

3-
Create-react-app + Bootstrap v4
4+
(Create-react-app + Bootstrap v4)
5+
6+
## Contributing
7+
To contribute to the site, you must be a part of SIGGraph UIUC:
8+
1. Make changes to https://github.com/SIGGraph-UIUC/siggraph, a fork of the original acm-uiuc repository
9+
2. Test those changes via `$ yarn run start` which creates a local development server
10+
3. Use a Pull Request to merge those changes to the master branch
11+
4. Upon approval, have someone run
12+
```
13+
$ git checkout master
14+
$ git pull
15+
$ yarn run deploy
16+
```
17+
They should then check that the deployment at https://siggraph-uiuc.github.io/siggraph looks correct.
18+
5. Finally, you can make a PR from the fork to the original repository

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"react-dom": "^16.8.6",
1414
"react-feather": "^2.0.9",
1515
"react-router-dom": "^5.0.1",
16-
"react-scripts": "^3.0.1",
16+
"react-scripts": "^4.0.3",
1717
"react-stack-grid": "^0.7.1",
1818
"react-youtube": "^7.9.0",
1919
"three": "^0.106.2"

public/assets/hi_tea.png

105 KB
Loading

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@
4040
-->
4141
</body>
4242

43-
</html>
43+
</html>

public/models/teapot.fbx

308 KB
Binary file not shown.

src/App.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
import React, { Component } from "react";
22

3-
import Background from "./Background";
4-
53
class App extends Component {
64
render() {
7-
const { width, height } = this.props.size;
85
return (
9-
<div className="App">
10-
<Background width={width} height={height} />
11-
<h1 className="center w-100">SIGGRAPH @ UIUC</h1>
12-
</div>
6+
<img className="poster" style ={{width: '100%'}} src={process.env.PUBLIC_URL + '/assets/hi_tea.png'} alt="hi tea poster" />
137
);
148
}
159
}

src/Background.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ class Background extends Component {
2727
// ADD CUBE
2828
let that = this;
2929
const loader = new FBXLoader();
30-
loader.load("models/index.fbx", function(object) {
30+
//switched to teapot for now
31+
loader.load("models/teapot.fbx", function(object) {
3132
object.traverse(function(child) {
3233
if (child.isMesh) {
3334
child.castShadow = true;
3435
child.receiveShadow = true;
3536
}
3637
});
38+
39+
3740
that.scene.add(object);
3841
that.cube = object;
3942
that.start();

src/Navigation.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ class Navigation extends Component {
3434
return (
3535
<Router basename="/"> {/* When using HashRouter, we don't need the public URL as a basename */}
3636
<Switch>
37-
<DefaultLayout exact path="/" component={App} size={this.state} />
37+
{/*
38+
PosterLayout is like DefaultLayout but without a Container component. This allows the poster to stretch
39+
the full length of the screen. When the front page has a poster, use PosterLayout for App. Otherwise
40+
use DefaultLayout.
41+
*/}
42+
<PosterLayout exact path="/" component={App} size={this.state} />
3843
<DefaultLayout
3944
path="/projects"
4045
component={Projects}
@@ -72,6 +77,23 @@ const DefaultLayout = ({ component: Component, size, ...rest }) => {
7277
);
7378
};
7479

80+
const PosterLayout = ({ component: Component, size, ...rest }) => {
81+
return (
82+
<Route
83+
{...rest}
84+
render={matchProps => (
85+
<>
86+
<div className="main-container">
87+
<Header />
88+
<Component {...matchProps} size={size} />
89+
<Footer />
90+
</div>
91+
</>
92+
)}
93+
/>
94+
);
95+
};
96+
7597
const Construction = () => <h1>This page is under construction</h1>;
7698

7799
const NotFound = () => (

src/data/data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ export const about = {
6565
},
6666
],
6767
meeting:
68-
"Join us for meetings on Discord Mondays 5-6PM CST!"
69-
};
68+
"Join us for meetings Monday in Siebel CS Center Rm 1103 4pm - 5pm CST!"
69+
};

0 commit comments

Comments
 (0)