diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-10-02 22:09:33 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-10-02 22:09:33 -0700 |
| commit | 19fc6861e567ac8ca56476152edf11d1abb15661 (patch) | |
| tree | 476cb63445aea42a6dc85d0ae02d2e200b9fa0f5 | |
| parent | 8d422f6224d5f02ac8a21428c951398a637e7e69 (diff) | |
frontend: add link to generated RSS feeds
| -rw-r--r-- | site/.gitignore | 2 | ||||
| -rw-r--r-- | site/src/pages/Homepage.tsx | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/site/.gitignore b/site/.gitignore index a547bf3..9a6d094 100644 --- a/site/.gitignore +++ b/site/.gitignore @@ -22,3 +22,5 @@ dist-ssr *.njsproj *.sln *.sw? +.env*.local +.vercel diff --git a/site/src/pages/Homepage.tsx b/site/src/pages/Homepage.tsx index 74cca3b..2f35280 100644 --- a/site/src/pages/Homepage.tsx +++ b/site/src/pages/Homepage.tsx @@ -14,6 +14,7 @@ export default function Home() { const { gameId } = useParams<{ gameId?: string }>(); const [searchParams] = useSearchParams(); const isMoe = searchParams.has("moe"); + const rssFeedUrl = import.meta.env.VITE_NEWS_BASE_URL + "/" +gameId + "_news.xml"; const newsAPIBase = import.meta.env.VITE_NEWS_BASE_URL const [newsFeedData, setNewsFeedData] = useState<ArcadeNewsAPIData | null>( @@ -119,12 +120,24 @@ export default function Home() { {GameNotes(isMoe)[gameId] && ( <div className="text-left">{GameNotes(isMoe)[gameId]}</div> )} + <div className="mt-2"> + <a href={rssFeedUrl} className="text-blue-400 hover:underline"> + Subscribe via RSS + </a> + </div> </div> ) : ( <div className={`${isMoe ? "bg-pink-200 text-pink-900" : "bg-gray-800 text-white"} rounded-lg p-6 text-center shadow-lg`} > <h1 className="text-2xl font-bold">Welcome to 573-UPDATES</h1> + <h2 + className={`text-2xl font-extrabold mb-4 tracking-widest text-center uppercase glow-neon ${ + isMoe ? "text-pink-500" : "text-[#00FF00]" + }`} + > + SECOND STYLE + </h2> <div className="floating"> <img src="/liris.webp" @@ -136,6 +149,9 @@ export default function Home() { here! </p> <p className="mt-2"> + RSS feeds are available on each game's individual page + </p> + <p className="mt-2"> Please see the{" "} <a href="https://github.com/pinapelz/573-updates" |
