Update ErrorSection styles
This commit is contained in:
parent
b8b3f2fffb
commit
48d451d136
2 changed files with 6 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
section.Error {
|
||||
.error {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -9,14 +9,13 @@ section.Error {
|
|||
height: 60vh;
|
||||
text-align: center;
|
||||
|
||||
.Code {
|
||||
.code {
|
||||
color: var(--text-secondary);
|
||||
font-size: $font-tiny;
|
||||
font-weight: $bold;
|
||||
}
|
||||
|
||||
.Button {
|
||||
margin-top: $unit-2x;
|
||||
width: fit-content;
|
||||
p {
|
||||
margin-bottom: $unit-4x;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const ErrorSection = ({ status }: Props) => {
|
|||
const errorBody = () => {
|
||||
return (
|
||||
<>
|
||||
<div className="Code">{status.code}</div>
|
||||
<div className={styles.code}>{status.code}</div>
|
||||
<h1>{t(`errors.${statusText}.title`)}</h1>
|
||||
<p>{t(`errors.${statusText}.description`)}</p>
|
||||
</>
|
||||
|
|
@ -32,7 +32,7 @@ const ErrorSection = ({ status }: Props) => {
|
|||
}
|
||||
|
||||
return (
|
||||
<section className="Error">
|
||||
<section className={styles.error}>
|
||||
{errorBody()}
|
||||
{[401, 404].includes(status.code) ? (
|
||||
<Link href="/new">
|
||||
|
|
|
|||
Loading…
Reference in a new issue