mirror of https://github.com/openspug/spug
A web terminal优化配色
parent
8eec8532d4
commit
e45104f12f
|
@ -19,6 +19,7 @@ function WebSSH(props) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
term.loadAddon(fitPlugin);
|
term.loadAddon(fitPlugin);
|
||||||
term.setOption('fontFamily', 'Source Code Pro, Courier New, Courier, Monaco, monospace, PingFang SC, Microsoft YaHei')
|
term.setOption('fontFamily', 'Source Code Pro, Courier New, Courier, Monaco, monospace, PingFang SC, Microsoft YaHei')
|
||||||
|
term.setOption('theme', {background: '#2b2b2b', foreground: '#A9B7C6'})
|
||||||
term.open(container.current);
|
term.open(container.current);
|
||||||
term.write('WebSocket connecting ... ');
|
term.write('WebSocket connecting ... ');
|
||||||
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
||||||
|
|
|
@ -73,15 +73,15 @@
|
||||||
.terminal {
|
.terminal {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color: #000;
|
background-color: #2b2b2b;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
height: calc(100vh - 42px);
|
height: calc(100vh - 42px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fig {
|
.fig {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
background-color: #000;
|
background-color: #2b2b2b;
|
||||||
color: #fff;
|
color: #A9B7C6;
|
||||||
padding-top: 200px;
|
padding-top: 200px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
Loading…
Reference in New Issue