diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-01-30 14:43:17 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 14:43:17 +0300 |
| commit | 681f7d3ba097cd8d204ff3ac4dae01432d323e5b (patch) | |
| tree | 8578439ebb74d6cefc2e07177689a40ed6b15464 /frontend/src/pages/Games.tsx | |
| parent | wr: finale 2 - 0 portals (#258) (diff) | |
| download | lphub-681f7d3ba097cd8d204ff3ac4dae01432d323e5b.tar.gz lphub-681f7d3ba097cd8d204ff3ac4dae01432d323e5b.tar.bz2 lphub-681f7d3ba097cd8d204ff3ac4dae01432d323e5b.zip | |
feat/frontend: dynamic title and meta descriptions (#261)
Diffstat (limited to 'frontend/src/pages/Games.tsx')
| -rw-r--r-- | frontend/src/pages/Games.tsx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/frontend/src/pages/Games.tsx b/frontend/src/pages/Games.tsx index 15105c9..15cc891 100644 --- a/frontend/src/pages/Games.tsx +++ b/frontend/src/pages/Games.tsx | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { Helmet } from 'react-helmet'; | ||
| 2 | 3 | ||
| 3 | import GameEntry from '@components/GameEntry'; | 4 | import GameEntry from '@components/GameEntry'; |
| 4 | import { Game } from '@customTypes/Game'; | 5 | import { Game } from '@customTypes/Game'; |
| @@ -11,10 +12,10 @@ interface GamesProps { | |||
| 11 | const Games: React.FC<GamesProps> = ({ games }) => { | 12 | const Games: React.FC<GamesProps> = ({ games }) => { |
| 12 | 13 | ||
| 13 | const _page_load = () => { | 14 | const _page_load = () => { |
| 14 | const loaders = document.querySelectorAll(".loader"); | 15 | const loaders = document.querySelectorAll(".loader"); |
| 15 | loaders.forEach((loader) => { | 16 | loaders.forEach((loader) => { |
| 16 | (loader as HTMLElement).style.display = "none"; | 17 | (loader as HTMLElement).style.display = "none"; |
| 17 | }); | 18 | }); |
| 18 | } | 19 | } |
| 19 | 20 | ||
| 20 | React.useEffect(() => { | 21 | React.useEffect(() => { |
| @@ -26,6 +27,9 @@ const Games: React.FC<GamesProps> = ({ games }) => { | |||
| 26 | 27 | ||
| 27 | return ( | 28 | return ( |
| 28 | <div className='games-page'> | 29 | <div className='games-page'> |
| 30 | <Helmet> | ||
| 31 | <title>LPHUB | Games</title> | ||
| 32 | </Helmet> | ||
| 29 | <section> | 33 | <section> |
| 30 | <div className='games-page-content'> | 34 | <div className='games-page-content'> |
| 31 | <div className='games-page-item-content'> | 35 | <div className='games-page-item-content'> |