14 lines
749 B
JavaScript
14 lines
749 B
JavaScript
import { color, wrap } from '../terminal.js';
|
|
|
|
export const name = 'home';
|
|
export const title = 'Home';
|
|
export const order = 0;
|
|
export const description = 'Portfolio landing page';
|
|
|
|
// Edit this function to customize the landing page.
|
|
export function render({ config, ownerOnline }) {
|
|
const p = config.persona || {};
|
|
const status = ownerOnline() ? color('green', 'Owner is online') : color(config.theme?.muted || 'brightBlack', 'Owner is offline');
|
|
return `${color(config.theme?.accent || 'yellow', `Welcome to ${p.name || 'my portfolio'}`)}\n\n${wrap(p.bio || 'You are exploring a portfolio over SSH. Type “help” to get started.').join('\n')}\n\n${status}\n\nCommands: home · pages · open <page> · chat · contact · clear · quit`;
|
|
}
|