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