import { Badge, Box, Card, Flex, Grid, Heading, Image, Text } from 'theme-ui' import Icon from '@hackclub/icons' import NextLink from 'next/link' import useSWR from 'swr' import fetcher from '../../lib/fetcher' import SlackEvents from './slack-events' const withCommas = x => x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') export default function Channels() { const { data: millionCount } = useSWR( 'https://drac.firepup650.hackclub.app/api/currentNumber', fetcher, { refreshInterval: 10_000 } ) return ( div': { px: [2, 3], py: 4, display: 'flex', flexDirection: 'column', justifyContent: 'center', gridColumn: ['span 1', 'span 3'] }, a: { position: 'relative', ':hover,:focus': { svg: { transform: 'translateX(28px) translateY(-28px)', opacity: 0 } } }, svg: { position: 'absolute', top: 2, right: 2, fill: 'white', transition: 'transform 0.25s ease-in-out, opacity 0.25s ease-in-out' }, h3: { variant: 'text.headline', color: 'white', lineHeight: 'title', m: 0, '+ p': { mt: 2, color: 'white', opacity: 0.75, fontSize: 2, lineHeight: 'caption' } } }} > Live from our Slack
Waiting for more messages...
t.util.gx('cyan', 'blue') }} > #ship Launch your latest projects & get feedback t.util.gx('yellow', 'orange') }} > #scrapbook A daily diary of project updates #counttoamillion We’re at{' '} {millionCount ? withCommas(millionCount.number) : '???'} !

#gamedev

#design

#code

#photography

#music Music notes #lounge `linear-gradient(-184deg, ${colors.red} 0%, ${colors.red} 16.6666%, ${colors.orange} 16.6666%, ${colors.orange} 33.333%, ${colors.yellow} 33.333%, ${colors.yellow} 50%, ${colors.green} 50%, ${colors.green} 66.6666%, ${colors.blue} 66.6666%, ${colors.blue} 83.3333%, ${colors.purple} 83.3333%, ${colors.purple} 100%)` }} >

#lgbtq

) }