@@ -60,7 +60,12 @@ const FeFloodDuplicate = ({ result }: FeFloodDuplicateProps) => (
60
60
</ >
61
61
) ;
62
62
63
- export const BookSvg = ( { small } : { small ?: boolean } ) =>
63
+ interface BookSvgProps {
64
+ small ?: boolean ;
65
+ id : string ;
66
+ }
67
+
68
+ export const BookSvg = ( { small, id } : BookSvgProps ) =>
64
69
small ? (
65
70
< svg
66
71
fill = "none"
@@ -69,24 +74,24 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
69
74
width = "32"
70
75
xmlns = "http://www.w3.org/2000/svg"
71
76
>
72
- < g filter = " url(#filter0_iii_126_16757)" >
73
- < g clip-path = " url(#clip0_126_16757)" >
77
+ < g filter = { ` url(#filter0_iii_ ${ id } )` } >
78
+ < g clip-path = { ` url(#clip0_ ${ id } )` } >
74
79
< path
75
80
d = "M0 4C0 1.79086 1.79086 0 4 0H30C31.1046 0 32 0.895431 32 2V38C32 39.1046 31.1046 40 30 40H4C1.79086 40 0 38.2091 0 36V4Z"
76
81
fill = "#303030"
77
82
> </ path >
78
83
< path
79
84
d = "M0 4C0 1.79086 1.79086 0 4 0H30C31.1046 0 32 0.895431 32 2V38C32 39.1046 31.1046 40 30 40H4C1.79086 40 0 38.2091 0 36V4Z"
80
- fill = " url(#paint0_linear_126_16757)"
85
+ fill = { ` url(#paint0_linear_ ${ id } )` }
81
86
> </ path >
82
87
< rect
83
- fill = " url(#paint1_linear_126_16757)"
88
+ fill = { ` url(#paint1_linear_ ${ id } )` }
84
89
height = "40"
85
90
opacity = "0.2"
86
91
width = "8"
87
92
> </ rect >
88
93
< rect
89
- fill = " url(#paint2_linear_126_16757)"
94
+ fill = { ` url(#paint2_linear_ ${ id } )` }
90
95
height = "40"
91
96
opacity = "0.05"
92
97
width = "8"
@@ -98,13 +103,13 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
98
103
width = "26"
99
104
> </ rect >
100
105
< rect
101
- fill = " url(#paint3_linear_126_16757)"
106
+ fill = { ` url(#paint3_linear_ ${ id } )` }
102
107
fill-opacity = "0.7"
103
108
height = "40"
104
109
transform = "translate(6)"
105
110
width = "26"
106
111
> </ rect >
107
- < g filter = " url(#filter1_d_126_16757)" >
112
+ < g filter = { ` url(#filter1_d_ ${ id } )` } >
108
113
< path
109
114
d = "M20 -8C20 -8.55228 20.4477 -9 21 -9H27C27.5523 -9 28 -8.55228 28 -8V6.79623C28 7.65539 26.9881 8.11457 26.3405 7.54881L24.6585 6.07619C24.2815 5.74629 23.7185 5.74629 23.3415 6.07619L21.6585 7.54881C21.0119 8.11457 20 7.65539 20 6.79623V-8Z"
110
115
fill = "#3291FF"
@@ -122,12 +127,12 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
122
127
color-interpolation-filters = "s-rGB"
123
128
filterUnits = "userSpaceOnUse"
124
129
height = "41"
125
- id = "filter0_iii_126_16757"
130
+ id = { `filter0_iii_ ${ id } ` }
126
131
width = "36"
127
132
x = "0"
128
133
y = "0"
129
134
>
130
- < FeFloodDuplicate result = "effect1_innerShadow_126_16757" />
135
+ < FeFloodDuplicate result = { `effect1_innerShadow_ ${ id } ` } />
131
136
132
137
< feColorMatrix
133
138
in = "SourceAlpha"
@@ -148,9 +153,9 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
148
153
values = "0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0"
149
154
> </ feColorMatrix >
150
155
< feBlend
151
- in2 = "effect1_innerShadow_126_16757"
156
+ in2 = { `effect1_innerShadow_ ${ id } ` }
152
157
mode = "normal"
153
- result = "effect2_innerShadow_126_16757"
158
+ result = { `effect2_innerShadow_ ${ id } ` }
154
159
> </ feBlend >
155
160
< feColorMatrix
156
161
in = "SourceAlpha"
@@ -170,14 +175,14 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
170
175
values = "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"
171
176
> </ feColorMatrix >
172
177
< feBlend
173
- in2 = "effect2_innerShadow_126_16757"
178
+ in2 = { `effect2_innerShadow_ ${ id } ` }
174
179
mode = "normal"
175
- result = "effect3_innerShadow_126_16757"
180
+ result = { `effect3_innerShadow_ ${ id } ` }
176
181
> </ feBlend >
177
182
</ filter >
178
183
< linearGradient
179
184
gradientUnits = "userSpaceOnUse"
180
- id = "paint0_linear_126_16757"
185
+ id = { `paint0_linear_ ${ id } ` }
181
186
x1 = "16"
182
187
x2 = "16"
183
188
y1 = "0"
@@ -189,7 +194,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
189
194
</ linearGradient >
190
195
< linearGradient
191
196
gradientUnits = "userSpaceOnUse"
192
- id = "paint1_linear_126_16757"
197
+ id = { `paint1_linear_ ${ id } ` }
193
198
x1 = "0"
194
199
x2 = "8"
195
200
y1 = "17.75"
@@ -199,7 +204,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
199
204
</ linearGradient >
200
205
< linearGradient
201
206
gradientUnits = "userSpaceOnUse"
202
- id = "paint2_linear_126_16757"
207
+ id = { `paint2_linear_ ${ id } ` }
203
208
x1 = "0"
204
209
x2 = "8"
205
210
y1 = "17.75"
@@ -209,7 +214,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
209
214
</ linearGradient >
210
215
< linearGradient
211
216
gradientUnits = "userSpaceOnUse"
212
- id = "paint3_linear_126_16757"
217
+ id = { `paint3_linear_ ${ id } ` }
213
218
x1 = "2.71429"
214
219
x2 = "32.067"
215
220
y1 = "4.24102e-07"
@@ -220,7 +225,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
220
225
</ linearGradient >
221
226
< linearGradient
222
227
gradientUnits = "userSpaceOnUse"
223
- id = "paint4_linear_126_16757"
228
+ id = { `paint4_linear_ ${ id } ` }
224
229
x1 = "22.13"
225
230
x2 = "22.13"
226
231
y1 = "17"
@@ -233,7 +238,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
233
238
</ linearGradient >
234
239
< linearGradient
235
240
gradientUnits = "userSpaceOnUse"
236
- id = "paint5_linear_126_16757"
241
+ id = { `paint5_linear_ ${ id } ` }
237
242
x1 = "20.9375"
238
243
x2 = "24.5574"
239
244
y1 = "21.0625"
@@ -242,13 +247,13 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
242
247
< stop stop-color = "white" > </ stop >
243
248
< stop offset = "1" stop-color = "white" stop-opacity = "0" > </ stop >
244
249
</ linearGradient >
245
- < clipPath id = "clip0_126_16757" >
250
+ < clipPath id = { `clip0_ ${ id } ` } >
246
251
< path
247
252
d = "M0 4C0 1.79086 1.79086 0 4 0H30C31.1046 0 32 0.895431 32 2V38C32 39.1046 31.1046 40 30 40H4C1.79086 40 0 38.2091 0 36V4Z"
248
253
fill = "white"
249
254
> </ path >
250
255
</ clipPath >
251
- < clipPath id = "clip1_126_16757" >
256
+ < clipPath id = { `clip1_ ${ id } ` } >
252
257
< rect
253
258
fill = "white"
254
259
height = "16"
@@ -258,7 +263,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
258
263
</ clipPath >
259
264
</ defs >
260
265
< div class = "absolute left-2.5 top-3.5" >
261
- < QwikLogo width = { 16 } height = { 16 } />
266
+ < QwikLogo width = { 16 } height = { 16 } id = { id } />
262
267
</ div >
263
268
</ svg >
264
269
) : (
@@ -269,25 +274,25 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
269
274
width = "160"
270
275
xmlns = "http://www.w3.org/2000/svg"
271
276
>
272
- < g filter = " url(#filter0_iii_439_2947)" >
273
- < g clip-path = " url(#clip0_439_2947)" >
277
+ < g filter = { ` url(#filter0_iii_ ${ id } )` } >
278
+ < g clip-path = { ` url(#clip0_ ${ id } )` } >
274
279
< path
275
280
d = "M0 7.00001C0 3.6863 2.68629 1 6 1H158C159.105 1 160 1.89543 160 3V179C160 180.105 159.105 181 158 181H6C2.6863 181 0 178.314 0 175V7.00001Z"
276
281
fill = "#303030"
277
282
> </ path >
278
283
< path
279
284
d = "M0 7.00001C0 3.6863 2.68629 1 6 1H158C159.105 1 160 1.89543 160 3V179C160 180.105 159.105 181 158 181H6C2.6863 181 0 178.314 0 175V7.00001Z"
280
- fill = " url(#paint0_linear_439_2947)"
285
+ fill = { ` url(#paint0_linear_ ${ id } )` }
281
286
> </ path >
282
287
< rect
283
- fill = " url(#paint1_linear_439_2947)"
288
+ fill = { ` url(#paint1_linear_ ${ id } )` }
284
289
height = "320"
285
290
opacity = "0.2"
286
291
width = "24"
287
292
y = "1"
288
293
> </ rect >
289
294
< rect
290
- fill = " url(#paint2_linear_439_2947)"
295
+ fill = { ` url(#paint2_linear_ ${ id } )` }
291
296
height = "320"
292
297
opacity = "0.05"
293
298
width = "24"
@@ -300,7 +305,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
300
305
width = "142"
301
306
> </ rect >
302
307
< rect
303
- fill = " url(#paint3_linear_439_2947)"
308
+ fill = { ` url(#paint3_linear_ ${ id } )` }
304
309
fill-opacity = "0.7"
305
310
height = "180"
306
311
transform = "translate(18 1)"
@@ -313,7 +318,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
313
318
stroke-opacity = "0.02"
314
319
> </ path >
315
320
</ g >
316
- < g filter = " url(#filter1_d_439_2947)" >
321
+ < g filter = { ` url(#filter1_d_ ${ id } )` } >
317
322
< path
318
323
d = "M122 1C122 0.447716 122.448 0 123 0H137C137.552 0 138 0.447715 138 1V22.259C138 23.0308 137.163 23.5116 136.496 23.1227L130.504 19.6273C130.193 19.4456 129.807 19.4456 129.496 19.6273L123.504 23.1227C122.837 23.5116 122 23.0308 122 22.259V1Z"
319
324
fill = "#3291FF"
@@ -324,12 +329,12 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
324
329
color-interpolation-filters = "s-rGB"
325
330
filterUnits = "userSpaceOnUse"
326
331
height = "181"
327
- id = "filter0_iii_439_2947"
332
+ id = { `filter0_iii_ ${ id } ` }
328
333
width = "164"
329
334
x = "0"
330
335
y = "1"
331
336
>
332
- < FeFloodDuplicate result = "effect1_innerShadow_439_2947" />
337
+ < FeFloodDuplicate result = { `effect1_innerShadow_ ${ id } ` } />
333
338
334
339
< feColorMatrix
335
340
in = "SourceAlpha"
@@ -350,9 +355,9 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
350
355
values = "0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0"
351
356
> </ feColorMatrix >
352
357
< feBlend
353
- in2 = "effect1_innerShadow_439_2947"
358
+ in2 = { `effect1_innerShadow_ ${ id } ` }
354
359
mode = "normal"
355
- result = "effect2_innerShadow_439_2947"
360
+ result = { `effect2_innerShadow_ ${ id } ` }
356
361
> </ feBlend >
357
362
< feColorMatrix
358
363
in = "SourceAlpha"
@@ -372,16 +377,16 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
372
377
values = "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"
373
378
> </ feColorMatrix >
374
379
< feBlend
375
- in2 = "effect2_innerShadow_439_2947"
380
+ in2 = { `effect2_innerShadow_ ${ id } ` }
376
381
mode = "normal"
377
- result = "effect3_innerShadow_439_2947"
382
+ result = { `effect3_innerShadow_ ${ id } ` }
378
383
> </ feBlend >
379
384
</ filter >
380
385
< filter
381
386
color-interpolation-filters = "s-rGB"
382
387
filterUnits = "userSpaceOnUse"
383
388
height = "25.2605"
384
- id = "filter1_d_439_2947"
389
+ id = { `filter1_d_ ${ id } ` }
385
390
width = "18"
386
391
x = "121"
387
392
y = "0"
@@ -403,18 +408,18 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
403
408
< feBlend
404
409
in2 = "BackgroundImageFix"
405
410
mode = "normal"
406
- result = "effect1_dropShadow_439_2947"
411
+ result = { `effect1_dropShadow_ ${ id } ` }
407
412
> </ feBlend >
408
413
< feBlend
409
414
in = "SourceGraphic"
410
- in2 = "effect1_dropShadow_439_2947"
415
+ in2 = { `effect1_dropShadow_ ${ id } ` }
411
416
mode = "normal"
412
417
result = "shape"
413
418
> </ feBlend >
414
419
</ filter >
415
420
< linearGradient
416
421
gradientUnits = "userSpaceOnUse"
417
- id = "paint0_linear_439_2947"
422
+ id = { `paint0_linear_ ${ id } ` }
418
423
x1 = "80"
419
424
x2 = "80"
420
425
y1 = "1"
@@ -426,7 +431,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
426
431
</ linearGradient >
427
432
< linearGradient
428
433
gradientUnits = "userSpaceOnUse"
429
- id = "paint1_linear_439_2947"
434
+ id = { `paint1_linear_ ${ id } ` }
430
435
x1 = "0"
431
436
x2 = "24"
432
437
y1 = "143"
@@ -436,7 +441,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
436
441
</ linearGradient >
437
442
< linearGradient
438
443
gradientUnits = "userSpaceOnUse"
439
- id = "paint2_linear_439_2947"
444
+ id = { `paint2_linear_ ${ id } ` }
440
445
x1 = "0"
441
446
x2 = "24"
442
447
y1 = "143"
@@ -446,7 +451,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
446
451
</ linearGradient >
447
452
< linearGradient
448
453
gradientUnits = "userSpaceOnUse"
449
- id = "paint3_linear_439_2947"
454
+ id = { `paint3_linear_ ${ id } ` }
450
455
x1 = "14.8242"
451
456
x2 = "146.106"
452
457
y1 = "1.90846e-06"
@@ -457,7 +462,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
457
462
</ linearGradient >
458
463
< linearGradient
459
464
gradientUnits = "userSpaceOnUse"
460
- id = "paint4_linear_439_2947"
465
+ id = { `paint4_linear_ ${ id } ` }
461
466
x1 = "132.956"
462
467
x2 = "138.478"
463
468
y1 = "155.122"
@@ -468,7 +473,7 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
468
473
</ linearGradient >
469
474
< linearGradient
470
475
gradientUnits = "userSpaceOnUse"
471
- id = "paint5_linear_439_2947"
476
+ id = { `paint5_linear_ ${ id } ` }
472
477
x1 = "134.822"
473
478
x2 = "134.791"
474
479
y1 = "145.4"
@@ -477,15 +482,15 @@ export const BookSvg = ({ small }: { small?: boolean }) =>
477
482
< stop stop-color = "white" > </ stop >
478
483
< stop offset = "1" stop-color = "white" stop-opacity = "0" > </ stop >
479
484
</ linearGradient >
480
- < clipPath id = "clip0_439_2947" >
485
+ < clipPath id = { `clip0_ ${ id } ` } >
481
486
< path
482
487
d = "M0 7.00001C0 3.6863 2.68629 1 6 1H158C159.105 1 160 1.89543 160 3V179C160 180.105 159.105 181 158 181H6C2.6863 181 0 178.314 0 175V7.00001Z"
483
488
fill = "white"
484
489
> </ path >
485
490
</ clipPath >
486
491
</ defs >
487
492
< div class = "absolute bottom-3 right-3" >
488
- < QwikLogo />
493
+ < QwikLogo id = { id } />
489
494
</ div >
490
495
</ svg >
491
496
) ;
0 commit comments