import CardModel from './card-model'
import { Box, Flex, Grid, Image, Link, Text } from 'theme-ui'
import Buttons from './button'
import Dot from '../../dot'
import { formatDate } from '../../../lib/dates'
/** @jsxImportSource theme-ui */
const Cover = () => (
)
export default function Hackathons({ data, stars }) {
return (
High School Hackathons
We support the largest network of high school hackathons in the
world. From an online community of organizers to free stickers and
more!{' '}
Attend a hackathon
Organizer? Learn more.
Upcoming Hackathons
{data.slice(0, 5).map(data => (
{data.logo && (
)}
{data.name}
{formatDate('mmmm d', new Date(data.start))}
))}
Upcoming Hackathons:
{data.slice(0, 2).map(data => (
{data.logo && (
)}
{data.name}
))}
)
}