diff --git a/.env b/.env deleted file mode 100644 index 5154636..0000000 --- a/.env +++ /dev/null @@ -1,6 +0,0 @@ -NEXT_PUBLIC_PROJECT_SHORT_NAME="MyProject" -NEXT_PUBLIC_PROJECT_LONG_NAME="MyProject - John Doe's project" - -NEXT_PUBLIC_PROJECT_DESCRIPTION="John Doe's website with full of mysterious adventures" -NEXT_PUBLIC_PROJECT_URL="https://url.com/" -NEXT_PUBLIC_PROJECT_COLOR="#FF000" diff --git a/components/Head.tsx b/components/Head.tsx deleted file mode 100644 index f3611b5..0000000 --- a/components/Head.tsx +++ /dev/null @@ -1,79 +0,0 @@ -import NextHead from 'next/head' - -import { projectConfig } from '@/utils/config' - -interface HeadProps { - longName?: string - shortName?: string - description?: string - color?: string -} - -type HeadDataIconsProps = 'default' | 'image' | 'apple' | '16_16' | '32_32' -type INextHeadIcons = Record - -const Head: React.FC = (props) => { - const { - longName = projectConfig.longName, - shortName = projectConfig.shortName, - description = projectConfig.description, - color = projectConfig.color, - children - } = props - - const icons: INextHeadIcons = { - image: '/images/Logo.png', - default: '/icons/favicons/favicon.ico', - apple: '/icons/favicons/apple-touch-icon.png', - '16_16': '/icons/favicons/favicon-16x16.png', - '32_32': '/icons/favicons/favicon-32x32.png' - } - - return ( - - - {props.longName == null - ? longName - : props.shortName == null && shortName} - - - {/* Link Tags */} - - - - - - {/* Default meta tags */} - - - - - - - - - - - - - {/* Open graph MT */} - - - - - - - - - {/* Twitter card Metadata */} - - - - - - {children} - - ) -} - -export default Head