|
|
@@ -2,6 +2,18 @@ import * as React from 'react'; |
|
|
|
import {Layouts} from '@tesseract-design/viewfinder-react'; |
|
|
|
import {Brand} from '@/components/molecules/Brand'; |
|
|
|
|
|
|
|
const formatYear = (yearStarted: number, yearEnded: number) => { |
|
|
|
if (yearStarted === yearEnded) { |
|
|
|
return yearStarted; |
|
|
|
} |
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|
{yearStarted}–{yearEnded} |
|
|
|
</> |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
export const Footer = () => ( |
|
|
|
<footer className="py-12 sm:py-24 flex items-center relative"> |
|
|
|
<div |
|
|
@@ -144,7 +156,7 @@ export const Footer = () => ( |
|
|
|
<Brand/> |
|
|
|
</span> |
|
|
|
{' '} |
|
|
|
{new Date().getFullYear()}. |
|
|
|
{formatYear(2023, new Date().getFullYear())}. |
|
|
|
</div> |
|
|
|
</Layouts.Basic.ContentContainer> |
|
|
|
</footer> |
|
|
|