From 11bfdbbfb62157b9863e2de51e75c25fc02b362c Mon Sep 17 00:00:00 2001 From: Patrick Heneise Date: Sat, 11 Nov 2023 13:50:39 -0500 Subject: [PATCH] feat: group page --- src/routes/groups.jsx | 103 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 102 insertions(+), 1 deletion(-) diff --git a/src/routes/groups.jsx b/src/routes/groups.jsx index 01209d8..1b2e9f2 100644 --- a/src/routes/groups.jsx +++ b/src/routes/groups.jsx @@ -1,3 +1,104 @@ +import { A } from 'solid-start' +import { Container } from '~/components/Container' +import fileQuery from '~/graphql/file.query.js' +import graphql from '~/lib/graphql.server.js' +import { useRouteData } from 'solid-start' +import { For, createMemo } from 'solid-js' +import { H2 } from '~/components/Atomic' + +export function routeData() { + const [locationsFile] = graphql(fileQuery.gql('groups.json'), { + ...fileQuery.vars, + repository: 'home' + }) + + const groups = createMemo(() => { + if (locationsFile()) { + return JSON.parse(locationsFile().repository.object.text) + } + }) + + return { + groups + } +} + export default function Groups() { - return <>Groups + const data = useRouteData() + + return ( + +
+

+ Participating Groups +

+

+ The Cyprus Developer Community hosts a number of Meet & Greet events + that are open to everyone. We also host special cross-technology + events called "CDCx". The participating groups are responsible for + their own events and content. A list and calendar of all events from + participating groups in Cyprus will be coming soon. +

+
+ + +
+ ) }