Skip to content

Commit

Permalink
fix: customization for boulder-js
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Aug 20, 2024
1 parent ba55700 commit eb2ede2
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 86 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: ./.github/workflows/unit.yml

deploy:
name: Deploy cdc.cy
name: Deploy boulderjs.org
runs-on: ubuntu-latest
needs: [codequality, unit]
if: needs.codequality.result == 'success' && needs.unit.result == 'success'
Expand Down
11 changes: 11 additions & 0 deletions src/components/SocialIcons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,14 @@ export function DiscordIcon(props) {
</svg>
)
}

export function BlueSkyIcon(props) {
return (
<svg fill="none" viewBox="0 0 64 57" {...props}>
<path
fill="#0085ff"
d="M13.873 3.805C21.21 9.332 29.103 20.537 32 26.55v15.882c0-.338-.13.044-.41.867-1.512 4.456-7.418 21.847-20.923 7.944-7.111-7.32-3.819-14.64 9.125-16.85-7.405 1.264-15.73-.825-18.014-9.015C1.12 23.022 0 8.51 0 6.55 0-3.268 8.579-.182 13.873 3.805ZM50.127 3.805C42.79 9.332 34.897 20.537 32 26.55v15.882c0-.338.13.044.41.867 1.512 4.456 7.418 21.847 20.923 7.944 7.111-7.32 3.819-14.64-9.125-16.85 7.405 1.264 15.73-.825 18.014-9.015C62.88 23.022 64 8.51 64 6.55c0-9.818-8.578-6.732-13.873-2.745Z"
></path>
</svg>
)
}
4 changes: 2 additions & 2 deletions src/graphql/announcement.query.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
`,
vars: {
organization: process.env.GH_ORG,
repository: 'home',
announcementCategoryId: 'DIC_kwDOG41Ukc4CBSDX'
repository: '.github',
announcementCategoryId: 'DIC_kwDOMan6cM4ChIlA'
}
}
6 changes: 3 additions & 3 deletions src/routes/about.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function About() {
</div>
<ul role="list">
<SocialLink
href={'https://github.com/cyprus-developer-community'}
href={'https://github.com/boulder-js'}
icon={GitHubIcon}
class="mt-4"
>
Expand All @@ -72,11 +72,11 @@ export default function About() {
Follow on LinkedIn
</SocialLink>
<SocialLink
href="mailto:contact@cdc.cy"
href="mailto:contact@boulderjs.org"
icon={MailIcon}
class="mt-8 border-t border-zinc-100 pt-8 dark:border-zinc-700/40"
>
contact@cdc.cy
contact@boulderjs.org
</SocialLink>
</ul>
</div>
Expand Down
24 changes: 12 additions & 12 deletions src/routes/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { For, splitProps, Show, Switch, Match, createMemo } from 'solid-js'
import { A, createAsync, cache } from '@solidjs/router'
import clsx from 'clsx'
import { Container } from '~/components/Container'
import { GitHubIcon, LinkedInIcon, DiscordIcon } from '~/components/SocialIcons'
import { GitHubIcon, BlueSkyIcon, DiscordIcon } from '~/components/SocialIcons'
import graphql from '~/server/graphql.js'
import fileQuery from '~/graphql/file.query.js'
import organizationQuery from '~/graphql/organization.query.js'
Expand Down Expand Up @@ -126,7 +126,7 @@ function Stats(props) {
value: props.organization()?.repository?.issues?.totalCount
},
{
name: 'Cyprus',
name: 'Boulder',
value: '100%'
}
]
Expand All @@ -138,7 +138,7 @@ function Stats(props) {
<div class="mx-auto max-w-2xl lg:max-w-none">
<div class="text-center">
<H2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
Your Tech Community in Cyprus
Your Tech Community in Boulder
</H2>
{/* <p class="mt-4 text-lg leading-8 text-gray-600">
Lorem ipsum dolor sit amet consect adipisicing possimus.
Expand Down Expand Up @@ -167,7 +167,7 @@ function Stats(props) {
const readmeData = cache(async () => {
'use server'
const readmeFile = await graphql(fileQuery.gql(), {
repository: 'home',
repository: '.github',
path: 'README.md',
...fileQuery.vars
})
Expand Down Expand Up @@ -210,17 +210,17 @@ export default function App() {
</Show>
<div class="mt-6 flex gap-6">
<SocialLink
href="https://github.com/cyprus-developer-community"
href="https://github.com/boulder-js"
aria-label="Follow on GitHub"
icon={GitHubIcon}
/>
<SocialLink
href="https://www.linkedin.com/groups/12659214/"
aria-label="Follow on LinkedIn"
icon={LinkedInIcon}
href="https://bsky.app/profile/boulderjs.org"
aria-label="Follow on BlueSky"
icon={BlueSkyIcon}
/>
<SocialLink
href="https://chat.cdc.cy"
href="https://chat.boulderjs.org"
aria-label="Join on Discord"
icon={DiscordIcon}
/>
Expand All @@ -242,9 +242,9 @@ export default function App() {
}

// TODO: CTAs
// - Subscribe calendar: https://calendar.cdc.cy
// - Join Discord: https://chat.cdc.cy
// - Follow on GitHub: https://github.com/cyprus-developer-community
// - Subscribe calendar: https://calendar.boulderjs.org
// - Join Discord: https://chat.boulderjs.org
// - Follow on GitHub: https://github.com/boulder-js
// - Follow on LinkedIn: https://www.linkedin.com/groups/12659214/
// - Interact on GitHub to get invited to the organization
// - Subscribe email: mailerlite
68 changes: 0 additions & 68 deletions src/to-refactor/groups.jsx

This file was deleted.

0 comments on commit eb2ede2

Please sign in to comment.