Skip to content

Commit

Permalink
careers page adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Sep 21, 2023
1 parent 83ea683 commit e242e4f
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 79 deletions.
111 changes: 48 additions & 63 deletions docs/pages/careers.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as React from 'react';
import { styled } from '@mui/material/styles';
import Box from '@mui/material/Box';
import Container from '@mui/material/Container';
import Divider from '@mui/material/Divider';
import Grid from '@mui/material/Grid';
import Stack from '@mui/material/Stack';
import Paper from '@mui/material/Paper';
import Button from '@mui/material/Button';
import Badge from '@mui/material/Badge';
import Typography from '@mui/material/Typography';
import KeyboardArrowRightRounded from '@mui/icons-material/KeyboardArrowRightRounded';
import KeyboardArrowDownRounded from '@mui/icons-material/KeyboardArrowDownRounded';
Expand Down Expand Up @@ -48,7 +48,7 @@ function Role(props: RoleProps) {
<Typography variant="body1" color="text.primary" fontWeight="semiBold" gutterBottom>
{props.title}
</Typography>
<Typography component="p" color="text.secondary" sx={{ mb: 1, maxWidth: 700 }}>
<Typography component="p" color="text.secondary" sx={{ maxWidth: 700 }}>
{props.description}
</Typography>
</span>
Expand All @@ -71,7 +71,7 @@ function Role(props: RoleProps) {
<Typography variant="body1" color="text.primary" fontWeight={700} sx={{ my: 1 }}>
{props.title}
</Typography>
<Typography color="text.secondary" sx={{ mb: 1, maxWidth: 700 }}>
<Typography color="text.secondary" sx={{ maxWidth: 700 }}>
{props.description}
</Typography>
</div>
Expand Down Expand Up @@ -271,34 +271,19 @@ function CareersContent() {
return (
<React.Fragment>
{/* Hero */}
<Container>
<Box
sx={{
height: '36vh',
minHeight: 300,
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
maxWidth: 600,
mx: 'auto',
textAlign: 'center',
}}
>
<SectionHeadline
alwaysCenter
overline="Join us"
title={
<Typography variant="h2" sx={{ maxWidth: 600, mx: 'auto' }}>
Build <GradientText>the next generation</GradientText>
<br /> of tools for UI development
</Typography>
}
description="Together, we are enabling developers & designers to bring stunning UIs to life with unrivalled speed and ease."
/>
</Box>
</Container>
{/* Our ultimate goal */}
<Section cozy>
<SectionHeadline
alwaysCenter
overline="Join us"
title={
<Typography variant="h2" sx={{ maxWidth: 600, mx: 'auto' }}>
Build <GradientText>the next generation</GradientText>
<br /> of tools for UI development
</Typography>
}
description="Together, we are enabling developers & designers to bring stunning UIs to life with unrivalled speed and ease."
/>
</Section>
<Divider />
<OurValues />
<Divider />
Expand Down Expand Up @@ -395,17 +380,21 @@ function CareersContent() {
<Divider />
{/* Open roles */}
<Section cozy>
<div>
<Typography variant="h2" sx={{ my: 1 }} id="open-roles">
{`Open roles (${openRolesData.reduce((acc, item) => acc + item.roles.length, 0)})`}
</Typography>
<Typography color="text.secondary" sx={{ mb: 2, maxWidth: 500 }}>
The company is bootstrapped (so far). It was incorporated in mid-2019 and is growing
fast (x2 YoY). We doubled the team in 2020 (6), accelerated in 2021 (15), kept a similar
pace in 2022 (25), and we plan to double it in 2023 (50). We&apos;re looking for help to
grow in the following areas:
</Typography>
</div>
<SectionHeadline
title={
<Typography variant="h2" id="open-roles" gutterBottom>
Open roles
<Badge
badgeContent={openRolesData.reduce((acc, item) => acc + item.roles.length, 0)}
color="error"
showZero
sx={{ ml: 3 }}
/>
</Typography>
}
description="The company is bootstrapped (so far). It was incorporated in mid-2019 and is growing fast (x2 YoY). We doubled the team in 2020 (6), accelerated in 2021 (15), kept a similar pace in 2022 (25), and we plan to double it in 2023 (50). We're looking for help to
grow in the following areas:"
/>
<Divider sx={{ my: { xs: 2, sm: 4 } }} />
<Stack
spacing={2}
Expand Down Expand Up @@ -450,27 +439,23 @@ function CareersContent() {
{nextRolesData.length > 0 && (
<Box data-mui-color-scheme="dark" sx={{ bgcolor: 'primaryDark.900' }}>
<Section bg="transparent">
<Box
sx={{
display: 'flex',
flexDirection: 'column',
alignItems: 'start',
gap: 1,
}}
>
<Typography variant="h2" id="next-roles">
Next roles
</Typography>
<Typography color="text.secondary" sx={{ mb: 2, maxWidth: 450 }}>
We hire in batches, we collect applications a few months before we actively aim to
fill the roles. If none of these roles fit with what you are looking for, you can
apply to the{' '}
<Link href="https://jobs.ashbyhq.com/MUI/4715d81f-d00f-42d4-a0d0-221f40f73e19/application?utm_source=ZNRrPGBkqO">
Dream job
</Link>{' '}
role.
</Typography>
</Box>
<SectionHeadline
title={
<Typography variant="h2" id="next-roles" gutterBottom>
Next roles
</Typography>
}
description={
<React.Fragment>
We hire in batches, we collect applications a few months before we actively aim to
fill the roles. If none of them fit with what you are looking for, apply to the{' '}
<Link href="https://jobs.ashbyhq.com/MUI/4715d81f-d00f-42d4-a0d0-221f40f73e19/application?utm_source=ZNRrPGBkqO">
Dream job
</Link>{' '}
role.
</React.Fragment>
}
/>
<Divider sx={{ my: { xs: 2, sm: 4 } }} />
<Stack spacing={2} divider={<Divider sx={{ my: { xs: 1, sm: 2 } }} />}>
{nextRolesData.map((category) => {
Expand Down
34 changes: 18 additions & 16 deletions docs/src/components/typography/SectionHeadline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Typography from '@mui/material/Typography';
interface SectionHeadlineProps {
description?: React.ReactNode;
id?: string;
overline: React.ReactNode;
overline?: React.ReactNode;
title: string | React.ReactElement;
alwaysCenter?: boolean;
/**
Expand All @@ -17,21 +17,23 @@ export default function SectionHeadline(props: SectionHeadlineProps) {
const { description, id, overline, title, alwaysCenter = false, inverted = false } = props;
return (
<React.Fragment>
<Typography
id={id}
component="h2"
variant="body2"
fontWeight="bold"
color="primary.main"
sx={{
mb: 1,
...(alwaysCenter && {
textAlign: 'center',
}),
}}
>
{overline}
</Typography>
{overline && (
<Typography
id={id}
component="h2"
variant="body2"
fontWeight="bold"
color="primary.main"
sx={{
mb: 1,
...(alwaysCenter && {
textAlign: 'center',
}),
}}
>
{overline}
</Typography>
)}
{typeof title === 'string' ? (
<Typography
variant="h2"
Expand Down

0 comments on commit e242e4f

Please sign in to comment.