diff options
Diffstat (limited to 'frontend/src/components/pages/about.js')
| -rw-r--r-- | frontend/src/components/pages/about.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/frontend/src/components/pages/about.js b/frontend/src/components/pages/about.js deleted file mode 100644 index 11b065d..0000000 --- a/frontend/src/components/pages/about.js +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | import React, { useState, useEffect } from 'react'; | ||
| 2 | import ReactMarkdown from 'react-markdown'; | ||
| 3 | |||
| 4 | import "./about.css"; | ||
| 5 | |||
| 6 | export default function About() { | ||
| 7 | const [aboutText, setAboutText] = useState(''); | ||
| 8 | |||
| 9 | useEffect(() => { | ||
| 10 | const fetchReadme = async () => { | ||
| 11 | try { | ||
| 12 | const response = await fetch( | ||
| 13 | 'https://raw.githubusercontent.com/pektezol/leastportalshub/main/README.md' | ||
| 14 | ); | ||
| 15 | if (!response.ok) { | ||
| 16 | throw new Error('Failed to fetch README'); | ||
| 17 | } | ||
| 18 | const readmeText = await response.text(); | ||
| 19 | setAboutText(readmeText); | ||
| 20 | } catch (error) { | ||
| 21 | console.error('Error fetching README:', error); | ||
| 22 | } | ||
| 23 | }; | ||
| 24 | fetchReadme(); | ||
| 25 | }, []); | ||
| 26 | |||
| 27 | return ( | ||
| 28 | <div id="about"> | ||
| 29 | <ReactMarkdown>{aboutText}</ReactMarkdown> | ||
| 30 | </div> | ||
| 31 | ); | ||
| 32 | }; | ||