2022-05-10 13:52:06 +00:00
|
|
|
import { h } from 'preact';
|
|
|
|
|
2022-06-03 22:30:39 +00:00
|
|
|
import styles from './css/Header.module.css';
|
|
|
|
|
2022-05-29 20:48:51 +00:00
|
|
|
const README = 'https://github.com/whscullin/apple2js#readme';
|
|
|
|
|
2022-05-10 13:52:06 +00:00
|
|
|
/**
|
|
|
|
* Header component properties.
|
|
|
|
*/
|
|
|
|
export interface HeaderProps {
|
|
|
|
e: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Header component, which consists of a badge and title.
|
|
|
|
*
|
|
|
|
* @returns Header component
|
|
|
|
*/
|
|
|
|
export const Header = ({ e }: HeaderProps) => {
|
|
|
|
return (
|
2022-06-03 22:30:39 +00:00
|
|
|
<div className={styles.header}>
|
2022-05-29 20:48:51 +00:00
|
|
|
<a href={README} rel="noreferrer" target="_blank">
|
2022-06-03 22:30:39 +00:00
|
|
|
<img src="img/badge.png" className={styles.badge} />
|
2022-05-10 13:52:06 +00:00
|
|
|
</a>
|
2022-06-03 22:30:39 +00:00
|
|
|
<div className={styles.subtitle}>
|
|
|
|
An Apple {e ? '//e' : ']['} Emulator in JavaScript
|
|
|
|
</div>
|
2022-05-10 13:52:06 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|