diff --git a/src/app/BannerNotice.tsx b/src/app/BannerNotice.tsx index a72363a..5d13964 100644 --- a/src/app/BannerNotice.tsx +++ b/src/app/BannerNotice.tsx @@ -1,22 +1,23 @@ import { BannerData } from '@/types/BaseTypes'; +import { ArrowRightIcon } from '@heroicons/react/24/solid'; const bn: BannerData | null = { - id: 'instagram-tips', + id: 'feedback-0193605a-748d-7220-8aa8-36e75a0c0fdc', content: ( <> - Have the best course planning experience possible with Paper by following{' '} + Share your feedback and win $25 while helping the future of Paper!{' '} <a - href="https://www.instagram.com/paper.nu" - className="text-yellow-200 underline underline-offset-2 hover:no-underline" + href="https://forms.dilanxd.com/paper-experience" target="_blank" rel="noreferrer" + className="text-pink-200 no-underline hover:underline" > - paper.nu on Instagram - </a>{' '} - for tips! + Take the Paper Experience survey + <ArrowRightIcon className="mx-1 inline-block h-4 w-4" /> + </a> </> ), - gradient: 1, + gradient: 3, }; export default bn; diff --git a/src/components/menu/toolbar/Toolbar.tsx b/src/components/menu/toolbar/Toolbar.tsx index ed057a5..9b5de8f 100644 --- a/src/components/menu/toolbar/Toolbar.tsx +++ b/src/components/menu/toolbar/Toolbar.tsx @@ -93,6 +93,9 @@ function Toolbar({ loading, openAboutMenu, saveState }: ToolbarProps) { onClick: () => { window.open(Links.SUPPORT, '_blank'); }, + disabled: true, + disabledReason: + 'Documentation website migration in progress.', }, { text: 'Feedback', @@ -110,6 +113,9 @@ function Toolbar({ loading, openAboutMenu, saveState }: ToolbarProps) { onClick: () => { window.open(Links.CONTRIBUTE, '_blank'); }, + disabled: true, + disabledReason: + 'Documentation website migration in progress.', }, ], }); diff --git a/src/index.css b/src/index.css index 65850df..f7875e7 100644 --- a/src/index.css +++ b/src/index.css @@ -176,6 +176,20 @@ ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ } + .background-gradient-3 { + background: #11998e; /* fallback for old browsers */ + background: -webkit-linear-gradient( + to right, + #38ef7d, + #11998e + ); /* Chrome 10-25, Safari 5.1-6 */ + background: linear-gradient( + to right, + #38ef7d, + #11998e + ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ + } + .text-gradient { font-size: 196px; font-weight: 900; diff --git a/src/utility/StaticLinks.ts b/src/utility/StaticLinks.ts index 438a278..bb81b66 100644 --- a/src/utility/StaticLinks.ts +++ b/src/utility/StaticLinks.ts @@ -5,12 +5,13 @@ const Links = { ACCOUNT: 'https://auth.dilanxd.com/account', HOMEPAGE: 'https://www.dilanxd.com/paper', - SUPPORT: 'https://support.dilanxd.com/paper/', + SUPPORT: 'https://docs.dilanxd.com/paper', FEEDBACK: 'https://forms.dilanxd.com/paper-support', CHANGELOG: 'https://www.dilanxd.com/paper/changelog', - FAQ: 'https://support.dilanxd.com/paper/faq/', + FAQ: 'https://docs.dilanxd.com/paper-faqs', - SUPPORT_RATINGS: 'https://support.dilanxd.com/paper/ratings/', + SUPPORT_RATINGS: 'https://docs.dilanxd.com/paper-ratings', + SUPPORT_ERROR: 'https://docs.dilanxd.com/paper-errors', SOURCE_CODE: 'https://github.com/dilanx/paper.nu', CONTRIBUTE: 'https://www.paper.nu/contribute', diff --git a/src/utility/Utility.ts b/src/utility/Utility.ts index 69db950..37a8ba4 100644 --- a/src/utility/Utility.ts +++ b/src/utility/Utility.ts @@ -12,6 +12,7 @@ import { FilterBadgeName } from '@/types/SearchTypes'; import { ExclamationTriangleIcon } from '@heroicons/react/24/outline'; import React, { ReactElement, ReactNode } from 'react'; import { PaperError, PaperExpectedAuthError } from './PaperError'; +import Links from './StaticLinks'; export const BACKGROUND_LIGHT = '#ffffff'; export const BACKGROUND_DARK = '#262626'; @@ -360,12 +361,7 @@ export function errorAlert( text: errorText, }, action: () => { - window.open( - `https://support.dilanxd.com/paper/troubleshooting?e=${encodeURIComponent( - errorText - )}`, - '_blank' - ); + window.open(Links.SUPPORT_ERROR, '_blank'); }, }; }