diff --git a/src/exams/pdf/index.tsx b/src/exams/pdf/index.tsx index 02adb77c..4b3841fe 100644 --- a/src/exams/pdf/index.tsx +++ b/src/exams/pdf/index.tsx @@ -1,11 +1,19 @@ import React from "react"; -import { Document, Page, View, Text, StyleSheet } from "@react-pdf/renderer"; +import { + Document, + Page, + View, + Text, + StyleSheet, +} from "@react-pdf/renderer"; import ProgressBar from "./progress.bar"; +// import RadialProgress from "./radial.progress"; +// import RadialProgressSvg from "./radial.progress.svg"; const styles = StyleSheet.create({ body: { paddingTop: 35, - paddingBottom: 65, + paddingBottom: 20, paddingHorizontal: 35, }, titleView: { @@ -17,29 +25,28 @@ const styles = StyleSheet.create({ textTransform: "uppercase", }, textPadding: { - margin: "16px", - }, - userSection: { - fontWeight: "bold", + margin: "8px", }, separator: { width: "100%", - borderBottom: "1px solid blue", + borderBottom: "1px solid #89b0c2", + }, + textFont: { + fontFamily: "Helvetica", + }, + textBold: { + fontWeight: "bold", }, textColor: { - color: "blue", + color: "#4e4969", }, textUnderline: { textDecoration: "underline", }, - skillsTitle: { - fontSize: 14, - }, - skillsText: { - fontSize: 12, - }, - footerText: { - fontSize: 9, + spacedRow: { + display: "flex", + flexDirection: "row", + justifyContent: "space-between", }, }); interface Props { @@ -51,36 +58,81 @@ interface Props { } const PDFReport = ({ date, name, email, id, gender }: Props) => { + const defaultTextStyle = [styles.textFont, { fontSize: 8 }]; + const defaultSkillsTextStyle = [styles.textFont, { fontSize: 8 }]; + const defaultSkillsTitleStyle = [ + styles.textFont, + styles.textColor, + styles.textBold, + { fontSize: 7 }, + ]; return ( - + English Skills Test Result Report - Date of Test: {date} + Date of Test: {date} - Candidate Information: + + Candidate Information: + - Name: {name} - ID: {id} - Email: {email} - Gender: {gender} + Name: {name} + ID: {id} + Email: {email} + Gender: {gender} - Test Details: + + Test Details: + - Performance Summary + + Performance Summary + - + Skills Feedback { paddingTop: 10, }} > - - Listening - - xxx - Reading - xxx - Writing - xxx - Speaking - xxx + Listening + xxx + Reading + xxx + Writing + xxx + Speaking + xxx - - - Validity - - This report remains valid for a duration of three months from the - test date. Confidential – circulated for concern people - - Declaration - - We hereby declare that exam results on our platform, assessed by AI, - are not the sole determinants of candidates' English - proficiency levels. While EnCoach provides feedback based on - assessments, we recognize that language proficiency encompasses - practical application, cultural understanding, and real-life - communication. We urge users to consider exam results as a measure - of progress and improvement, and we continuously enhance our system - to ensure accuracy and reliability. - + - - info@encoach.com + + + + + + Validity + + This report remains valid for a duration of three months from + the test date. + + + + Confidential – circulated for concern people + + + + Declaration + + We hereby declare that exam results on our platform, assessed by + AI, are not the sole determinants of candidates' English + proficiency levels. While EnCoach provides feedback based on + assessments, we recognize that language proficiency encompasses + practical application, cultural understanding, and real-life + communication. We urge users to consider exam results as a measure + of progress and improvement, and we continuously enhance our + system to ensure accuracy and reliability. + + + + info@encoach.com https://encoach.com - Group ID: TRI64BNBOIU5043 + + Group ID: TRI64BNBOIU5043 + + `${pageNumber} / ${totalPages}` + } + fixed + /> +