import type { LoaderArgs } from '@remix-run/node';
import { json, redirect } from '@remix-run/node';
import {
createStyles,
Title,
SimpleGrid,
Text,
Button,
ThemeIcon,
Grid,
Col,
Image,
Container,
Group,
Box
} from '@mantine/core';
import { Server, Lock, Users, FileText, GitHub } from 'react-feather';
import { getUserId } from '~/session.server';
import { Link } from '@remix-run/react';
export async function loader({ request }: LoaderArgs) {
const userId = await getUserId(request);
if (userId) return redirect('/time-entries');
return json({});
}
const features = [
{
icon: FileText,
title: 'Free and open source',
description:
'All packages are published under GNU Public license v3, you can self host this app and use it for free forever'
},
{
icon: Server,
title: 'Host anywhere',
description:
'You can host this app on your own server or using any cloud provider, your choice'
},
{
icon: Lock,
title: 'Privacy friendly, you own your data',
description:
'No analytics or tracking scripts, no ads, no data sharing. You are in control of your data'
},
{
icon: Users,
title: 'Flexible',
description:
'Use it for yourself as single user or invite your team to collaborate, you can also use it as a public service as admin'
}
];
const items = features.map((feature) => (