fix(alerts): Fix page not found alert & UI adjustments (#16864)
* fix(alerts): Fix page not found alert & UI adjustments - Added adequate margins to flash alerts. - Page not found alert link fix & UI adjustments. Closes #16857 Closes #16860 * fix(404): Changed the UX of 404 page - This makes the 404 page UX consistent.
This commit is contained in:
committed by
Quincy Larson
parent
f628bfeeb7
commit
4c5ffb30fc
@ -77,6 +77,16 @@ h1, h2, h3, h4, h5, h6, p, li {
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.not-found, .not-found .btn-primary {
|
||||||
|
display: grid;
|
||||||
|
margin: auto;
|
||||||
|
a:hover,
|
||||||
|
a:focus,
|
||||||
|
a:active {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Thumbnails
|
// Thumbnails
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
|
@ -13,3 +13,8 @@
|
|||||||
flex: 1 0 0px;
|
flex: 1 0 0px;
|
||||||
color: #37474f;
|
color: #37474f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#@{ns}-board {
|
||||||
|
margin-top: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,21 +1,29 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
// import PropTypes from 'prop-types';
|
// import PropTypes from 'prop-types';
|
||||||
import { Alert } from 'react-bootstrap';
|
import {
|
||||||
|
Alert,
|
||||||
|
Button
|
||||||
|
} from 'react-bootstrap';
|
||||||
|
|
||||||
const propTypes = {};
|
const propTypes = {};
|
||||||
|
|
||||||
export default function NotFound() {
|
export default function NotFound() {
|
||||||
return (
|
return (
|
||||||
<Alert bsStyle='danger'>
|
<div className='not-found'>
|
||||||
<h4>We couldn't find a page for that address.</h4>
|
<Alert bsStyle='info'>
|
||||||
<p>
|
<p>
|
||||||
Head back to  
|
{ 'Sorry, we couldn\'t find a page for that address.' }
|
||||||
<a href='/challenges/current-challenge'>
|
|
||||||
your current challenge
|
|
||||||
</a>
|
|
||||||
.
|
|
||||||
</p>
|
</p>
|
||||||
</Alert>
|
</Alert>
|
||||||
|
<a href={'/map'}>
|
||||||
|
<Button
|
||||||
|
bsSize='lg'
|
||||||
|
bsStyle='primary'
|
||||||
|
>
|
||||||
|
Take me to the Challenges
|
||||||
|
</Button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user