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.
|
|
|
|
`;
|
|
|
|
|
|
|
|
export class Base extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Terminal
|
|
|
|
commands={commands}
|
|
|
|
welcomeMessage={welcome}
|
|
|
|
promptLabel={'user@blek.codes/resume~$'}
|
2023-03-09 16:14:19 +01:00
|
|
|
style={{height:'100%'}}
|
2023-03-09 15:57:46 +01:00
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|
2023-03-09 15:19:09 +01:00
|
|
|
}
|