-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd19eb4
commit 53a6e79
Showing
13 changed files
with
1,014 additions
and
27 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,42 @@ | ||
import React from 'react'; | ||
import logo from './logo.svg'; | ||
import React, { Component } from 'react'; | ||
import Header from './components/Header' | ||
import './App.css'; | ||
|
||
function App() { | ||
return ( | ||
<div className="App"> | ||
<header className="App-header"> | ||
<img src={logo} className="App-logo" alt="logo" /> | ||
<p> | ||
Edit <code>src/App.js</code> and save to reload. | ||
</p> | ||
<a | ||
className="App-link" | ||
href="https://reactjs.org" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
Learn React | ||
</a> | ||
</header> | ||
</div> | ||
); | ||
// function App() { | ||
// return ( | ||
// <div className="App"> | ||
// <header className="App-header"> | ||
// <img src={logo} className="App-logo" alt="logo" /> | ||
// <p> | ||
// Edit <code>src/App.js</code> and save to reload. | ||
// </p> | ||
// <a | ||
// className="App-link" | ||
// href="https://reactjs.org" | ||
// target="_blank" | ||
// rel="noopener noreferrer" | ||
// > | ||
// Learn React | ||
// </a> | ||
// </header> | ||
// </div> | ||
// ); | ||
// } | ||
|
||
class App extends Component{ | ||
render(){ | ||
return ( | ||
<div className="Container"> | ||
<Header /> | ||
|
||
</div> | ||
); | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React, { Component } from 'react'; | ||
import ResponsiveImage from './ResponsiveImage'; | ||
import '../css/styles/sass/header.css'; | ||
|
||
class Header extends Component { | ||
render(){ | ||
return ( | ||
<header className="anu-header"> | ||
<div className="wrapper"> | ||
<div className="top"> | ||
<div className="tagline"> | ||
Crawford School <br />of Public Policy | ||
</div> | ||
<ResponsiveImage imageName="anu-logo" class="anu-logo" /> | ||
</div> | ||
<div className="bottom"> | ||
<div><p><strong>Scott Thomson</strong> is currently completing a Master of Environmental and Resource Economics</p></div> | ||
<p><strong>Are you ready to apply your knowledge of economics to tackle broader issues such as climate change mitigation, poverty reduction, and international trade?</strong></p> | ||
</div> | ||
<ResponsiveImage imageName="hero"/> | ||
</div> | ||
</header> | ||
) | ||
} | ||
} | ||
|
||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const PATH = 'images/'; | ||
|
||
class Feature extends Component { | ||
constructor(props) { | ||
super(props); | ||
|
||
this.state = { | ||
small: PATH + props.imageName + '.' + props.fileType, | ||
medium: PATH + props.imageName + '@2x.' + props.fileType, | ||
} | ||
} | ||
|
||
render() { | ||
return ( | ||
<img | ||
src={this.state.small} | ||
srcSet={`${this.state.small} 700w, ${this.state.medium} 1000w`} | ||
alt={this.props.alt} | ||
className={this.props.class} | ||
/> | ||
); | ||
} | ||
} | ||
|
||
Feature.propTypes = { | ||
alt: PropTypes.string, | ||
class: PropTypes.string, | ||
imageName: PropTypes.string, | ||
fileType: PropTypes.string, | ||
} | ||
|
||
Feature.defaultProps = { | ||
alt: '', | ||
class: 'image', | ||
imageName: 'flexible', | ||
fileType: 'png', | ||
} | ||
|
||
export default Feature; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
header.anu-header { | ||
position: relative; | ||
background: url(../../../../public/images/header-back.png); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters