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!

3.2 KB
Raw Blame
import { ArrowRightIcon } from '@phosphor-icons/react'
import type { MetaFunction } from 'react-router'
import { Link } from '~/ui/Link'
import { redirect } from 'react-router'
import type { SitemapFunction } from 'remix-sitemap'

import { DitchGoogle } from '~/components/marketing/DitchGoogle'
import { TOOLS } from '~/components/ToolsNav'
import { getOgImageUrl, isSelfhosted } from '~/lib/constants'
import { Text } from '~/ui/Text'
import { getDescription, getPreviewImage, getTitle } from '~/utils/seo'

export const meta: MetaFunction = () => {
  return [
    ...getTitle('Free Website, SEO and Marketing Tools'),
    ...getDescription(
      'Free website, SEO, analytics, and marketing tools to check technical setup, plan campaigns, and improve performance. No sign-up required.',
    ),
    ...getPreviewImage(getOgImageUrl('Free Website, SEO and Marketing Tools')),
  ]
}

export const sitemap: SitemapFunction = () => ({
  priority: 0.9,
  exclude: isSelfhosted,
})

export async function loader() {
  if (isSelfhosted) {
    return redirect('/login', 302)
  }

  return null
}

export default function Tools() {
  return (
    <div className='min-h-screen bg-gray-50 dark:bg-slate-950'>
      <main className='mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8'>
        <div className='max-w-2xl'>
          <Text as='h1' size='4xl' weight='bold' tracking='tight'>
            Free Website, SEO and Marketing Tools
          </Text>
          <Text as='p' size='lg' colour='secondary' className='mt-4'>
            Free technical checks, SEO utilities, analytics calculators, and
            marketing generators to debug your website and improve growth. No
            sign-up required.
          </Text>
        </div>

        <div className='mt-12 grid gap-4 sm:grid-cols-2 lg:grid-cols-3'>
          {TOOLS.map((tool) => {
            const Icon = tool.icon

            return (
              <Link
                key={tool.id}
                to={tool.href}
                className='group relative flex flex-col justify-between rounded-lg bg-white p-6 ring-1 ring-gray-200 transition-shadow hover:ring-gray-300 dark:bg-slate-950 dark:ring-slate-900 dark:hover:bg-slate-900 dark:hover:ring-slate-700'
              >
                <div className='flex items-start gap-4'>
                  <div className='flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-gray-100 dark:bg-slate-800'>
                    <Icon className='h-5 w-5 text-gray-600 dark:text-gray-300' />
                  </div>
                  <div className='min-w-0 flex-1'>
                    <Text as='h2' size='lg' weight='semibold'>
                      {tool.title}
                    </Text>
                    <Text as='p' size='sm' colour='secondary' className='mt-1'>
                      {tool.description}
                    </Text>
                  </div>
                </div>

                <Text
                  as='p'
                  size='sm'
                  colour='secondary'
                  className='mt-4 flex items-center'
                >
                  Use tool
                  <ArrowRightIcon className='ml-1 size-3' />
                </Text>
              </Link>
            )
          })}
        </div>

        <DitchGoogle />
      </main>
    </div>
  )
}