This project uses HTML, CSS, React.js, Ant Design, axios, Bootstrap, and SASS. It was completed between May 17th and May 25th for acceptance into a pair-programming cohort called Chingu. This web service uses tabulation to help users search and view meteorite landings found in NASA's Meteorite Landing database. It is available here: https://ethanvernon.github.io/mern-meteorite-explorer/
Responsive, full-screen landing page with shooting star animation.
Constructs the query string to send to the API using user's search. Query string is then used in Axios API call.
ormGetData() {
//builds query
let formQuery="https://data.nasa.gov/resource/gh4g-9sfh.json?$where=UPPER(name)like'"+this.convertUserInputToQuery()+"'";
this.setState({
loading: 'loading...'
});
axios.get(formQuery)
.then(data => {
//sets states which renders the result in the ResultPre component
this.setState({ searchResult: data.data, loading: 'search', pagination: {current: 1} });
console.log(this.state.pagination);
}).catch(err =>{
//handle error
console.log(err);
this.setState({searchResult: 'error', loading: 'search'});
}).then(data => {
//sets states which renders the result in the ResultPre component
this.setState({ pagination: {} });
});
}
Uses Ant Design to handle tabulation of data from the API.
Uses breakpoints in CSS and mobile fist design process.
In src/Title.js, we use an onScroll event listener to give the effect of a shooting star in the night sky landing page when the user scrolls down the screen.