|
1 | 1 | 'use client'; |
2 | 2 |
|
3 | 3 | import React, { useState } from 'react'; |
4 | | -import { X, Info, PlayCircle, BookOpen, History } from 'lucide-react'; |
| 4 | +import { X, Info, PlayCircle, BookOpen, History, Link as LinkIcon } from 'lucide-react'; |
5 | 5 | import { Button } from '@/components/ui/button'; |
6 | 6 | import helpContent from '@/data/helpContent.json'; |
7 | 7 |
|
@@ -73,7 +73,7 @@ const HelpCenter: React.FC<HelpCenterProps> = ({ |
73 | 73 | </div> |
74 | 74 |
|
75 | 75 | {/* Tabs - grid for mobile, flex for desktop */} |
76 | | - <div className='grid grid-cols-4 sm:flex border-b'> |
| 76 | + <div className='grid grid-cols-5 sm:flex border-b'> |
77 | 77 | <button |
78 | 78 | className={`px-2 sm:px-4 py-2 font-medium text-xs sm:text-sm flex flex-col sm:flex-row items-center justify-center ${ |
79 | 79 | activeTab === 'welcome' |
@@ -107,6 +107,17 @@ const HelpCenter: React.FC<HelpCenterProps> = ({ |
107 | 107 | <BookOpen className='w-4 h-4 sm:mr-1 mb-1 sm:mb-0' /> |
108 | 108 | <span>Features</span> |
109 | 109 | </button> |
| 110 | + <button |
| 111 | + className={`px-2 sm:px-4 py-2 font-medium text-xs sm:text-sm flex flex-col sm:flex-row items-center justify-center ${ |
| 112 | + activeTab === 'resources' |
| 113 | + ? 'text-brand-blue border-b-2 border-brand-blue' |
| 114 | + : 'text-gray-500 hover:text-gray-700' |
| 115 | + }`} |
| 116 | + onClick={() => handleTabChange('resources')} |
| 117 | + > |
| 118 | + <LinkIcon className='w-4 h-4 sm:mr-1 mb-1 sm:mb-0' /> |
| 119 | + <span>Resources</span> |
| 120 | + </button> |
110 | 121 | <button |
111 | 122 | className={`px-2 sm:px-4 py-2 font-medium text-xs sm:text-sm flex flex-col sm:flex-row items-center justify-center ${ |
112 | 123 | activeTab === 'versions' |
@@ -219,8 +230,29 @@ const HelpCenter: React.FC<HelpCenterProps> = ({ |
219 | 230 | {activeTab === 'resources' && ( |
220 | 231 | <div> |
221 | 232 | <h3 className='text-lg font-medium text-gray-800 mb-3'> |
222 | | - Resources |
| 233 | + Helpful Resources |
223 | 234 | </h3> |
| 235 | + |
| 236 | + <div className='space-y-4'> |
| 237 | + {helpContent.resources.map((resource, index) => ( |
| 238 | + <div key={index} className='bg-gray-50 p-4 rounded-lg hover:bg-gray-100 transition-colors'> |
| 239 | + <a |
| 240 | + href={resource.link} |
| 241 | + target='_blank' |
| 242 | + rel='noopener noreferrer' |
| 243 | + className='block' |
| 244 | + > |
| 245 | + <h4 className='font-medium text-brand-blue mb-1 flex items-center'> |
| 246 | + <LinkIcon className='w-4 h-4 mr-2' /> |
| 247 | + {resource.title} |
| 248 | + </h4> |
| 249 | + <p className='text-gray-700 text-sm'> |
| 250 | + {resource.description} |
| 251 | + </p> |
| 252 | + </a> |
| 253 | + </div> |
| 254 | + ))} |
| 255 | + </div> |
224 | 256 | </div> |
225 | 257 | )} |
226 | 258 |
|
|
0 commit comments