mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
update crash style
This commit is contained in:
parent
54c08e99a1
commit
956dcec7f3
@ -8,7 +8,7 @@ export const CrashComponent = (props) => {
|
|||||||
|
|
||||||
return <Result
|
return <Result
|
||||||
status="error"
|
status="error"
|
||||||
title="Crash"
|
title="Well, we're sorry! The application has a fatal crash."
|
||||||
subTitle={crash.message}
|
subTitle={crash.message}
|
||||||
extra={[
|
extra={[
|
||||||
<Button type="primary" key="reload" onClick={() => window.location.reload()}>
|
<Button type="primary" key="reload" onClick={() => window.location.reload()}>
|
||||||
@ -17,7 +17,7 @@ export const CrashComponent = (props) => {
|
|||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<code>{crash.error}</code>
|
<code>{crash.details}</code>
|
||||||
</div>
|
</div>
|
||||||
</Result>
|
</Result>
|
||||||
}
|
}
|
||||||
@ -30,5 +30,4 @@ export const CrashWrapper = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default CrashComponent
|
export default CrashComponent
|
@ -3,17 +3,59 @@
|
|||||||
|
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
|
|
||||||
background: rgba(0, 0, 0, 0.5);
|
background: rgba(0, 0, 0, 0.7);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
|
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
.ant-result,
|
||||||
|
.ant-result-title,
|
||||||
|
.ant-result-subtitle,
|
||||||
|
.ant-result-extra {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-result-content {
|
||||||
|
background-color: rgba(0, 0, 0, 0.7) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
color: #fff;
|
||||||
|
font-family: "DM Mono", monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
|
p,
|
||||||
|
span,
|
||||||
|
pre {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
animation: opacity-fade-in 0.3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes opacity-fade-in {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user