2017-12-25 13:53:16 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { Tooltip } from 'antd';
|
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const now = new Date();
|
|
|
|
const isChristmas = now.getMonth() === 11 && now.getDate() === 25;
|
|
|
|
return (
|
|
|
|
isChristmas && (
|
2018-12-25 10:18:01 +08:00
|
|
|
<Tooltip title="🎅🏻 Merry Christmas!">
|
2017-12-25 13:53:16 +08:00
|
|
|
<div className="santa">
|
|
|
|
<div className="santa-body">
|
|
|
|
<div className="santa-head">
|
|
|
|
<div className="santa-ear" />
|
|
|
|
<div className="santa-ear" />
|
|
|
|
<div className="santa-hat" />
|
|
|
|
<div className="santa-eye" />
|
|
|
|
<div className="santa-eye" />
|
|
|
|
<div className="santa-nose" />
|
|
|
|
<div className="santa-mouth" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Tooltip>
|
|
|
|
)
|
|
|
|
);
|
|
|
|
};
|