Skip to content

Commit cd3bda1

Browse files
committed
Improve accessability field label & placeholder
1 parent 976a49e commit cd3bda1

File tree

3 files changed

+43
-8
lines changed

3 files changed

+43
-8
lines changed

components/bio.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export default function Bio({ popup = true, spanTwo = false, ...props }) {
4242
height={64}
4343
mr={3}
4444
src={
45-
img ||
46-
require(`../public/team/${name.split(' ')[0].toLowerCase()}.jpg`)
45+
img
46+
// require(`../public/team/${name.split(' ')[0].toLowerCase()}.jpg`)
4747
}
4848
alt={name}
4949
sx={{

components/hcb/apply/personal-form.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ export default function PersonalInfoForm({
164164
<Field
165165
name="accommodations"
166166
label="Accessibility needs"
167-
description="Please specify any accommodations or accessibility needs you have so we can support you during onboarding and while using HCB"
167+
description="Please specify any accommodations, accessibility needs, or other important information so we can support you during onboarding and while using HCB"
168168
requiredFields={requiredFields}
169169
>
170170
<Input
171171
name="accommodations"
172172
id="accommodations"
173-
placeholder="I need a screen reader"
173+
placeholder="I use a screen reader / I need increased text size during onboarding"
174174
sx={{ ...AutofillColourFix }}
175175
/>
176176
</Field>

pages/team.js

+39-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import Footer from '../components/footer'
66
import Bio from '../components/bio'
77
import ForceTheme from '../components/force-theme'
88

9-
export default function Team() {
9+
export default function Team({ team }) {
10+
console.log(team.current)
1011
return (
1112
<>
1213
<Box as="main" key="main">
@@ -81,7 +82,17 @@ export default function Team() {
8182
</Text>
8283
<Box sx={{ flexGrow: 1 }}>
8384
<Grid columns={[1, null, 2]} gap={2} mb={2}>
84-
<Bio
85+
{team.current.filter(m => m.department === "Board").map(m => (
86+
<Bio
87+
img={m.avatar}
88+
name={m.name}
89+
teamRole={m.role}
90+
text={m.bio}
91+
pronouns={m.pronouns}
92+
/>
93+
))}
94+
<>
95+
{/* <Bio
8596
img="/team/zach.jpg"
8697
name="Zach Latta"
8798
teamRole="Founder"
@@ -120,7 +131,8 @@ export default function Team() {
120131
href="https://en.wikipedia.org/wiki/John_Abele"
121132
subrole="Founder, Boston Scientific"
122133
pronouns="he/him"
123-
/>
134+
/> */}
135+
</>
124136
</Grid>
125137
</Box>
126138
</Flex>
@@ -143,7 +155,17 @@ export default function Team() {
143155
Hacker Resources Team
144156
</Text>
145157
<Grid columns={[1, null, 2]} gap={2}>
146-
<Bio
158+
{team.current.filter(m => m.department === "HQ").map(m => (
159+
<Bio
160+
img={m.avatar}
161+
name={m.name}
162+
teamRole={m.role}
163+
text={m.bio}
164+
pronouns={m.pronouns}
165+
/>
166+
))}
167+
{/* <>
168+
<Bio
147169
name="Kara Massie"
148170
teamRole="Production Lead"
149171
text="Before joining Hack Club, Kara was a lead producer at Activision, shipping Crash Bandicoot N. Sane Trilogy and Bungie's Destiny 2 expansions. She’s deeply committed to inclusivity in gaming and tech spaces, and is beyond thrilled to be part of an org with kindness at its core. She has lived in 3 countries and names her pets after vegetables."
@@ -265,6 +287,7 @@ export default function Team() {
265287
href="https://page.devlucas.page"
266288
video="https://www.youtube.com/embed/vuLtlzMMW6o?si=v-Dbn2fSGvTyXlbY"
267289
/>
290+
</> */}
268291
</Grid>
269292
</Box>
270293
</Box>
@@ -692,3 +715,15 @@ When not busy juggling different tasks he takes up, he enjoys tinkering & buildi
692715
</>
693716
)
694717
}
718+
719+
export async function getStaticProps(context) {
720+
const res = await fetch(`https://internal.hackclub.com/team`)
721+
const team = await res.json()
722+
723+
return {
724+
props: {
725+
team
726+
},
727+
revalidate: 10
728+
}
729+
}

0 commit comments

Comments
 (0)