Skip to content

Commit ebabc75

Browse files
committed
style(useShareTipDetailsPDF): enhance PDF styling with increased dimensions and improved layout for better readability
1 parent d41ed82 commit ebabc75

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

app/hooks/useShareTipDetailsPDF.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -71,55 +71,55 @@ export const useShareTipDetailsPDF = async (details: TipDetailsForPDF) => {
7171
}
7272
.receipt-container {
7373
background: white;
74-
max-width: 500px;
74+
max-width: 600px;
7575
margin: 0 auto;
76-
border-radius: 20px;
77-
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
76+
border-radius: 24px;
77+
box-shadow: 0 24px 72px rgba(0,0,0,0.3);
7878
overflow: hidden;
7979
}
8080
.receipt-header {
8181
background: linear-gradient(135deg, ${gradientStart} 0%, ${gradientEnd} 100%);
82-
padding: 30px 20px 20px;
82+
padding: 36px 24px 24px;
8383
text-align: center;
8484
position: relative;
8585
}
8686
.mascot {
87-
font-size: 60px;
88-
margin-bottom: 15px;
87+
font-size: 72px;
88+
margin-bottom: 18px;
8989
animation: float 3s ease-in-out infinite;
9090
}
9191
@keyframes float {
9292
0%, 100% { transform: translateY(0px); }
9393
50% { transform: translateY(-10px); }
9494
}
9595
.receipt-title {
96-
font-size: 26px;
96+
font-size: 32px;
9797
font-weight: bold;
9898
color: white;
99-
margin-bottom: 5px;
99+
margin-bottom: 6px;
100100
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
101101
}
102102
.receipt-subtitle {
103-
font-size: 13px;
103+
font-size: 16px;
104104
color: rgba(255,255,255,0.9);
105105
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
106106
}
107107
.receipt-body {
108-
padding: 30px 25px;
108+
padding: 36px 30px;
109109
background: white;
110110
}
111111
.divider {
112112
border-top: 2px dashed #e0e0e0;
113-
margin: 20px 0;
113+
margin: 24px 0;
114114
}
115115
.info-row {
116116
display: flex;
117117
justify-content: space-between;
118118
align-items: center;
119-
margin-bottom: 12px;
120-
font-size: 13px;
119+
margin-bottom: 14px;
120+
font-size: 16px;
121121
color: #666;
122-
gap: 15px;
122+
gap: 18px;
123123
}
124124
.info-label {
125125
text-transform: uppercase;
@@ -135,40 +135,40 @@ export const useShareTipDetailsPDF = async (details: TipDetailsForPDF) => {
135135
}
136136
.amount-section {
137137
background: #f8f9fa;
138-
padding: 15px;
139-
border-radius: 10px;
140-
margin: 20px 0;
138+
padding: 18px;
139+
border-radius: 12px;
140+
margin: 24px 0;
141141
}
142142
.amount-label {
143-
font-size: 11px;
143+
font-size: 13px;
144144
color: #666;
145145
text-transform: uppercase;
146146
letter-spacing: 0.5px;
147-
margin-bottom: 5px;
147+
margin-bottom: 6px;
148148
}
149149
.amount-value {
150-
font-size: 32px;
150+
font-size: 40px;
151151
font-weight: bold;
152152
color: ${gradientStart};
153153
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
154154
}
155155
.detail-section {
156-
margin: 20px 0;
156+
margin: 24px 0;
157157
}
158158
.detail-title {
159-
font-size: 13px;
159+
font-size: 16px;
160160
font-weight: bold;
161161
color: #333;
162-
margin-bottom: 12px;
162+
margin-bottom: 14px;
163163
text-transform: uppercase;
164164
letter-spacing: 0.5px;
165165
}
166166
.detail-row {
167167
display: flex;
168168
justify-content: space-between;
169-
padding: 10px 0;
169+
padding: 12px 0;
170170
border-bottom: 1px solid #f0f0f0;
171-
font-size: 14px;
171+
font-size: 17px;
172172
}
173173
.detail-row:last-child {
174174
border-bottom: none;
@@ -182,12 +182,12 @@ export const useShareTipDetailsPDF = async (details: TipDetailsForPDF) => {
182182
}
183183
.footer {
184184
text-align: center;
185-
padding: 20px;
185+
padding: 24px;
186186
background: #f8f9fa;
187187
border-top: 2px dashed #e0e0e0;
188188
}
189189
.footer-text {
190-
font-size: 11px;
190+
font-size: 14px;
191191
color: #999;
192192
line-height: 1.6;
193193
}
@@ -197,7 +197,7 @@ export const useShareTipDetailsPDF = async (details: TipDetailsForPDF) => {
197197
font-weight: 600;
198198
}
199199
.receipt-edge-top {
200-
height: 15px;
200+
height: 18px;
201201
background: white;
202202
position: relative;
203203
}
@@ -207,9 +207,9 @@ export const useShareTipDetailsPDF = async (details: TipDetailsForPDF) => {
207207
top: 0;
208208
left: 0;
209209
right: 0;
210-
height: 15px;
211-
background: radial-gradient(circle at 10px 0, transparent 10px, white 10px);
212-
background-size: 20px 15px;
210+
height: 18px;
211+
background: radial-gradient(circle at 12px 0, transparent 12px, white 12px);
212+
background-size: 24px 18px;
213213
background-repeat: repeat-x;
214214
}
215215
</style>

0 commit comments

Comments
 (0)