Skip to content

fix: added new certificate left overs #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added client/src/assets/images/pattern.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 21 additions & 14 deletions client/src/components/documents/driver-card/card/back/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,30 @@ const DriverCardBack = ({ document }) => {
<p className="text-[45px] mt-[20px]">DRIVER QUALIFICATION CARD</p>
<div className="flex justify-between p-[30px]">
<div>
<div className="text-[45px] text-left mt-[30px] flex flex-col gap-[15px]">
<p>1.Номер сертификата</p>
<div className="text-[35px] font-semibold text-left mt-[30px] flex flex-col gap-[10px]">
<p>1.Фамилия</p>
<p>2.Имя</p>
<p>3.Фамилия</p>
<p>4.Дата рождения</p>
<p>5.Oтчество</p>
<p>7.Категории транспортных средств</p>
<p>8.Страна выдачи</p>
<p>9.Организация-эмитент</p>
<p>3.Дата рождения</p>
<p>4a.Дата выдачи</p>
<p>4b.Срок действия</p>
<p>4c.Наименование органа,выдавшего сертификат</p>
<p>5a.Номер водительского удостоверения</p>
<p>5b.Идентификационный номер</p>
<p>6.Подпись</p>
<p>7.Фото</p>
<p>8.Категории транспортных средств</p>
<p>9.Срок действия соответствующей категории</p>
<p>10.Вносится отметка сертификатя СРС</p>
</div>
<QRCode
className="mb-[20px] mt-[30px]"
value={`https://www.xalqarologistika.uz/check-certificates/${id}`}
/>
</div>
<div className="text-[45px]">
<table className="border-2 border-black">
<tr>
<th className="px-[30px] border-2 border-black">
Category <br /> Категории
8. Category <br /> Категории
</th>
<th className="px-[30px] border-2 border-black">
Until <br /> До
9. Until <br /> До
</th>
</tr>
<tr>
Expand Down Expand Up @@ -68,6 +69,12 @@ const DriverCardBack = ({ document }) => {
<td className="px-[30px] border-2 border-black"></td>
</tr>
</table>
<div className="flex justify-end text-[40px] gap-[10px] mb-[20px] mt-[30px]">
10.
<QRCode
value={`https://www.xalqarologistika.uz/check-certificates/${id}`}
/>
</div>
</div>
</div>
</div>
Expand Down
66 changes: 42 additions & 24 deletions client/src/components/documents/driver-card/card/front/index.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
import React from "react";
import flag from "@assets/images/flag.png";

const DriverCardFront = ({ document }) => {
const { name, surname, to, birthDate, id, signature, driverLicenceNumber } =
document;
const DriverCardFront = ({ document, type }) => {
const {
name,
surname,
to,
birthDate,
from,
id,
signature,
driverLicenceNumber,
} = document;
console.log(document);
return (
<div className={`w-[2480px] h-[3508px] flex justify-center mt-[10px]`}>
<div
className={`w-[2480px] ${type !== "search" && "h-[3508px]"} flex justify-center mt-[10px]`}
>
<div className="w-[1600px] h-[1000px] border-[6px] border-gray-400 mt-[10px] rounded-[50px] bg-silk bg-cover bg-no-repeat text-center px-[30px]">
<p className="text-[48px] font-bold mt-[30px]">
CERTIFICATE OF PROFESSIONAL COMPETENCE OF THE DRIVER
Expand All @@ -16,32 +26,40 @@ const DriverCardFront = ({ document }) => {
<div className="text-[60px] py-[15px] px-[40px] border-[6px] border-black rounded-[100%]">
UZ
</div>
<p className="text-[50px] font-bold ml-[-200px]">1.Nr. {id}</p>
<img src={flag} alt="NT2022" className="w-[200px]" />
</div>
<div className="h-[570px] flex items-center mt-[60px] gap-[40px]">
<div className="h-full aspect-[3/4] bg-white border-[2px] border-black"></div>
<div className="h-full bg-blue font-bold text-left text-[43px] flex flex-col flex-1 gap-[10px]">
<div className="h-[570px] flex items-center mt-[60px] mx-[50px] gap-[40px]">
<div className="h-full w-[370px] flex flex-col">
<div className="w-[370px] h-[700px] flex-1 bg-white border-[2px] border-black"></div>
<p className="text-[50px] mt-5">8.C/CE</p>
</div>
<div className="h-full bg-blue font-bold text-left text-[45px] flex flex-col flex-1 gap-[15px]">
<p>1.{surname}</p>
<p>2.{name}</p>
<p>3.{surname}</p>
<p>4.{birthDate}</p>
<p>5.{driverLicenceNumber}</p>
<p>7.C/CE</p>
<p>8.REPUBLIC OF UZBEKISTAN</p>
<p>9.NAMANGANTRANS 2022</p>
<p>Until (date) {to}</p>
<div className="w-[300px] h-[100px] bg-white border-[2px] border-black">
<img
width={"100%"}
height={"80%"}
src={signature}
alt=""
className="scale-[0.7]"
/>
<p>3.{birthDate}</p>
<div className="flex gap-10">
<p>4a.{from}</p>
<p>4b.{to}</p>
</div>
<p>4c.LTD "NAMANGANTRANS 2022"</p>
<div className="flex gap-10">
<p>5a.{driverLicenceNumber}</p> <p>5b.{id}</p>
</div>
<div className="flex items-center gap-5 mt-[85px]">
7.
<div className="w-[300px] h-[100px] bg-white border-[2px] border-black">
<img
width={"100%"}
height={"80%"}
src={signature}
alt=""
className="scale-[0.7]"
/>
</div>
</div>
</div>
<div className="h-full flex flex-col items-end justify-end">
<div className="bg-blue-500 text-white text-[35px] py-[20px] px-[40px] flex items-center justify-center rounded-ee-[30px] rounded-ss-[30px] mb-[500px] mr-[55px]">
<div className="bg-blue-500 text-white text-[35px] py-[20px] px-[40px] flex items-center justify-center rounded-ee-[30px] rounded-ss-[30px] mb-[500px]">
NT2022
</div>
</div>
Expand Down
Loading