Skip to content

Commit 16971af

Browse files
committed
init
1 parent 8fad70a commit 16971af

16 files changed

+9412
-0
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "siggraph-website",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"bootstrap": "^4.1.3",
7+
"jquery": "^3.3.1",
8+
"popper.js": "^1.14.4",
9+
"react": "^16.5.2",
10+
"react-dom": "^16.5.2",
11+
"react-feather": "^1.1.3",
12+
"react-router-dom": "^4.3.1",
13+
"react-scripts": "2.0.3",
14+
"react-slick": "^0.23.1",
15+
"slick-carousel": "^1.8.1"
16+
},
17+
"scripts": {
18+
"start": "react-scripts start",
19+
"build": "react-scripts build",
20+
"test": "react-scripts test",
21+
"eject": "react-scripts eject"
22+
},
23+
"eslintConfig": {
24+
"extends": "react-app"
25+
},
26+
"browserslist": [
27+
">0.2%",
28+
"not dead",
29+
"not ie <= 11",
30+
"not op_mini all"
31+
],
32+
"devDependencies": {
33+
"node-sass": "^4.9.3"
34+
}
35+
}

public/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
<meta name="theme-color" content="#000000">
8+
<!--
9+
manifest.json provides metadata used when your web app is added to the
10+
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
11+
-->
12+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
13+
<!--
14+
Notice the use of %PUBLIC_URL% in the tags above.
15+
It will be replaced with the URL of the `public` folder during the build.
16+
Only files inside the `public` folder can be referenced from the HTML.
17+
18+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
19+
work correctly both with client-side routing and a non-root public URL.
20+
Learn how to configure a non-root public URL by running `npm run build`.
21+
-->
22+
<title>University of Illinois ACM SIGGRAPH</title>
23+
</head>
24+
<body>
25+
<noscript>
26+
This website requires JavaScript :<
27+
</noscript>
28+
<div id="root"></div>
29+
<!--
30+
This HTML file is a template.
31+
If you open it directly in the browser, you will see an empty page.
32+
33+
You can add webfonts, meta tags, or analytics to this file.
34+
The build step will place the bundled scripts into the <body> tag.
35+
36+
To begin the development, run `npm start` or `yarn start`.
37+
To create a production bundle, use `npm run build` or `yarn build`.
38+
-->
39+
</body>
40+
</html>

public/manifest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
}
10+
],
11+
"start_url": ".",
12+
"display": "standalone",
13+
"theme_color": "#000000",
14+
"background_color": "#ffffff"
15+
}

src/App.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import React, { Component } from "react";
2+
import logo from "./logo.svg";
3+
import "./styles/App.css";
4+
import Slider from "react-slick";
5+
6+
class App extends Component {
7+
render() {
8+
var settings = {
9+
dots: true,
10+
infinite: true,
11+
speed: 500,
12+
slidesToShow: 1,
13+
slidesToScroll: 1
14+
};
15+
return (
16+
<div className="App">
17+
<Slider {...settings} className="mb-5">
18+
<img className="w-50" src={logo} alt="" />
19+
<img className="w-50" src={logo} alt="" />
20+
</Slider>
21+
</div>
22+
);
23+
}
24+
}
25+
26+
export default App;

src/Footer.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import React from "react";
2+
import { Link } from "react-router-dom";
3+
import { Mail, Facebook } from "react-feather";
4+
5+
const Footer = () => (
6+
<footer className="row">
7+
<div className="col">
8+
<Link to="/about">Who are we?</Link>
9+
<p>
10+
We are an official student chapter of ACM SIGGRAPH. We have an interest
11+
in all things computer graphics.
12+
</p>
13+
</div>
14+
<div className="col">
15+
<Link to="/about">Join us!</Link>
16+
<p>
17+
We are always looking to add new faces to our team. Come to one of our
18+
general meetings held every Monday at 7pm in 3401 Siebel Center.
19+
</p>
20+
</div>
21+
<div className="col">
22+
<a href="https://s2018.siggraph.org/conference/">SIGGRAPH conference</a>
23+
<p>
24+
At the SIGGRAPH conference, there is something to do and see for
25+
everyone. Find out more about this year's conference here and see why
26+
you should attend!
27+
</p>
28+
</div>
29+
<div className="col">
30+
<a
31+
className="d-flex"
32+
href="https://www-s.acm.illinois.edu/mailman/listinfo/siggraph-announce"
33+
>
34+
<Mail />
35+
<p className="ml-1">Join mailing list</p>
36+
</a>
37+
<a className="d-flex" href="https://www.facebook.com/uiucacmsiggraph">
38+
<Facebook />
39+
<p className="ml-1">Like us on Facebook</p>
40+
</a>
41+
</div>
42+
</footer>
43+
);
44+
45+
export default Footer;

src/Header.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import React from "react";
2+
import { NavLink } from "react-router-dom";
3+
4+
const Header = () => (
5+
<nav className="navbar navbar-expand-sm navbar-light">
6+
<span className="navbar-brand mb-0 h1 text-dark">
7+
ACM Siggraph University of Illinois
8+
</span>
9+
<button
10+
className="navbar-toggler"
11+
type="button"
12+
data-toggle="collapse"
13+
data-target="#navbarNav"
14+
aria-controls="navbarNav"
15+
aria-expanded="false"
16+
aria-label="Toggle navigation"
17+
>
18+
<span className="navbar-toggler-icon" />
19+
</button>
20+
<div
21+
className="collapse navbar-collapse justify-content-end"
22+
id="navbarNav"
23+
>
24+
<div className="navbar-nav">
25+
<NavLink to="/" className="nav-item nav-link">
26+
Home
27+
</NavLink>
28+
<NavLink to="/projects" className="nav-item nav-link">
29+
Projects
30+
</NavLink>
31+
<NavLink to="/news" className="nav-item nav-link">
32+
News
33+
</NavLink>
34+
<NavLink to="/about" className="nav-item nav-link">
35+
About
36+
</NavLink>
37+
</div>
38+
</div>
39+
</nav>
40+
);
41+
42+
export default Header;

src/Navigation.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import React from "react";
2+
import { BrowserRouter as Router, Route } from "react-router-dom";
3+
4+
import App from "./App";
5+
import Header from "./Header";
6+
import Footer from "./Footer";
7+
8+
const Navigation = () => (
9+
<Router>
10+
<div>
11+
<DefaultLayout exact path="/" component={App} />
12+
<DefaultLayout path="/projects" component={Construction} />
13+
<DefaultLayout path="/news" component={Construction} />
14+
<DefaultLayout path="/about" component={Construction} />
15+
</div>
16+
</Router>
17+
);
18+
19+
const DefaultLayout = ({ component: Component, ...rest }) => {
20+
return (
21+
<Route
22+
{...rest}
23+
render={matchProps => (
24+
<div className="container">
25+
<Header />
26+
<Component {...matchProps} />
27+
<Footer />
28+
</div>
29+
)}
30+
/>
31+
);
32+
};
33+
34+
const Construction = ({ match }) => <h1>This page is under construction</h1>;
35+
36+
export default Navigation;

src/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from "react";
2+
import ReactDOM from "react-dom";
3+
import "./styles/index.scss";
4+
import * as serviceWorker from "./serviceWorker";
5+
6+
import Navigation from "./Navigation";
7+
8+
ReactDOM.render(<Navigation />, document.getElementById("root"));
9+
10+
// If you want your app to work offline and load faster, you can change
11+
// unregister() to register() below. Note this comes with some pitfalls.
12+
// Learn more about service workers: http://bit.ly/CRA-PWA
13+
serviceWorker.unregister();

0 commit comments

Comments
 (0)