From 504ebee0ab490bc30b0bdca8183d5bcccad47da9 Mon Sep 17 00:00:00 2001 From: Aman Date: Sun, 11 Aug 2024 23:58:59 +0530 Subject: [PATCH] formatting --- src/app/resume-builder/Preview.jsx | 33 +++----- src/app/resume-builder/ResumeForm.jsx | 3 +- src/app/resume-builder/ResumePDF.jsx | 104 ++------------------------ src/db/tools.json | 6 +- 4 files changed, 18 insertions(+), 128 deletions(-) diff --git a/src/app/resume-builder/Preview.jsx b/src/app/resume-builder/Preview.jsx index fd0458c3..ebc7acde 100644 --- a/src/app/resume-builder/Preview.jsx +++ b/src/app/resume-builder/Preview.jsx @@ -37,6 +37,7 @@ const Preview = ({ isDarkMode, data }) => { width: "35%", borderRadius: "50%", }, + rectangleImage: { width: "35%", borderRadius: "0", @@ -45,21 +46,20 @@ const Preview = ({ isDarkMode, data }) => { profileDetails: { marginLeft: 0, }, + name: { fontSize: 30, color: "#2c3e50", - // marginBottom: 5, }, + profession: { fontSize: 14, color: "#7f8c8d", - // marginBottom: 10, }, contactInfo: { fontSize: 12, color: "#7f8c8d", - // marginBottom: 2, }, sectionTitle: { @@ -75,17 +75,17 @@ const Preview = ({ isDarkMode, data }) => { color: "#333", marginBottom: 6, }, + subtitle: { fontSize: 14, color: "#7f8c8d", - marginBottom: 5, paddingLeft: 10, }, + subLink: { fontSize: 12, color: "#7f8c8d", - marginBottom: 5, paddingLeft: 10, }, @@ -148,6 +148,7 @@ const Preview = ({ isDarkMode, data }) => { contactInfo: { fontSize: 13, }, + sectionTitle: { fontSize: 18, color: "#020617", // light-slate @@ -156,11 +157,13 @@ const Preview = ({ isDarkMode, data }) => { borderTop: "2px solid #000", fontWeight: "600", }, + text: { fontSize: 14, marginBottom: 5, color: "#020617", // light-slate }, + title: { fontSize: 14, fontWeight: "bold", @@ -171,6 +174,7 @@ const Preview = ({ isDarkMode, data }) => { subtitle: { color: "#334155", }, + section: { marginBottom: 20, width: "100%", @@ -207,7 +211,6 @@ const Preview = ({ isDarkMode, data }) => {

{name}

{data.workExperience[0].title}

-

{email}

@@ -216,7 +219,6 @@ const Preview = ({ isDarkMode, data }) => { {phone}

)} -
{links.linkedIn && (

@@ -245,7 +247,6 @@ const Preview = ({ isDarkMode, data }) => {

-

Work Experience

{workExperience.map((job, index) => ( @@ -256,7 +257,6 @@ const Preview = ({ isDarkMode, data }) => {
))} -

Education

{education.map((edu, index) => ( @@ -267,7 +267,6 @@ const Preview = ({ isDarkMode, data }) => {
))} -

Projects

{projects.map((project, index) => ( @@ -280,7 +279,6 @@ const Preview = ({ isDarkMode, data }) => {
))} -

Skills

@@ -302,7 +300,6 @@ const Preview = ({ isDarkMode, data }) => { {skillsCategory.category}: )} - {skillsCategory.skills.map((skill, id) => ( {skill} @@ -312,7 +309,6 @@ const Preview = ({ isDarkMode, data }) => { ))}
- {achievements && (
{achievements && ( @@ -374,7 +370,6 @@ const Preview = ({ isDarkMode, data }) => { {name} )} -
{email && ( @@ -384,7 +379,6 @@ const Preview = ({ isDarkMode, data }) => { )} - {phone && ( @@ -393,11 +387,9 @@ const Preview = ({ isDarkMode, data }) => { )} - {address && ( {address} )} - {links.linkedIn && ( @@ -405,7 +397,6 @@ const Preview = ({ isDarkMode, data }) => { )} - {links.github && ( @@ -414,7 +405,6 @@ const Preview = ({ isDarkMode, data }) => { )} - {links.website && ( @@ -428,7 +418,6 @@ const Preview = ({ isDarkMode, data }) => {
Experience
- {workExperience.map((workExp, index) => (
@@ -448,7 +437,6 @@ const Preview = ({ isDarkMode, data }) => {
Projects
- {projects.map((project, index) => (
@@ -465,7 +453,6 @@ const Preview = ({ isDarkMode, data }) => {
))}
-

Education

{education.map((edu, index) => ( @@ -481,7 +468,6 @@ const Preview = ({ isDarkMode, data }) => {
))}
-

Skills

@@ -504,7 +490,6 @@ const Preview = ({ isDarkMode, data }) => { ))}
- {achievements && (

Achievements

diff --git a/src/app/resume-builder/ResumeForm.jsx b/src/app/resume-builder/ResumeForm.jsx index 28bed5f5..6e4de530 100644 --- a/src/app/resume-builder/ResumeForm.jsx +++ b/src/app/resume-builder/ResumeForm.jsx @@ -52,7 +52,6 @@ const ResumeForm = ({ onFormChange, isDarkMode }) => { const handleLinksChange = (e) => { const { name, value } = e.target; - // console.log(name, value); setFormData({ ...formData, links: { ...formData.links, [name]: value } }); onFormChange({ ...formData, links: { ...formData.links, [name]: value } }); }; @@ -70,7 +69,7 @@ const ResumeForm = ({ onFormChange, isDarkMode }) => { } }; - // Add Function + // Adding Function const addWorkExperience = () => { setFormData({ ...formData, diff --git a/src/app/resume-builder/ResumePDF.jsx b/src/app/resume-builder/ResumePDF.jsx index 4deb7472..fbf5254d 100644 --- a/src/app/resume-builder/ResumePDF.jsx +++ b/src/app/resume-builder/ResumePDF.jsx @@ -29,11 +29,13 @@ const styles1 = StyleSheet.create({ justifyContent: "space-between", marginBottom: 20, }, + circleImage: { width: 100, height: 100, borderRadius: "50%", }, + rectangleImage: { width: 100, height: 100, @@ -45,12 +47,14 @@ const styles1 = StyleSheet.create({ display: "flex", alignItems: "start", }, + name: { fontSize: 28, color: "#2c3e50", marginBottom: 5, fontWeight: "bold", }, + profession: { fontSize: 14, color: "#7f8c8d", @@ -76,6 +80,7 @@ const styles1 = StyleSheet.create({ color: "#333", marginBottom: 6, }, + subtitle: { fontSize: 12, color: "#7f8c8d", @@ -99,8 +104,6 @@ const styles1 = StyleSheet.create({ marginBottom: 5, paddingLeft: 10, lineHeight: "1.5px", - - // lineHeight:"1.2px" }, link: { @@ -132,80 +135,6 @@ const styles1 = StyleSheet.create({ }, }); -// const styles2 = StyleSheet.create({ -// page: { -// padding: 20, -// color: "#1e293b", -// fontFamily: "Times-Roman", -// }, - -// main: { -// width: "100%", -// display: "flex", -// flexDirection: "column", -// alignItems: "center", -// justifyContent: "center", -// }, - -// name: { -// fontSize: 28, -// fontWeight: "bold", - -// // fontFamily: "Lora", -// fontFamily: "Times-Roman", -// }, - -// contactInfo: { -// fontSize: 12, -// }, - -// link: { -// color: "#020617", // light-slate -// textDecoration: "dotted", -// }, - -// sectionTitle: { -// fontSize: 18, -// color: "#020617", // light-slate -// marginBottom: 10, -// borderBottom: "2px solid #000", -// borderTop: "2px solid #000", -// fontWeight: 600, -// paddingTop: 3, -// fontStyle: "italic", -// fontFamily: "Times-Bold", -// }, - -// text: { -// fontSize: 14, -// marginBottom: 5, -// fontWeight: 500, -// color: "#020617", // light-slate -// fontFamily: "Times-Roman", -// }, - -// title: { -// fontSize: 16, -// fontWeight: "bold", -// marginBottom: 5, -// color: "#1e293b", -// fontFamily: "Times-Bold", -// }, - -// subtitle: { -// // fontWeight: 600, -// color: "#020617", // light-slate -// fontSize: 14, -// marginBottom: 5, -// fontFamily: "Times-BoldItalic", -// }, - -// section: { -// marginBottom: 20, -// width: "100%", -// }, -// }); - const ResumePDF = ({ data }) => { const { name, @@ -246,21 +175,17 @@ const ResumePDF = ({ data }) => { {workExperience[0].title} )} - {email && ( Email: {email}{" "} )} - {phone && ( Phone: {phone} )} - {address && ( Address: {address} )} - {links.linkedIn && ( LinkedIn: @@ -269,7 +194,6 @@ const ResumePDF = ({ data }) => { )} - {links.github && ( GitHub: @@ -278,7 +202,6 @@ const ResumePDF = ({ data }) => { )} - {links.website && ( Website: @@ -299,7 +222,6 @@ const ResumePDF = ({ data }) => { ))} - Education {education.map((edu, index) => ( @@ -310,7 +232,6 @@ const ResumePDF = ({ data }) => { ))} - Projects {projects.map((project, index) => ( @@ -323,7 +244,6 @@ const ResumePDF = ({ data }) => { ))} - Skills @@ -356,7 +276,6 @@ const ResumePDF = ({ data }) => { ))} - {achievements && ( Achievements @@ -449,7 +368,6 @@ const ResumePDF = ({ data }) => { {email} - { {phone} - {address} - { {links.linkedIn} - { {links.github} - { - { ))} - { ))} - { ))} - { borderTop: "2px solid #000", fontWeight: 600, paddingTop: 3, - - // fontFamily: "Times-Bold", }} > Skills @@ -781,7 +689,6 @@ const ResumePDF = ({ data }) => { ))} - { > Achievements - {achievements.map((achievement, index) => (