colouring-montreal/app/src/frontend/components/logo.tsx

59 lines
1.4 KiB
TypeScript
Raw Normal View History

import React from 'react';
import { Link } from 'react-router-dom';
import './logo.css';
/**
* Logo
2019-08-14 03:56:00 -04:00
*
* As link to homepage, used in top header
*/
2019-08-14 03:56:00 -04:00
const Logo: React.FunctionComponent = () => (
<Link to="/" className="logo navbar-brand" id="top">
2019-08-14 03:56:00 -04:00
<LogoGrid />
<h1 className="logotype">
<span>Colouring</span>
<span>London</span>
</h1>
</Link>
);
2019-08-14 03:56:00 -04:00
/**
* MinorLogo
*
* As plain logo, used in legend
*/
const MinorLogo: React.FunctionComponent = () => (
<div className="logo">
<LogoGrid />
<h3 className="h3 logotype">
<span>Colouring</span>
<span>London</span>
</h3>
</div>
)
const LogoGrid: React.FunctionComponent = () => (
<div className="grid">
<div className="row">
<div className="cell"></div>
<div className="cell"></div>
<div className="cell"></div>
<div className="cell"></div>
</div>
<div className="row">
<div className="cell"></div>
<div className="cell"></div>
<div className="cell"></div>
<div className="cell"></div>
</div>
<div className="row">
<div className="cell"></div>
<div className="cell"></div>
<div className="cell"></div>
<div className="cell"></div>
</div>
</div>
)
export { Logo, MinorLogo };