@@ -3,100 +3,92 @@ import Image from "next/image";
3
3
4
4
type AppDetailsProps = {
5
5
category : string [ ] ;
6
- tags : string [ ] ;
7
6
description : string ;
8
- externalLinks : {
9
- name : string ;
10
- url : string ;
11
- } [ ] ;
12
- images : {
13
- url : string ;
14
- alt : string ;
15
- } [ ] ;
7
+ externalLinks : string [ ] ;
8
+ images : string [ ] ;
16
9
} ;
17
10
18
11
const AppDetails : React . FC < AppDetailsProps > = ( {
19
12
category,
20
- tags,
21
13
description,
22
14
externalLinks,
23
15
images,
24
16
} ) => {
25
17
return (
26
- < div className = "py-10 px-4 lg:px-16 container mx-auto " >
27
- < div className = "grid grid-cols-1 lg:grid-cols-2 gap-6 " >
18
+ < div className = "container px-4 py-10 mx-auto lg:px-16" >
19
+ < div className = "grid grid-cols-1 gap-6 lg:grid-cols-2" >
28
20
{ /* First Column */ }
29
21
< div className = "grid grid-rows-3 gap-6" >
30
22
{ /* Category */ }
31
- < div className = "bg-gradient-to-b from-white to-transparent border border-white shadow-lg backdrop-blur rounded-md p-6 " >
32
- < h2 className = "text-2xl text-transparent bg-gradient-to-br bg-clip-text from-primary to-secondary font-bold mb-2 " >
23
+ < div className = "p-6 border border-white rounded-md shadow-lg bg-gradient-to-b from-white to-transparent backdrop-blur" >
24
+ < h2 className = "mb-2 text-2xl font-bold text-transparent bg-gradient-to-br bg-clip-text from-primary to-secondary" >
33
25
Category
34
26
</ h2 >
35
27
< div className = "flex pt-8 space-x-2" >
36
28
{ category . map ( ( cat , index ) => (
37
29
< span
38
30
key = { index }
39
- className = "border border-gray-500 text-gray-500 rounded-lg px-2 py-1 text -lg hover:bg-slate-200 hover:text-gray-800"
31
+ className = "px-2 py-1 text-lg text-gray-500 border border-gray-500 rounded -lg hover:bg-slate-200 hover:text-gray-800"
40
32
>
41
33
{ cat }
42
34
</ span >
43
35
) ) }
44
36
</ div >
45
37
</ div >
46
38
{ /* Description */ }
47
- < div className = "bg-gradient-to-b from-white to-transparent border border-white shadow-lg backdrop-blur rounded-md p-6 " >
48
- < h2 className = "text-2xl text-transparent bg-gradient-to-br bg-clip-text from-primary to-secondary font-bold mb-2 " >
39
+ < div className = "p-6 border border-white rounded-md shadow-lg bg-gradient-to-b from-white to-transparent backdrop-blur" >
40
+ < h2 className = "mb-2 text-2xl font-bold text-transparent bg-gradient-to-br bg-clip-text from-primary to-secondary" >
49
41
Description
50
42
</ h2 >
51
43
< p className = "text-gray-600" > { description } </ p >
52
44
</ div >
53
45
{ /* External Links */ }
54
- < div className = "bg-gradient-to-b from-white to-transparent border border-white shadow-lg backdrop-blur rounded-md p-6 " >
55
- < h2 className = "text-2xl text-transparent bg-gradient-to-br bg-clip-text from-primary to-secondary font-bold mb-2 " >
46
+ < div className = "p-6 border border-white rounded-md shadow-lg bg-gradient-to-b from-white to-transparent backdrop-blur" >
47
+ < h2 className = "mb-2 text-2xl font-bold text-transparent bg-gradient-to-br bg-clip-text from-primary to-secondary" >
56
48
External Links
57
49
</ h2 >
58
- < div className = "flex space-x-4 pt-8 " >
50
+ < div className = "flex pt-8 space-x-4" >
59
51
{ externalLinks . map ( ( link , index ) => (
60
52
< a
61
53
key = { index }
62
- href = { link . url }
54
+ href = { link }
63
55
className = "text-gray-950 hover:underline"
64
56
>
65
- { link . name }
57
+ { link }
66
58
</ a >
67
59
) ) }
68
60
</ div >
69
61
</ div >
70
62
</ div >
71
63
72
64
{ /* Second Column */ }
73
- < div className = "bg-gradient-to-b from-white to-transparent border border-white shadow-lg backdrop-blur rounded-md flex flex-col justify-between p-6 " >
65
+ < div className = "flex flex-col justify-between p-6 border border-white rounded-md shadow-lg bg-gradient-to-b from-white to-transparent backdrop-blur " >
74
66
{ /* Preview Title */ }
75
- < h2 className = "text-2xl text-transparent bg-gradient-to-br bg-clip-text from-primary to-secondary font-bold mb-2 pt-8 pb-4 " >
67
+ < h2 className = "pt-8 pb-4 mb-2 text-2xl font-bold text-transparent bg-gradient-to-br bg-clip-text from-primary to-secondary" >
76
68
Preview
77
69
</ h2 >
78
70
{ /* Preview Images */ }
79
71
< div className = "flex flex-col space-y-12" >
80
72
< Image
81
- src = { images [ 0 ] . url }
82
- alt = { images [ 0 ] . alt }
73
+ src = { images [ 0 ] }
74
+ alt = ""
83
75
width = { 400 }
84
76
height = { 300 }
85
77
layout = "responsive"
86
78
className = "rounded-lg shadow-md"
87
79
/>
88
80
< div className = "flex space-x-8" >
89
81
< Image
90
- src = { images [ 1 ] . url }
91
- alt = { images [ 1 ] . alt }
82
+ src = { images [ 1 ] }
83
+ alt = { "image-1" }
92
84
width = { 200 }
93
85
height = { 150 }
94
86
layout = "responsive"
95
87
className = "rounded-lg shadow-md"
96
88
/>
97
89
< Image
98
- src = { images [ 2 ] . url }
99
- alt = { images [ 2 ] . alt }
90
+ src = { images [ 2 ] }
91
+ alt = { "image-2" }
100
92
width = { 200 }
101
93
height = { 150 }
102
94
layout = "responsive"
0 commit comments