-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,197 additions
and
21 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* theme8.css */ | ||
|
||
#theme8 { | ||
background-color: #f8f9fa; | ||
color: #343a40; | ||
font-family: 'Roboto', sans-serif; | ||
padding: 20px; | ||
border-radius: 10px; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
#info { | ||
border-bottom: 2px solid #007bff; | ||
padding-bottom: 20px; | ||
margin-bottom: 20px; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.info-text h2 { | ||
color: #007bff; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.info-text p { | ||
margin: 5px 0; | ||
color: #6c757d; | ||
} | ||
|
||
.summary-text { | ||
width: 100%; | ||
margin-top: 10px; | ||
} | ||
|
||
.border { | ||
border-bottom: 1px solid #dee2e6; | ||
margin: 20px 0; | ||
} | ||
|
||
.partition-1, | ||
.partition-2 { | ||
width: 48%; | ||
} | ||
|
||
.bottom-part { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.bottom-part .sub-details { | ||
margin-left: 20px; | ||
} | ||
|
||
.sub-details li { | ||
margin-bottom: 5px; | ||
} | ||
|
||
.badge { | ||
display: inline-block; | ||
background-color: #007bff; | ||
color: #fff; | ||
border-radius: 10px; | ||
padding: 5px 10px; | ||
margin: 5px 0; | ||
font-size: 0.9em; | ||
} | ||
|
||
@media print { | ||
#theme8 { | ||
box-shadow: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
import React, { useContext } from "react"; | ||
import { Box, Text, Image, Heading, Badge } from "@chakra-ui/react"; | ||
import "./Theme8.css"; | ||
import ResumeContext from "../../Context/ResumeContext"; | ||
|
||
const Theme8 = (props) => { | ||
const { componentRef, themeData } = props; | ||
const { name, address, phone, email, profile, profileImage, summary, skill } = | ||
themeData.personalData; | ||
|
||
const { checkProj, checkWork, checkAward } = useContext(ResumeContext); | ||
const { projectTitles, projectDesc } = themeData.projectData; | ||
const { educationTitles, educationDesc } = themeData.educationData; | ||
const { workTitles, workDesc } = themeData.workData; | ||
const { awards } = themeData.awardData; | ||
|
||
return ( | ||
<Box id="section-to-print" ref={componentRef}> | ||
<Box id="theme8"> | ||
<header id="info"> | ||
<Box className="info-text"> | ||
<Heading as="h2" size="xl" className="mb-2"> | ||
{name} | ||
</Heading> | ||
<Text fontWeight="500" fontSize="xl" className="mt-1 mb-2"> | ||
{profile} | ||
</Text> | ||
<Text fontSize="sm" className="summary-text"> | ||
{summary} | ||
</Text> | ||
</Box> | ||
<Box> | ||
<Image | ||
id="resume-avatar" | ||
borderRadius="full" | ||
boxSize="150px" | ||
src={profileImage} | ||
alt="Profile Picture" | ||
/> | ||
</Box> | ||
</header> | ||
|
||
<div className="w-100 border m-auto"></div> | ||
|
||
<section className="bottom-part mt-3"> | ||
<section className="partition-1"> | ||
<Box> | ||
<Heading fontSize="2xl" className="my-2"> | ||
Contact | ||
</Heading> | ||
<Box className="mt-3"> | ||
<Heading fontSize="md" className="my-2"> | ||
Phone | ||
</Heading> | ||
<Text fontSize="sm">{phone}</Text> | ||
<Heading fontSize="md" className="my-2"> | ||
</Heading> | ||
<Text fontSize="sm">{email}</Text> | ||
<Heading fontSize="md" className="my-2"> | ||
Address | ||
</Heading> | ||
<Text fontSize="sm">{address}</Text> | ||
</Box> | ||
</Box> | ||
|
||
<Box className="mt-5"> | ||
<Heading fontSize="2xl" className="my-2"> | ||
Skills | ||
</Heading> | ||
<Box className="mt-3"> | ||
{skill.split(",").map((item, index) => ( | ||
<Badge className="badge" key={index}> | ||
{item} | ||
</Badge> | ||
))} | ||
</Box> | ||
</Box> | ||
</section> | ||
|
||
<div | ||
style={{ height: "536px" }} | ||
className="border border-dark mx-4" | ||
></div> | ||
|
||
<section className="partition-2"> | ||
<Box id="education-area"> | ||
<Heading fontSize="2xl" className="my-2"> | ||
Education | ||
</Heading> | ||
{Object.entries(educationTitles).map((element, index) => ( | ||
<Box key={index} className="mt-3"> | ||
<Heading fontSize="md" className="my-2"> | ||
{element[1]} | ||
</Heading> | ||
<Box className="sub-details"> | ||
{Object.entries(educationDesc) | ||
[index]?.[1].split(",") | ||
.map((desc, idx) => ( | ||
<li key={idx}>{desc}</li> | ||
))} | ||
</Box> | ||
</Box> | ||
))} | ||
</Box> | ||
|
||
{!checkProj && ( | ||
<Box id="project-area"> | ||
<Heading fontSize="2xl" className="mt-4"> | ||
Projects | ||
</Heading> | ||
{Object.entries(projectTitles).map((element, index) => ( | ||
<Box key={index} className="mt-1"> | ||
<Heading fontSize="md" className="my-2"> | ||
{element[1]} | ||
</Heading> | ||
<Box className="sub-details"> | ||
{Object.entries(projectDesc) | ||
[index]?.[1].split(",") | ||
.map((desc, idx) => ( | ||
<li key={idx}>{desc}</li> | ||
))} | ||
</Box> | ||
</Box> | ||
))} | ||
</Box> | ||
)} | ||
|
||
{!checkWork && ( | ||
<Box id="experience-area"> | ||
<Heading fontSize="2xl" className="mt-4"> | ||
Work Experience | ||
</Heading> | ||
{Object.entries(workTitles).map((element, index) => ( | ||
<Box key={index} className="mt-1"> | ||
<Heading fontSize="md" className="my-2"> | ||
{element[1]} | ||
</Heading> | ||
<Box className="sub-details"> | ||
{Object.entries(workDesc) | ||
[index]?.[1].split(",") | ||
.map((desc, idx) => ( | ||
<li key={idx}>{desc}</li> | ||
))} | ||
</Box> | ||
</Box> | ||
))} | ||
</Box> | ||
)} | ||
|
||
{!checkAward && ( | ||
<Box id="award-area"> | ||
<Heading fontSize="2xl" className="mt-4"> | ||
Awards & Achievements | ||
</Heading> | ||
<Box className="mt-1"> | ||
{awards.split(",").map((element, index) => ( | ||
<li key={index}>{element}</li> | ||
))} | ||
</Box> | ||
</Box> | ||
)} | ||
</section> | ||
</section> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default Theme8; |
Oops, something went wrong.