瀏覽代碼

Update index.tsx

Stefan Pejcic 1 年之前
父節點
當前提交
eb5e667e4d
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      documentation/src/pages/roadmap/index.tsx

+ 6 - 1
documentation/src/pages/roadmap/index.tsx

@@ -50,8 +50,13 @@ const Roadmap: React.FC = () => {
                             <li key={milestone.id}>
                                 <strong><a href={milestone.html_url} target="_blank" rel="noopener noreferrer">{milestone.title}</a></strong>
                                 <p>{milestone.description}</p>
-                                <p>Scheduled release: {formatDueDate(milestone.due_on)}</p>
+                                <p>Scheduled release: <strong>{formatDueDate(milestone.due_on)}</strong></p>
                                 <p>Progress: {calculateProgress(milestone)}%</p>
+                                
+                                {/* Progress bar */}
+                                <div style={{ width: '100%', height: '8px', backgroundColor: '#ddd', borderRadius: '4px', marginTop: '8px', overflow: 'hidden' }}>
+                                    <div style={{ height: '100%', backgroundColor: '#4caf50', width: `${calculateProgress(milestone)}%`, transition: 'width 0.3s ease-in-out' }}></div>
+                                </div>
                             </li>
                         ))}
                     </ul>