@@ -9,25 +9,40 @@ import Link from 'next/link';
9
9
10
10
export default function Footer ( ) {
11
11
return (
12
- < footer className = "bg-white border-t border-gray-100 py-12" >
12
+ < footer
13
+ className = "bg-white border-t border-gray-100 py-12"
14
+ data-testid = "footer"
15
+ >
13
16
< div className = "container mx-auto px-4" >
14
17
< div className = "grid grid-cols-1 md:grid-cols-4 gap-8" >
15
18
< div >
16
- < h3 className = "text-gray-500 font-semibold mb-4 text-center" >
19
+ < h3
20
+ className = "text-gray-500 font-semibold mb-4 text-center"
21
+ data-testid = "footer-heading"
22
+ >
17
23
DiceDB
18
24
</ h3 >
19
25
< Link
20
26
href = "https://dicedb.io/get-started/installation/"
21
27
target = "_blank"
28
+ data-testid = "get-started-link"
22
29
>
23
- < Button className = "w-full !bg-red-600 hover:!bg-red-700 !text-white" >
30
+ < Button
31
+ className = "w-full !bg-red-600 hover:!bg-red-700 !text-white"
32
+ data-testid = "get-started-button"
33
+ >
24
34
Get Started →
25
35
</ Button >
26
36
</ Link >
27
- < Link href = "https://github.com/dicedb/dice" target = "_blank" >
37
+ < Link
38
+ href = "https://github.com/dicedb/dice"
39
+ target = "_blank"
40
+ data-testid = "github-link"
41
+ >
28
42
< Button
29
43
variant = "outline"
30
44
className = "!w-full mt-2 !border-1 !border-gray-700 bg-blue-50 hover:text-blue text-black hover:text-blue-600"
45
+ data-testid = "github-button"
31
46
>
32
47
< GitHub className = "mr-2 h-4 w-4" /> GitHub (4k+)
33
48
</ Button >
@@ -42,6 +57,7 @@ export default function Footer() {
42
57
href = "https://dicedb.io/get-started/installation"
43
58
target = "_blank"
44
59
className = "text-gray-600 hover:text-gray-900"
60
+ data-testid = "quickstart-link"
45
61
>
46
62
Quickstart
47
63
</ a >
@@ -51,6 +67,7 @@ export default function Footer() {
51
67
href = "https://dicedb.io/commands/get"
52
68
target = "_blank"
53
69
className = "text-gray-600 hover:text-gray-900"
70
+ data-testid = "commands-link"
54
71
>
55
72
Commands
56
73
</ a >
@@ -60,6 +77,7 @@ export default function Footer() {
60
77
href = "https://github.com/DiceDB/dice/tree/master/examples/leaderboard-go"
61
78
target = "_blank"
62
79
className = "text-gray-600 hover:text-gray-900"
80
+ data-testid = "examples-link"
63
81
>
64
82
Examples
65
83
</ a >
@@ -75,6 +93,7 @@ export default function Footer() {
75
93
href = "https://github.com/DiceDB/dice/tree/master/examples/leaderboard-go"
76
94
target = "_blank"
77
95
className = "text-gray-600 hover:text-gray-900"
96
+ data-testid = "leaderboard-link"
78
97
>
79
98
Real-time Leaderboard
80
99
</ a >
@@ -90,6 +109,7 @@ export default function Footer() {
90
109
91
110
target = "_blank"
92
111
className = "text-gray-600 hover:text-gray-900"
112
+ data-testid = "contact-link"
93
113
>
94
114
Contact Us
95
115
</ a >
@@ -101,6 +121,7 @@ export default function Footer() {
101
121
target = "_blank"
102
122
className = "text-gray-400 hover:text-gray-600"
103
123
aria-label = "People"
124
+ data-testid = "people-icon-link"
104
125
>
105
126
< People className = "h-6 w-6" />
106
127
</ a >
@@ -109,6 +130,7 @@ export default function Footer() {
109
130
target = "_blank"
110
131
className = "text-gray-400 hover:text-gray-600"
111
132
aria-label = "Twitter"
133
+ data-testid = "twitter-icon-link"
112
134
>
113
135
< Twitter className = "h-6 w-6" />
114
136
</ a >
@@ -117,6 +139,7 @@ export default function Footer() {
117
139
target = "_blank"
118
140
className = "text-gray-400 hover:text-gray-600"
119
141
aria-label = "GitHub"
142
+ data-testid = "github-icon-link"
120
143
>
121
144
< GitHub className = "h-6 w-6" />
122
145
</ a >
0 commit comments