@@ -7,30 +7,37 @@ const releases = await getAnalyzedReleases();
7
7
---
8
8
9
9
<Layout title =" Next.js Sentinel" >
10
- <main >
11
- <h1 class =" text-4xl font-bold text-center mb-8" >Next.js Sentinel</h1 >
12
- <div class =" space-y-4" >
10
+ <main class =" container mx-auto px-4 py-8" >
11
+ <h1 class =" text-6xl font-extrabold text-center mb-16 text-primary" >
12
+ Next.js Sentinel
13
+ </h1 >
14
+ <div class =" space-y-12" >
13
15
{
14
16
releases .map ((release ) => (
15
17
<div
16
- class = { ` card bg-base-200 shadow-xl ${
17
- release .score > 60 ? " border-l-4 border-error" : " "
18
+ class = { ` card bg-base-200 shadow-xl transition-all hover:shadow-2xl ${
19
+ release .score > 60 ? " border-l-8 border-error" : " "
18
20
} ` }
19
21
>
20
22
<div class = " card-body" >
21
- <h2 class = " card-title" >{ release .version } </h2 >
23
+ <h2 class = " card-title text-2xl " >{ release .version } </h2 >
22
24
<div class = " flex justify-between items-center" >
23
- <div class = " badge badge-primary" >
25
+ <div
26
+ class = " badge badge-lg"
27
+ style = { ` background-color: hsl(${120 - release .score * 1.2 }, 100%, 50%); color: ${release .score > 50 ? " white" : " black" }; ` }
28
+ >
24
29
Impact Score: { release .score }
25
30
</div >
26
31
<div class = " text-sm opacity-70" >
27
32
{ formatDistanceToNow (new Date (release .analyzed_at ))} ago
28
33
</div >
29
34
</div >
30
- <p class = " mt-2" >{ release .summary } </p >
31
- <div class = " mt-4" >
32
- <h3 class = " font-semibold" >Relevance to Netlify:</h3 >
33
- <p >{ release .relevance } </p >
35
+ <p class = " mt-4 text-base-content" >{ release .summary } </p >
36
+ <div class = " mt-6" >
37
+ <h3 class = " font-semibold text-lg mb-2" >
38
+ Relevance to Netlify:
39
+ </h3 >
40
+ <p class = " text-base-content" >{ release .relevance } </p >
34
41
</div >
35
42
</div >
36
43
</div >
0 commit comments