fix(search): tweak and center align landing
This commit is contained in:
committed by
mrugesh
parent
91adc43bcd
commit
1d4ae06541
@ -3,7 +3,11 @@ import React from 'react';
|
|||||||
import './empty-search.css';
|
import './empty-search.css';
|
||||||
|
|
||||||
function EmptySearch() {
|
function EmptySearch() {
|
||||||
return <div className='empty-search-wrapper'>Empty Search</div>;
|
return (
|
||||||
|
<div className='empty-search-wrapper'>
|
||||||
|
Looking for something? Try the search bar on this page.
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
EmptySearch.displayName = 'EmptySearch';
|
EmptySearch.displayName = 'EmptySearch';
|
||||||
|
5
client/src/pages/search.css
Normal file
5
client/src/pages/search.css
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.powered-by-wrapper {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
@ -2,11 +2,14 @@ import React, { Fragment, Component } from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import Helmet from 'react-helmet';
|
import Helmet from 'react-helmet';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { Index, PoweredBy } from 'react-instantsearch-dom';
|
import { Index, PoweredBy as PoweredByAlgolia } from 'react-instantsearch-dom';
|
||||||
import { Grid, Row, Col } from '@freecodecamp/react-bootstrap';
|
import { Grid, Row, Col } from '@freecodecamp/react-bootstrap';
|
||||||
|
|
||||||
import { updateSearchQuery } from '../components/search/redux';
|
import { updateSearchQuery } from '../components/search/redux';
|
||||||
import SearchPageHits from '../components/search/searchPage/SearchPageHits';
|
import SearchPageHits from '../components/search/searchPage/SearchPageHits';
|
||||||
|
import Spacer from '../components/helpers/Spacer';
|
||||||
|
|
||||||
|
import './search.css';
|
||||||
|
|
||||||
const propTypes = { updateSearchQuery: PropTypes.func.isRequired };
|
const propTypes = { updateSearchQuery: PropTypes.func.isRequired };
|
||||||
|
|
||||||
@ -29,7 +32,9 @@ class SearchPage extends Component {
|
|||||||
<main>
|
<main>
|
||||||
<SearchPageHits />
|
<SearchPageHits />
|
||||||
</main>
|
</main>
|
||||||
<PoweredBy />
|
<Spacer />
|
||||||
|
<PoweredByAlgolia className='powered-by-wrapper' />
|
||||||
|
<Spacer />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
Reference in New Issue
Block a user