2023-03-09 15:57:46 +01:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import Terminal from 'react-console-emulator';
|
|
|
|
import Files from './emulation/files';
|
|
|
|
import commands from './emulation/commands';
|
|
|
|
|
|
|
|
const welcome = `
|
|
|
|
Welcome to my resume!
|
|
|
|
Type 'help' for list of commands.
|
|
|
|
`;
|
|
|
|
|
2023-03-09 16:27:10 +01:00
|
|
|
const inputStyle = { color: '#2e8b7e', fontWeight: 'bold' };
|
|
|
|
|
2023-03-09 15:57:46 +01:00
|
|
|
export class Base extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Terminal
|
|
|
|
commands={commands}
|
|
|
|
welcomeMessage={welcome}
|
2023-03-09 16:27:10 +01:00
|
|
|
promptLabel={
|
|
|
|
<pre>
|
|
|
|
user@blek.codes
|
|
|
|
<span style={{color: '#2968ac'}}> ~/resume </span>
|
|
|
|
<span style={{color: '#ff5092'}}>(
|
|
|
|
<span style={{color:'limegreen'}}>master</span>
|
|
|
|
) </span>
|
|
|
|
$
|
|
|
|
</pre>
|
|
|
|
}
|
|
|
|
|
2023-03-09 16:14:19 +01:00
|
|
|
style={{height:'100%'}}
|
2023-03-09 16:27:10 +01:00
|
|
|
|
|
|
|
promptLabelStyle={inputStyle}
|
|
|
|
inputTextStyle={{...inputStyle, color: '#5ba2b0', transform: 'translateY(2px)'}}
|
|
|
|
|
|
|
|
styleEchoBack={'fullInherit'}
|
2023-03-09 15:57:46 +01:00
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|
2023-03-09 15:19:09 +01:00
|
|
|
}
|