1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-29 01:58:26 +00:00
conky/web/components/Footer.tsx

35 lines
985 B
TypeScript
Raw Normal View History

2024-04-11 11:02:27 -04:00
import getConfig from 'next/config'
2022-10-14 09:55:06 -05:00
import CopyleftIcon from './CopyleftIcon'
2024-04-24 16:02:35 -04:00
import Link from 'next/link'
2022-10-14 09:55:06 -05:00
const Footer: React.FunctionComponent = () => {
2024-04-11 11:02:27 -04:00
const { publicRuntimeConfig } = getConfig()
2024-04-24 16:02:35 -04:00
const { modifiedDate, modifiedYear, gitHash } = publicRuntimeConfig
2022-10-14 09:55:06 -05:00
return (
2024-04-22 14:13:56 +07:00
<div className="max-w-3xl mx-auto flex py-4 items-center">
<div className="px-2 lg:px-4">
2022-10-14 09:55:06 -05:00
<CopyleftIcon width={20} height={20} />
</div>
2024-04-22 14:13:56 +07:00
<div className="pl-1 pr-2 lg:pr-4 font-sans text-xs">
2024-04-11 11:02:27 -04:00
<p>
2024-04-24 15:08:26 -04:00
{modifiedYear} Conky developers, updated{' '}
{new Date(modifiedDate).toLocaleString()} UTC
2024-04-24 16:02:35 -04:00
{gitHash && (
2024-04-24 16:50:19 -04:00
<>
2024-04-24 16:02:35 -04:00
{' '}
<Link
target="_blank"
href={`https://github.com/brndnmtthws/conky/commit/${gitHash}`}
>
{`(${gitHash})`}
</Link>
2024-04-24 16:50:19 -04:00
</>
2024-04-24 16:02:35 -04:00
)}
2024-04-11 11:02:27 -04:00
</p>
2022-10-14 09:55:06 -05:00
</div>
</div>
)
}
export default Footer