Skip to content

Commit

Permalink
Set up public directory
Browse files Browse the repository at this point in the history
moved files into public and set up builder function so files can be added to server very easily
  • Loading branch information
darrenpicard25 committed Apr 4, 2019
1 parent f0ec6d1 commit 403e241
Show file tree
Hide file tree
Showing 15 changed files with 689 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -34,3 +34,6 @@ com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties


.jshintrc
681 changes: 681 additions & 0 deletions public/build/bundle.js

Large diffs are not rendered by default.

Binary file removed public/images/ctower.jpg
Binary file not shown.
Binary file removed public/images/soccer.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion index.html → public/index.html
Expand Up @@ -13,6 +13,6 @@

<body>
<div id="react-root"></div>
<script src="/build/bundle.js"></script>
<script src="./build/bundle.js"></script>
</body>
</html>
14 changes: 0 additions & 14 deletions public/javascripts/bundle.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/NavBar.jsx
Expand Up @@ -18,7 +18,7 @@ class NavBar extends Component {
return (
<nav className="navbar fixed sticky-top navbar-light">
<a onClick={this.props.showJumbotron} className="navbar-brand">
<img id="logo" src="/public/images/logo1.png" alt="logo" />{" "}
<img id="logo" src="./images/logo1.png" alt="logo" />{" "}
</a>
<section>
<div id="calgary-now">
Expand Down Expand Up @@ -51,7 +51,7 @@ class NavBar extends Component {
return (
<nav className="navbar fixed sticky-top navbar-light">
<a className="navbar-brand">
<img id="logo" src="/public/images/logo1.png" alt="logo" />{" "}
<img id="logo" src="./images/logo1.png" alt="logo" />{" "}
</a>
<a
className="btn btn-danger btn-lg btn2"
Expand Down
Binary file added src/images/calgary-print.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/calgary_photo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/calgary_sketch.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/city-of-calgary.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/logo1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/logo2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion styles/navbar.scss
Expand Up @@ -12,7 +12,6 @@ $color5: #D90429;
display: flex;
justify-content: space-between;
background-color: rgba(255, 255, 255, 0.9);
color: white;
#logo {
max-height: 48px;
border-radius: 7px;
Expand All @@ -28,6 +27,7 @@ $color5: #D90429;
outline: none !important;
box-shadow: none;
margin-right: 10px;
color:white;
}
.btn2:hover {
opacity: 0.7;
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Expand Up @@ -8,7 +8,7 @@ module.exports = {
index: "./src/index.jsx"
},
output: {
path: path.join(__dirname, "dist"),
path: path.join(__dirname, "./public/build"),
filename: "bundle.js",
publicPath: "/build/"
},
Expand Down

0 comments on commit 403e241

Please sign in to comment.