Revert "Improve accessability field label & placeholder"

This reverts commit cd3bda14ff.
This commit is contained in:
Malted 2024-01-26 17:23:53 +01:00
parent cd3bda14ff
commit a808d4f79a
No known key found for this signature in database
3 changed files with 8 additions and 43 deletions

View file

@ -42,8 +42,8 @@ export default function Bio({ popup = true, spanTwo = false, ...props }) {
height={64}
mr={3}
src={
img
// require(`../public/team/${name.split(' ')[0].toLowerCase()}.jpg`)
img ||
require(`../public/team/${name.split(' ')[0].toLowerCase()}.jpg`)
}
alt={name}
sx={{

View file

@ -164,13 +164,13 @@ export default function PersonalInfoForm({
<Field
name="accommodations"
label="Accessibility needs"
description="Please specify any accommodations, accessibility needs, or other important information so we can support you during onboarding and while using HCB"
description="Please specify any accommodations or accessibility needs you have so we can support you during onboarding and while using HCB"
requiredFields={requiredFields}
>
<Input
name="accommodations"
id="accommodations"
placeholder="I use a screen reader / I need increased text size during onboarding"
placeholder="I need a screen reader"
sx={{ ...AutofillColourFix }}
/>
</Field>

View file

@ -6,8 +6,7 @@ import Footer from '../components/footer'
import Bio from '../components/bio'
import ForceTheme from '../components/force-theme'
export default function Team({ team }) {
console.log(team.current)
export default function Team() {
return (
<>
<Box as="main" key="main">
@ -82,17 +81,7 @@ export default function Team({ team }) {
</Text>
<Box sx={{ flexGrow: 1 }}>
<Grid columns={[1, null, 2]} gap={2} mb={2}>
{team.current.filter(m => m.department === "Board").map(m => (
<Bio
img={m.avatar}
name={m.name}
teamRole={m.role}
text={m.bio}
pronouns={m.pronouns}
/>
))}
<>
{/* <Bio
<Bio
img="/team/zach.jpg"
name="Zach Latta"
teamRole="Founder"
@ -131,8 +120,7 @@ export default function Team({ team }) {
href="https://en.wikipedia.org/wiki/John_Abele"
subrole="Founder, Boston Scientific"
pronouns="he/him"
/> */}
</>
/>
</Grid>
</Box>
</Flex>
@ -155,17 +143,7 @@ export default function Team({ team }) {
Hacker Resources Team
</Text>
<Grid columns={[1, null, 2]} gap={2}>
{team.current.filter(m => m.department === "HQ").map(m => (
<Bio
img={m.avatar}
name={m.name}
teamRole={m.role}
text={m.bio}
pronouns={m.pronouns}
/>
))}
{/* <>
<Bio
<Bio
name="Kara Massie"
teamRole="Production Lead"
text="Before joining Hack Club, Kara was a lead producer at Activision, shipping Crash Bandicoot N. Sane Trilogy and Bungie's Destiny 2 expansions. Shes 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."
@ -287,7 +265,6 @@ export default function Team({ team }) {
href="https://page.devlucas.page"
video="https://www.youtube.com/embed/vuLtlzMMW6o?si=v-Dbn2fSGvTyXlbY"
/>
</> */}
</Grid>
</Box>
</Box>
@ -715,15 +692,3 @@ When not busy juggling different tasks he takes up, he enjoys tinkering & buildi
</>
)
}
export async function getStaticProps(context) {
const res = await fetch(`https://internal.hackclub.com/team`)
const team = await res.json()
return {
props: {
team
},
revalidate: 10
}
}