2025-10-22 22:35:25 +08:00
|
|
|
import { useTranslation } from 'react-i18next'
|
2025-12-23 16:04:44 +08:00
|
|
|
import { siGithub } from 'simple-icons'
|
2025-10-22 22:35:25 +08:00
|
|
|
|
2025-09-29 16:33:15 +08:00
|
|
|
export default function Footer() {
|
2025-10-22 22:35:25 +08:00
|
|
|
const { t } = useTranslation('common')
|
|
|
|
|
|
2025-09-29 16:33:15 +08:00
|
|
|
return (
|
|
|
|
|
<footer
|
|
|
|
|
className="bg-gray-50 dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700"
|
|
|
|
|
role="contentinfo"
|
|
|
|
|
>
|
2025-10-11 22:56:38 +08:00
|
|
|
<div className="max-w-7xl mx-auto px-6 py-6">
|
|
|
|
|
<div className="flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0">
|
2025-10-22 22:35:25 +08:00
|
|
|
<p className="text-gray-600 dark:text-gray-300 text-sm">{t('footer.copyright')}</p>
|
2025-10-11 22:56:38 +08:00
|
|
|
<div className="flex items-center space-x-6">
|
|
|
|
|
<a
|
|
|
|
|
href="https://github.com/alibaba/page-agent"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
2025-10-22 22:35:25 +08:00
|
|
|
className="text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors duration-200"
|
|
|
|
|
aria-label={t('footer.github_label')}
|
2025-10-11 22:56:38 +08:00
|
|
|
>
|
2025-12-23 16:04:44 +08:00
|
|
|
<svg
|
|
|
|
|
role="img"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
className="w-5 h-5 fill-current"
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
>
|
|
|
|
|
<path d={siGithub.path} />
|
2025-10-11 22:56:38 +08:00
|
|
|
</svg>
|
|
|
|
|
</a>
|
2025-09-29 16:33:15 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
)
|
|
|
|
|
}
|