@@ -16,55 +16,58 @@ export default function Toolbar({
1616 resetCv,
1717} : Props ) {
1818 return (
19- < div className = "flex gap-5 justify-center items-center" >
20- < div className = "bg-white flex items-center justify-center rounded-2xl gap-1 text-gray-100" >
19+ < div className = "fixed bottom-10 mx-auto flex gap-5 w-fit justify-center items-center bg-white rounded-full px-2 py-2 border border-slate-200 shadow-lg z-9999 " >
20+ < div className = "bg-white flex gap-1 items-center justify-center text-gray-100" >
2121 < button
22- className = "flex gap-2 items-center px-5 py-2 rounded-l-2xl bg- slate-900 hover:bg -slate-800 hover:scale-105 cursor-pointer transition-all"
23- onClick = { ( ) => zoomIn ( ) }
22+ className = "text- slate-500 hover:text -slate-800 cursor-pointer transition-all"
23+ onClick = { ( ) => zoomOut ( ) }
2424 >
25- < i className = "fas fa-magnifying-glass-plus" > </ i >
26- Zoom In
25+ < i className = "fas fa-minus" > </ i >
2726 </ button >
2827
2928 < input
3029 key = { scaleFactor }
3130 aria-label = "Zoom percentage"
3231 defaultValue = { ( scaleFactor * 100 ) . toFixed ( 0 ) + "%" }
33- className = "text-black font-bold w-[50px] text-center focus:outline-none"
32+ className = "text-slate-500 w-[5ch] font-bold px-1 text-center focus:outline-none text-xs "
3433 onKeyDown = { ( e ) => {
3534 if ( e . key == "Enter" ) {
3635 const val = parseInt ( e . currentTarget . value ) ;
3736 if ( ! isNaN ( val ) ) {
38- const clamped = Math . min ( MAX_ZOOM * 100 , Math . max ( MIN_ZOOM * 100 , val ) ) ;
37+ const clamped = Math . min (
38+ MAX_ZOOM * 100 ,
39+ Math . max ( MIN_ZOOM * 100 , val ) ,
40+ ) ;
3941 setScaleFactor ( clamped / 100 ) ;
4042 }
4143 }
4244 } }
4345 />
4446
4547 < button
46- className = "flex gap-2 items-center px-5 py-2 rounded-r-2xl bg- slate-900 hover:bg -slate-800 hover:scale-105 cursor-pointer transition-all"
47- onClick = { ( ) => zoomOut ( ) }
48+ className = "text- slate-500 hover:text -slate-800 cursor-pointer transition-all"
49+ onClick = { ( ) => zoomIn ( ) }
4850 >
49- < i className = "fas fa-magnifying-glass-minus" > </ i >
50- Zoom Out
51+ < i className = "fas fa-plus" > </ i >
5152 </ button >
5253 </ div >
5354
54- < button
55- className = "flex items-center gap-2 bg-slate-900 text-white px-5 py-2 rounded-xl font-bold hover:bg-slate-800 hover:scale-105 cursor-pointer transition-all shadow-md active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed"
56- onClick = { ( ) => window . print ( ) }
57- >
58- < i className = "fas fa-download" > </ i > Download PDF
59- </ button >
55+ < span className = "w-px h-4 bg-slate-300" > </ span >
6056
6157 < button
62- className = "flex items-center gap-2 bg-red- 500 text-white px-5 py-2 rounded-xl font-bold hover:bg-red-600 hover:scale-105 cursor-pointer transition-all shadow-md active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed "
58+ className = "text-slate- 500 hover:text-slate-800 cursor-pointer transition-all"
6359 onClick = { ( ) => {
6460 resetCv ( ) ;
6561 } }
6662 >
67- < i className = "fas fa-redo" > </ i > Reset CV
63+ < i className = "fas fa-redo" > </ i >
64+ </ button >
65+
66+ < button
67+ className = "flex items-center gap-2 bg-indigo-600 text-white px-6 py-2 rounded-full font-bold hover:bg-slate-800 cursor-pointer transition-all shadow-md active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed text-sm"
68+ onClick = { ( ) => window . print ( ) }
69+ >
70+ < i className = "fas fa-print" > </ i > Print PDF
6871 </ button >
6972 </ div >
7073 ) ;
0 commit comments