import React from 'react';
import clsx from 'clsx';
import { FiGithub, FiPlay } from 'react-icons/fi';
import {
TbChefHat,
TbPingPong,
TbRepeat,
TbServer,
TbShield,
} from 'react-icons/tb';
import { BsBoxSeam } from 'react-icons/bs';
import { FaCreativeCommonsZero } from 'react-icons/fa';
import { MdOutlineHdrStrong } from 'react-icons/md';
import { Anchor, Image } from '@theguild/components';
import Link from 'next/link';
const classes = {
button: {
gray: 'inline-block bg-gray-200 hover:bg-gray-300 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 text-gray-600 px-6 py-3 rounded-lg font-medium shadow-sm',
lime: 'inline-block bg-lime-200 hover:bg-lime-300 dark:bg-lime-800 dark:text-lime-300 dark:hover:bg-lime-700 text-lime-600 px-6 py-3 rounded-lg font-medium shadow-sm',
},
link: {
blue: 'text-blue-600 hover:text-blue-800 dark:hover:text-blue-400',
lime: 'text-lime-600 hover:text-lime-800 dark:hover:text-lime-400',
},
};
const gradients: [string, string][] = [
['#eab308', '#a16207'], // yellow
['#6366f1', '#4338ca'], // indigo
['#84cc16', '#4d7c0f'], // lime
];
function pickGradient(i: number) {
const gradient = gradients[i % gradients.length];
if (!gradient) {
throw new Error('No gradient found');
}
return gradient;
}
export function Index() {
return (
<>
Zero-dependency, lazy, simple, spec compliant server and client
As a reference implementation, the library is fully compliant
with the{' '}
GraphQL over WebSocket spec
Single library, but both the server and the client is included
Short and concise code snippets for starting with common
use-cases
GraphQL WS
{description}