Skip to content

Commit 44adcd7

Browse files
committed
tweak error page
1 parent b961bab commit 44adcd7

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tutorcruncher-socket",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "TutorCruncher socket",
55
"author": "Samuel Colvin <[email protected]>",
66
"private": false,

src/components/shared/Error.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React from 'react'
22

3+
const HELP_SITE = 'help.tutorcruncher.com/tc-socket/'
4+
35
const Error = ({children}) => (
46
<div className="tcs-errors">
5-
<p>
6-
An error occurred with TutorCruncher socket:
7-
</p>
7+
<p>An error occurred while loading TutorCruncher socket:</p>
88
<p className="tcs-error-content">{children}</p>
99
<p>
10-
It's likely that you've configured socket wrongly. You might get more information from the developer console, or
11-
<a target="_blank" rel="noopener noreferrer" href="https://help.tutorcruncher.com/tc-socket/">help.tutorcruncher.com/tc-socket/</a>,
12-
if you can't work out what's wrong contact [email protected].
10+
It's likely that you've configured socket wrongly. You might get more information from the developer console,
11+
or <a target="_blank" rel="noopener noreferrer" href={'https://' + HELP_SITE}>{HELP_SITE}</a>,
12+
if you still can't work out what's wrong contact [email protected].
1313
</p>
1414
</div>
1515
)

src/styles/tools.scss

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,18 @@
4141
.tcs-errors {
4242
margin: 5px;
4343
padding: 10px 10px;
44-
font-size: 13px;
44+
font-size: 14px !important;
45+
border: 1px solid #f44;
46+
border-radius: 4px;
47+
color: #444;
4548
img {
4649
width: 100%;
4750
}
4851
.tcs-error-content {
49-
font-family: monospace;
50-
background-color: darken(white, 5%);
51-
padding: 20px 10px;
52+
color: black;
53+
padding: 0 20px;
5254
white-space: pre-wrap;
5355
word-wrap: break-word;
54-
font-size: 12px;
55-
}
56-
dt {
57-
margin: 15px 0 5px;
58-
font-weight: 500;
5956
}
6057
}
6158

0 commit comments

Comments
 (0)