From 6eab2a013c0d2bb71fade86ae65f815dee758573 Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Tue, 5 Mar 2024 14:10:22 -0500 Subject: [PATCH] change tab description to tagline in en.json and turn maintace page into route and add twitter link to footer! --- index.html | 2 +- manifest.json | 2 +- src/assets/locales/en.json | 3 +- src/components/Icon.tsx | 2 + src/components/layout/Footer.tsx | 4 ++ src/pages/errors/MaintenancePage.tsx | 57 ++++++++++++++++++++++++++++ src/setup/App.tsx | 51 ++----------------------- src/setup/config.ts | 5 +++ src/setup/constants.ts | 1 + 9 files changed, 76 insertions(+), 51 deletions(-) create mode 100644 src/pages/errors/MaintenancePage.tsx diff --git a/index.html b/index.html index 1b5789fe..7db16492 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ - + diff --git a/manifest.json b/manifest.json index 52176027..2ff1bd93 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "background_color": "#120f1d", "lang": "en", "scope": "/", - "description": "A mirror of the place for your favourite movies & shows", + "description": "Watch your favorite shows and movies for free with no ads ever! (っ'ヮ'c)", "theme_color": "#120f1d", "icons": [ { diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 9518d109..c6fa03c5 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -87,7 +87,8 @@ "links": { "discord": "Discord", "dmca": "DMCA", - "github": "GitHub" + "github": "GitHub", + "twitter": "Twitter" }, "tagline": "Watch your favorite shows and movies for free with no ads ever! (っ'ヮ'c)" }, diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index ec5e26cb..814831a1 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -19,6 +19,7 @@ export enum Icons { DRAGON = "dragon", WARNING = "warning", MOVIE_WEB = "movieWeb", + TWITTER = "twitter", DISCORD = "discord", GITHUB = "github", PLAY = "play", @@ -89,6 +90,7 @@ const iconList: Record = { arrowRight: ``, movieWeb: ``, discord: ``, + twitter: ``, github: ``, play: ``, pause: ``, diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 6544145d..40d887e6 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -58,6 +58,7 @@ function Dmca() { export function Footer() { const { t } = useTranslation(); + const TWITTER_LINK = "https://twitter.com/SudoFlix"; return (