Mercurial
comparison hg-web/src/components/footer.tsx @ 193:9f4429c49733 hg-web
[HgWeb] Making progress....
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sun, 25 Jan 2026 20:04:55 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 192:b818a4561a3c | 193:9f4429c49733 |
|---|---|
| 1 import React from 'react'; | |
| 2 | |
| 3 interface FooterProps { | |
| 4 showCloneUrl?: boolean; | |
| 5 cloneUrl?: string; | |
| 6 } | |
| 7 | |
| 8 function Footer({ | |
| 9 showCloneUrl = false, | |
| 10 cloneUrl = "hg clone http://zenbu.babocoder.com/repo", | |
| 11 }: FooterProps) { | |
| 12 const currentYear = new Date().getFullYear(); | |
| 13 | |
| 14 return ( | |
| 15 <footer className="footer"> | |
| 16 {showCloneUrl && ( | |
| 17 <div className="clone-box"> | |
| 18 <div className="clone-box-inner"> | |
| 19 <span className="clone-label">Clone HTTPS</span> | |
| 20 <code className="clone-url">{cloneUrl}</code> | |
| 21 </div> | |
| 22 </div> | |
| 23 )} | |
| 24 <div className="footer-content"> | |
| 25 <span className="footer-text">© 2026 June Park</span> | |
| 26 </div> | |
| 27 </footer> | |
| 28 ); | |
| 29 } | |
| 30 | |
| 31 export { Footer }; |