Skip to content

Commit bd4e2f3

Browse files
committed
Update Top Steps Bar For Resume Page
Signed-off-by: Tal Jacob <taljacob2@gmail.com>
1 parent c31151f commit bd4e2f3

2 files changed

Lines changed: 41 additions & 14 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.layout-container.resume {
2+
padding-top: 0vh;
3+
}

nextstep-frontend/src/pages/Resume.tsx

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import ScoreGauge from '../components/ScoreGauge';
2626
import Carousel from 'react-material-ui-carousel';
2727
import CloseIcon from '@mui/icons-material/Close';
2828
import ZoomInIcon from '@mui/icons-material/ZoomIn';
29+
import './Resume.css';
2930

3031
const steps = ['Score your resume', 'Choose a template', 'Generate matching resume'];
3132

@@ -115,15 +116,36 @@ const TemplateCard = styled(Card)(({ theme }) => ({
115116
maxWidth: '1200px',
116117
margin: '0 auto',
117118
'& .MuiCardMedia-root': {
118-
height: 'calc(100vh - 200px)', // Account for header and card actions
119-
minHeight: '800px',
119+
height: 'calc(100vh - 300px)',
120+
minHeight: '600px',
120121
backgroundSize: 'contain',
121122
backgroundPosition: 'center',
122123
backgroundColor: theme.palette.grey[100],
123124
width: '100%',
124125
},
125126
}));
126127

128+
const NavigationContainer = styled(Box)(({ theme }) => ({
129+
top: 0,
130+
zIndex: 1000,
131+
backgroundColor: theme.palette.background.default,
132+
padding: theme.spacing(2),
133+
display: 'flex',
134+
justifyContent: 'space-between',
135+
alignItems: 'center',
136+
borderBottom: `1px solid ${theme.palette.divider}`,
137+
marginBottom: theme.spacing(2),
138+
}));
139+
140+
const StepperContainer = styled(Box)(({ theme }) => ({
141+
top: 64,
142+
zIndex: 999,
143+
backgroundColor: theme.palette.background.default,
144+
padding: theme.spacing(2, 0),
145+
borderBottom: `1px solid ${theme.palette.divider}`,
146+
marginBottom: theme.spacing(2),
147+
}));
148+
127149
const Resume: React.FC = () => {
128150
const [activeStep, setActiveStep] = useState(0);
129151
const [file, setFile] = useState<File | null>(null);
@@ -565,17 +587,7 @@ const Resume: React.FC = () => {
565587

566588
return (
567589
<Box sx={{ width: '100%' }}>
568-
<Stepper activeStep={activeStep} alternativeLabel sx={{ mb: 4 }}>
569-
{steps.map((label) => (
570-
<Step key={label}>
571-
<StepLabel>{label}</StepLabel>
572-
</Step>
573-
))}
574-
</Stepper>
575-
576-
{renderStepContent(activeStep)}
577-
578-
<Box sx={{ display: 'flex', justifyContent: 'space-between', mt: 2 }}>
590+
<NavigationContainer>
579591
<Button
580592
disabled={activeStep === 0}
581593
onClick={handleBack}
@@ -589,7 +601,19 @@ const Resume: React.FC = () => {
589601
>
590602
Next
591603
</Button>
592-
</Box>
604+
</NavigationContainer>
605+
606+
<StepperContainer>
607+
<Stepper activeStep={activeStep} alternativeLabel>
608+
{steps.map((label) => (
609+
<Step key={label}>
610+
<StepLabel>{label}</StepLabel>
611+
</Step>
612+
))}
613+
</Stepper>
614+
</StepperContainer>
615+
616+
{renderStepContent(activeStep)}
593617
</Box>
594618
);
595619
};

0 commit comments

Comments
 (0)