Skip to content

Commit

Permalink
update banner and links
Browse files Browse the repository at this point in the history
  • Loading branch information
dilanx committed Nov 24, 2024
1 parent 7b30dd6 commit fa79a91
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 17 deletions.
17 changes: 9 additions & 8 deletions src/app/BannerNotice.tsx
Original file line number Diff line number Diff line change
@@ -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;
6 changes: 6 additions & 0 deletions src/components/menu/toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -110,6 +113,9 @@ function Toolbar({ loading, openAboutMenu, saveState }: ToolbarProps) {
onClick: () => {
window.open(Links.CONTRIBUTE, '_blank');
},
disabled: true,
disabledReason:
'Documentation website migration in progress.',
},
],
});
Expand Down
14 changes: 14 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 4 additions & 3 deletions src/utility/StaticLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 2 additions & 6 deletions src/utility/Utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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');
},
};
}
Expand Down

0 comments on commit fa79a91

Please sign in to comment.