1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-16 04:02:15 +00:00
conky/web/components/Footer.tsx

35 lines
985 B
TypeScript
Raw Normal View History

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