add gitea repo link in header

This commit is contained in:
lamacchinadesiderante 2024-04-26 19:52:27 +02:00
parent 7a35807546
commit 761858b0c4
5 changed files with 24 additions and 3 deletions

View File

@ -0,0 +1,20 @@
'use client'
import React from 'react';
import { SiGitea } from "react-icons/si";
import Icon from '../Icon';
import { REPO_GITEA_URL } from '@/constants/repo';
const Menu: React.FC = () => {
return (
<Icon handleClick={() => {window.location.href = REPO_GITEA_URL;}}>
{<SiGitea size={24} />}
</Icon>
);
};
export default Menu;

View File

@ -3,13 +3,13 @@ import React from 'react';
import style from './Menu.module.scss' import style from './Menu.module.scss'
import Theme from './Theme'; import Theme from './Theme';
import Language from './Language'; import Repo from './Repo';
const Menu: React.FC = () => { const Menu: React.FC = () => {
return ( return (
<div className={style.container}> <div className={style.container}>
<Language /> <Repo />
<Theme /> <Theme />
</div> </div>
); );

1
src/constants/repo.ts Normal file
View File

@ -0,0 +1 @@
export const REPO_GITEA_URL = 'https://git.lamacchinadesiderante.org/lamacchinadesiderante/proxyraye-nextjs'

View File

@ -5,7 +5,7 @@ export default createMiddleware({
locales: ['en', 'it'], locales: ['en', 'it'],
// Used when no locale matches // Used when no locale matches
defaultLocale: 'it' defaultLocale: 'en'
}); });
export const config = { export const config = {