Skip to content

Commit 552930e

Browse files
fix: issues with signature and design
1 parent e4d32c5 commit 552930e

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

Diff for: client/src/assets/images/pattern.png

49.3 KB
Loading

Diff for: client/src/components/documents/driver-card/card/back/index.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const DriverCardBack = ({ document }) => {
1010
<p className="text-[45px] mt-[20px]">DRIVER QUALIFICATION CARD</p>
1111
<div className="flex justify-between p-[30px]">
1212
<div>
13-
<div className="text-[35px] font-semibold text-left mt-[30px] flex flex-col gap-[10px]">
13+
<div className="text-[30px] font-semibold text-left mt-[30px] flex flex-col gap-[10px]">
1414
<p>1.Фамилия</p>
1515
<p>2.Имя</p>
1616
<p>3.Дата рождения</p>
@@ -42,7 +42,7 @@ const DriverCardBack = ({ document }) => {
4242
</tr>
4343
<tr>
4444
<td className="px-[30px] border-2 border-black">C</td>
45-
<td className="px-[30px] border-2 border-black">{to}</td>
45+
<td className="px-[30px] border-2 border-black">95.{to}</td>
4646
</tr>
4747
<tr>
4848
<td className="px-[30px] border-2 border-black">D1</td>
@@ -58,7 +58,7 @@ const DriverCardBack = ({ document }) => {
5858
</tr>
5959
<tr>
6060
<td className="px-[30px] border-2 border-black">CE</td>
61-
<td className="px-[30px] border-2 border-black">{to}</td>
61+
<td className="px-[30px] border-2 border-black">95.{to}</td>
6262
</tr>
6363
<tr>
6464
<td className="px-[30px] border-2 border-black">D1E</td>

Diff for: client/src/components/documents/driver-card/card/mini/index.jsx

+8-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const DriverCardMini = ({ document }) => {
1010
<div className="w-[2480px] h-[3508px]">
1111
<div className="w-[100%] h-[100%]">
1212
<div className="h-[1504px] w-full flex bg-pattern bg-cover bg-center bg-no-repeat">
13-
<div className="w-[50%] h-[1504px] text-center flex flex-col items-center py-[150px] px-[250px]">
13+
<div className="w-[50%] h-[1504px] text-center flex flex-col items-center py-[150px] px-[200px]">
1414
<div className="flex-1 w-full ml-[-27px]">
1515
<p className="text-[22px] mt-[30px] text-green-800 font-semibold">
1616
Avtomobilda xalqaro tashuvchining kasbiy mahorat (KMS)
@@ -115,8 +115,8 @@ const DriverCardMini = ({ document }) => {
115115
</div>
116116
</div>
117117
</div>
118-
<div className="w-[50%] h-[1504px] text-center flex flex-col items-center py-[150px] px-[250px]">
119-
<div className="flex-1 w-full mr-[-27px] text-center flex flex-col items-center">
118+
<div className="w-[50%] h-[1504px] text-center flex flex-col items-center py-[150px] px-[200px]">
119+
<div className="flex-1 w-full px-[30px] text-center flex flex-col items-center">
120120
<img
121121
src={gerb}
122122
alt=""
@@ -170,7 +170,7 @@ const DriverCardMini = ({ document }) => {
170170
<div className="w-[2480px] h-[3508px]">
171171
<div className="w-[100%] h-[100%]">
172172
<div className="h-[1504px] w-full flex bg-pattern bg-cover bg-center bg-no-repeat">
173-
<div className="w-[50%] h-[1504px] text-center flex flex-col items-center py-[150px] px-[250px]">
173+
<div className="w-[50%] h-[1504px] text-center flex flex-col items-center py-[150px] px-[200px]">
174174
<div className="flex-1 w-full ml-[-27px]">
175175
<p className="text-[22px] mt-[30px] text-green-800 font-semibold">
176176
<span>СЕРТИФИКАТ</span>
@@ -280,8 +280,8 @@ const DriverCardMini = ({ document }) => {
280280
</div>
281281
</div>
282282
</div>
283-
<div className="w-[50%] h-[1504px] text-center flex flex-col items-center py-[150px] px-[250px]">
284-
<div className="flex-1 w-full mr-[-27px]">
283+
<div className="w-[50%] h-[1504px] text-center flex flex-col items-center py-[150px] px-[200px]">
284+
<div className="flex-1 w-full">
285285
<p className="text-[22px] mt-[30px] text-green-800 font-semibold">
286286
<span>CERTIFICATE</span> <br /> of Professional Competence
287287
(CPC) <br /> for international road transport
@@ -300,7 +300,8 @@ const DriverCardMini = ({ document }) => {
300300
<span className="border-b-[1px] border-gray-600 text-center pb-[4px] text-black px-[30px] font-bold">
301301
{from.split(".")[2]}
302302
</span>{" "}
303-
; date:{" "}
303+
; <br />
304+
date:{" "}
304305
<span className="border-b-[1px] border-gray-600 text-center pb-[4px] text-black px-[30px] font-bold">
305306
{" "}
306307
{from.split(".")[0]}.{from.split(".")[1]}

Diff for: server/src/routes/upload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ router.post('/signature', upload.single('file'), async (req, res) => {
2828

2929
const params = {
3030
Bucket: process.env.SPACE_BUCKET,
31-
Key: file.originalname,
31+
Key: file.originalname + Date.now(),
3232
Body: file.buffer,
3333
ACL: 'public-read',
3434
}

0 commit comments

Comments
 (0)