Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

press to remix and add routing

Maksim Mrug364e1041b698
diff --git a/app/pages/Press/index.tsx b/app/pages/Press/index.tsx
index 5db47eaed..a789c56f1 100644
--- a/app/pages/Press/index.tsx
+++ b/app/pages/Press/index.tsx
@@ -1,10 +1,9 @@
/* eslint-disable jsx-a11y/anchor-has-content */
import React from 'react'
-import { Link } from 'react-router-dom'
+import { Link } from '@remix-run/react'
import { useTranslation, Trans } from 'react-i18next'
-import Title from 'components/Title'
-import routes from 'routes'
+import routes from 'routesPath'
const FONT_INTER_URL = 'https://rsms.me/inter/'
const FONT_NAME = 'Inter'
@@ -61,66 +60,64 @@ const Press = (): JSX.Element => {
} = useTranslation('common')
return (
- <Title title={t('titles.press')}>
- <div className='min-h-min-footer bg-gray-50 dark:bg-slate-900'>
- <div className='w-11/12 md:w-4/5 mx-auto pb-16 pt-12 px-4 sm:px-6 lg:px-8 whitespace-pre-line'>
- <h1 className='text-4xl font-bold text-gray-900 dark:text-gray-50 tracking-tight'>
- {t('titles.press')}
- </h1>
- <p className='mt-2 text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
- <Trans
- i18nKey='press.description'
- components={{
- url: <Link to={routes.contact} className='font-medium hover:underline text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500' />,
- }}
- />
- </p>
+ <div className='min-h-min-footer bg-gray-50 dark:bg-slate-900'>
+ <div className='w-11/12 md:w-4/5 mx-auto pb-16 pt-12 px-4 sm:px-6 lg:px-8 whitespace-pre-line'>
+ <h1 className='text-4xl font-bold text-gray-900 dark:text-gray-50 tracking-tight'>
+ {t('titles.press')}
+ </h1>
+ <p className='mt-2 text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
+ <Trans
+ i18nKey='press.description'
+ components={{
+ url: <Link to={routes.contact} className='font-medium hover:underline text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500' />,
+ }}
+ />
+ </p>
- {/* Logos */}
- <h2 className='text-2xl mt-2 font-bold text-gray-900 dark:text-gray-50 tracking-tight'>
- {t('press.logos')}
- </h2>
- <div className='grid grid-cols-2 gap-4 mt-2'>
- <LogoComponent
- description={t('press.logo')}
- logoPNG='/assets/logo_blue.png'
- />
- <LogoComponent
- description={t('press.logoWhiteText')}
- logoPNG='/assets/logo_white.png'
- />
- </div>
- <div className='grid grid-cols-2 gap-4 mt-8'>
- <LogoComponent
- description={t('press.logoNoText')}
- logoPNG='/logo512.png'
- />
- </div>
-
- {/* Font */}
- <h2 className='text-2xl mt-8 font-bold text-gray-900 dark:text-gray-50 tracking-tight'>
- {t('press.font.title')}
- </h2>
- <p className='mt-2 text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
- <Trans
- i18nKey='press.font.description'
- components={{
- url: <a
- aria-label='Inter font website (opens in a new tab)'
- href={FONT_INTER_URL}
- className='font-medium hover:underline text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500'
- target='_blank'
- rel='noopener noreferrer'
- />,
- }}
- values={{
- font: FONT_NAME,
- }}
- />
- </p>
+ {/* Logos */}
+ <h2 className='text-2xl mt-2 font-bold text-gray-900 dark:text-gray-50 tracking-tight'>
+ {t('press.logos')}
+ </h2>
+ <div className='grid grid-cols-2 gap-4 mt-2'>
+ <LogoComponent
+ description={t('press.logo')}
+ logoPNG='/assets/logo_blue.png'
+ />
+ <LogoComponent
+ description={t('press.logoWhiteText')}
+ logoPNG='/assets/logo_white.png'
+ />
+ </div>
+ <div className='grid grid-cols-2 gap-4 mt-8'>
+ <LogoComponent
+ description={t('press.logoNoText')}
+ logoPNG='/logo512.png'
+ />
</div>
+
+ {/* Font */}
+ <h2 className='text-2xl mt-8 font-bold text-gray-900 dark:text-gray-50 tracking-tight'>
+ {t('press.font.title')}
+ </h2>
+ <p className='mt-2 text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
+ <Trans
+ i18nKey='press.font.description'
+ components={{
+ url: <a
+ aria-label='Inter font website (opens in a new tab)'
+ href={FONT_INTER_URL}
+ className='font-medium hover:underline text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500'
+ target='_blank'
+ rel='noopener noreferrer'
+ />,
+ }}
+ values={{
+ font: FONT_NAME,
+ }}
+ />
+ </p>
</div>
- </Title>
+ </div>
)
}
diff --git a/app/routes/press.tsx b/app/routes/press.tsx
new file mode 100644
index 000000000..9dbb29810
--- /dev/null
+++ b/app/routes/press.tsx
@@ -0,0 +1,10 @@
+import Press from 'pages/Press'
+import type { V2_MetaFunction } from '@remix-run/node'
+
+export const meta: V2_MetaFunction = () => {
+ return [{ title: 'Press' }, { name: 'description', content: 'Press' }]
+}
+
+export default function Index() {
+ return <Press />
+}
diff --git a/app/routesPath/index.ts b/app/routesPath/index.ts
index be3b28a33..7116a75df 100644
--- a/app/routesPath/index.ts
+++ b/app/routesPath/index.ts
@@ -5,7 +5,7 @@ const routes = Object.freeze({
new_password_form: '/password-reset/:id', // add
confirm_share: '/share/:id',
confirm_subcription: '/projects/:id/subscribers/invite',
- main: '/',
+ main: '/', // add
dashboard: '/dashboard',
user_settings: '/settings',
verify: '/verify-email/:id', // add
@@ -26,7 +26,7 @@ const routes = Object.freeze({
about: '/about', // add
create_alert: '/projects/:pid/alerts/create',
alert_settings: '/projects/:pid/alerts/settings/:id',
- press: '/press',
+ press: '/press', // add
transfer_confirm: '/project/transfer/confirm',
transfer_reject: '/project/transfer/cancel',
socialised: '/socialised', // add