guesstimate/client/src/components/footer/index.tsx

31 lines
1.1 KiB
TypeScript
Raw Normal View History

2020-07-09 13:00:42 +02:00
import React, { FunctionComponent } from "react";
2020-05-09 17:34:29 +02:00
import style from "./style.module.css";
2023-09-01 06:22:13 +02:00
import { formatDate } from "../../util/date";
2020-05-09 17:34:29 +02:00
declare var __BUILD__: any;
export interface FooterProps {
class?: string
}
2020-07-09 13:00:42 +02:00
const Footer: FunctionComponent<FooterProps> = ({ ...props}) => {
2023-09-01 06:22:13 +02:00
console.log(__BUILD__)
2020-05-09 17:34:29 +02:00
return (
2020-07-09 13:00:42 +02:00
<div className={`container ${style.footer} ${props.class ? props.class : ''}`}>
<div className="columns">
<div className="column is-4 is-offset-8">
<p className="has-text-right is-size-7">
Propulsé par <a className="has-text-primary" href="https://forge.cadoles.com/wpetit/guesstimate">Guesstimate</a> et publié sous licence <a className="has-text-primary" href="https://www.gnu.org/licenses/agpl-3.0.txt">AGPL-3.0</a>.
2020-05-09 17:34:29 +02:00
</p>
2020-07-09 13:00:42 +02:00
<p className="has-text-right is-size-7">
2023-09-01 06:22:13 +02:00
Réf.: {__BUILD__.gitRef ? __BUILD__.gitRef : '??'} |
Date de construction: {__BUILD__.buildDate ? formatDate(__BUILD__.buildDate) : '??'}
2020-05-09 17:34:29 +02:00
</p>
</div>
</div>
</div>
);
};
export default Footer;