v0.1/new-features #44

Merged
lamacchinadesiderante merged 2 commits from v0.1/new-features into main 2024-04-26 20:33:36 +00:00
5 changed files with 24 additions and 3 deletions
Showing only changes of commit 761858b0c4 - Show all commits

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 Theme from './Theme';
import Language from './Language';
import Repo from './Repo';
const Menu: React.FC = () => {
return (
<div className={style.container}>
<Language />
<Repo />
<Theme />
</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'],
// Used when no locale matches
defaultLocale: 'it'
defaultLocale: 'en'
});
export const config = {