+
+
)
}
diff --git a/src/routes/events/index.jsx b/src/routes/events/index.jsx
index 06f1c66..ec59526 100644
--- a/src/routes/events/index.jsx
+++ b/src/routes/events/index.jsx
@@ -5,6 +5,7 @@ import graphql from '~/lib/graphql.server.js'
import { useRouteData } from 'solid-start'
import { For, createResource } from 'solid-js'
import bodyParser from '@zentered/issue-forms-body-parser'
+import { SimpleLayout } from '~/components/SimpleLayout'
function EventLine(props) {
const [issueData] = createResource(async () => {
@@ -46,12 +47,14 @@ export default function Event() {
const data = useRouteData()
return (
-
-
-
- {(event) => }
-
-
-
+
+
+ {(event) => }
+
+
)
}
diff --git a/src/routes/faq.jsx b/src/routes/faq.jsx
new file mode 100644
index 0000000..37848c9
--- /dev/null
+++ b/src/routes/faq.jsx
@@ -0,0 +1,39 @@
+import { For } from 'solid-js'
+import { SimpleLayout } from '~/components/SimpleLayout'
+
+const faqs = [
+ {
+ id: 1,
+ question: "What's the best thing about Switzerland?",
+ answer:
+ "I don't know, but the flag is a big plus. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cupiditate laboriosam fugiat."
+ }
+ // More questions...
+]
+
+export default function Example() {
+ return (
+
+
+
+
+ {(faq) => (
+
+
+ {faq.question}
+
+
+ {faq.answer}
+
+
+ )}
+
+
+
+
+ )
+}
diff --git a/src/routes/groups.jsx b/src/routes/groups.jsx
index 1b2e9f2..4414e17 100644
--- a/src/routes/groups.jsx
+++ b/src/routes/groups.jsx
@@ -1,21 +1,20 @@
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'
+import { For, createResource } from 'solid-js'
+import { SimpleLayout } from '~/components/SimpleLayout'
+import { Icon } from 'solid-heroicons'
+import { globeAlt } from 'solid-heroicons/solid'
export function routeData() {
- const [locationsFile] = graphql(fileQuery.gql('groups.json'), {
+ const [groupsFile] = graphql(fileQuery.gql('groups.json'), {
...fileQuery.vars,
repository: 'home'
})
- const groups = createMemo(() => {
- if (locationsFile()) {
- return JSON.parse(locationsFile().repository.object.text)
- }
+ const [groups] = createResource(groupsFile, () => {
+ return JSON.parse(groupsFile().repository.object.text)
})
return {
@@ -27,20 +26,12 @@ export default function 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.
-