-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2110cf4
commit 8f2189a
Showing
5 changed files
with
177 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { gql } from '@solid-primitives/graphql' | ||
|
||
export default { | ||
gql: gql` | ||
query ($organization: String!, $repository: String!) { | ||
repository(owner: $organization, name: $repository) { | ||
issues( | ||
first: 100 | ||
states: CLOSED | ||
orderBy: { field: CREATED_AT, direction: DESC } | ||
labels: "Approved :white_check_mark:" | ||
) { | ||
nodes { | ||
id | ||
number | ||
title | ||
url | ||
body | ||
bodyText | ||
bodyHTML | ||
reactions(first: 100) { | ||
nodes { | ||
content | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`, | ||
vars: { | ||
organization: process.env.GH_ORG | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
import { A } from 'solid-start' | ||
import { Container } from '~/components/Container' | ||
import Logo from '~/assets/cdc-logo.png' | ||
import { GitHubIcon, LinkedInIcon } from '~/components/SocialIcons' | ||
import clsx from 'clsx' | ||
import organizationQuery from '~/graphql/organization.query.js' | ||
import graphql from '~/lib/graphql.server.js' | ||
import { useRouteData } from 'solid-start' | ||
|
||
function SocialLink(props) { | ||
return ( | ||
<li class={clsx(props.class, 'flex')}> | ||
<A | ||
href={props.href} | ||
class="group flex text-sm font-medium text-zinc-800 transition hover:text-teal-500 dark:text-zinc-200 dark:hover:text-teal-500" | ||
> | ||
<props.icon class="h-6 w-6 flex-none fill-zinc-500 transition group-hover:fill-teal-500" /> | ||
<span class="ml-4">{props.children}</span> | ||
</A> | ||
</li> | ||
) | ||
} | ||
|
||
function MailIcon(props) { | ||
return ( | ||
<svg viewBox="0 0 24 24" aria-hidden="true" {...props}> | ||
<path | ||
fillRule="evenodd" | ||
d="M6 5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3H6Zm.245 2.187a.75.75 0 0 0-.99 1.126l6.25 5.5a.75.75 0 0 0 .99 0l6.25-5.5a.75.75 0 0 0-.99-1.126L12 12.251 6.245 7.187Z" | ||
/> | ||
</svg> | ||
) | ||
} | ||
|
||
export function routeData() { | ||
const [data] = graphql(organizationQuery.gql, organizationQuery.vars) | ||
return data | ||
} | ||
|
||
export default function Speaker() { | ||
const data = useRouteData() | ||
|
||
return ( | ||
<Container class="mt-16 sm:mt-32"> | ||
<div class="grid grid-cols-1 gap-y-16 lg:grid-cols-2 lg:grid-rows-[auto_1fr] lg:gap-y-12"> | ||
<div class="lg:pl-20"> | ||
<div class="max-w-xs px-2.5 lg:max-w-none"> | ||
<img | ||
src={Logo} | ||
alt="" | ||
sizes="(min-width: 1024px) 32rem, 20rem" | ||
class="aspect-square rotate-3 rounded-2xl bg-zinc-100 object-cover dark:bg-zinc-800" | ||
/> | ||
</div> | ||
</div> | ||
<div class="lg:order-first lg:row-span-2"> | ||
<h1 class="text-4xl font-bold tracking-tight text-zinc-800 dark:text-zinc-100 sm:text-5xl"> | ||
{data()?.organization?.name} | ||
</h1> | ||
<div class="mt-6 space-y-7 text-base text-zinc-600 dark:text-zinc-400"> | ||
{data()?.organization?.description} | ||
</div> | ||
</div> | ||
<div class="lg:pl-20"> | ||
<ul role="list"> | ||
<SocialLink | ||
href={data()?.organization?.url} | ||
icon={GitHubIcon} | ||
class="mt-4" | ||
> | ||
Follow on GitHub | ||
</SocialLink> | ||
<SocialLink | ||
href="https://www.linkedin.com/groups/12659214/" | ||
icon={LinkedInIcon} | ||
class="mt-4" | ||
> | ||
Follow on LinkedIn | ||
</SocialLink> | ||
<SocialLink | ||
href="mailto:[email protected]" | ||
icon={MailIcon} | ||
class="mt-8 border-t border-zinc-100 pt-8 dark:border-zinc-700/40" | ||
> | ||
[email protected] | ||
</SocialLink> | ||
</ul> | ||
</div> | ||
</div> | ||
</Container> | ||
) | ||
} |