Skip to content

Commit 520277d

Browse files
authored
website: add join program link, reorganize icons, UI tweaks (#50)
1 parent 0ec47d8 commit 520277d

19 files changed

+119
-92
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightly-tests",
33
"description": "Nightly integration tests for React Native",
44
"version": "0.0.0",
5-
"private": "true",
5+
"private": true,
66
"workspaces": [
77
"website"
88
],

website/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Link from 'next/link';
22

33
import Table from '~/components/Table';
4-
import AndroidIcon from '~/public/android-icon.svg';
5-
import IOSIcon from '~/public/ios-icon.svg';
4+
import AndroidIcon from '~/public/icons/android-icon.svg';
5+
import IOSIcon from '~/public/icons/ios-icon.svg';
66

77
export default function Home() {
88
return (

website/components/EntryNotes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import InfoIcon from '~/public/info-icon.svg';
1+
import InfoIcon from '~/public/icons/info-icon.svg';
22

33
import Tooltip from './Tooltip';
44

website/components/GitHubRepoLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import GitHubLogo from '~/public/github.svg';
1+
import GitHubLogo from '~/public/icons/github-icon.svg';
22

33
import Tooltip from './Tooltip';
44

website/components/Header.tsx

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ import { useTheme } from 'next-themes';
55
import { twMerge } from 'tailwind-merge';
66

77
import { useSearch } from '~/context/SearchContext';
8-
import GitHubLogo from '~/public/github.svg';
8+
import GitHubLogo from '~/public/icons/github-icon.svg';
9+
import PlusIcon from '~/public/icons/plus-icon.svg';
10+
import SearchIcon from '~/public/icons/search-icon.svg';
11+
import ThemeDarkIcon from '~/public/icons/theme-dark-icon.svg';
12+
import ThemeLightIcon from '~/public/icons/theme-light-icon.svg';
913
import Logo from '~/public/logo.svg';
10-
import SearchIcon from '~/public/search-icon.svg';
11-
import ThemeDarkIcon from '~/public/theme-dark.svg';
12-
import ThemeLightIcon from '~/public/theme-light.svg';
14+
15+
import Tooltip from './Tooltip';
1316

1417
export default function Header() {
1518
const { resolvedTheme, setTheme } = useTheme();
@@ -41,22 +44,37 @@ export default function Header() {
4144
/>
4245
</div>
4346
<div className="flex flex-row gap-2 ml-auto">
44-
<div
45-
role="button"
46-
tabIndex={0}
47-
className="cursor-pointer p-1.5 rounded-full hover:bg-hover"
48-
onClick={() => {
49-
resolvedTheme === 'dark' ? setTheme('light') : setTheme('dark');
50-
}}>
51-
<ThemeLightIcon className="text-secondary size-6 hidden dark:block" />
52-
<ThemeDarkIcon className="text-secondary size-6 dark:hidden" />
53-
</div>
54-
<Link
55-
href="https://github.com/react-native-community/nightly-tests"
56-
target="_blank"
57-
className="p-1.5 rounded-full hover:bg-hover">
58-
<GitHubLogo className="text-secondary size-6" />
59-
</Link>
47+
<Tooltip
48+
content="Add package to the program"
49+
side="bottom"
50+
sideOffset={4}>
51+
<Link
52+
href="https://github.com/react-native-community/discussions-and-proposals/discussions/931#discussion-8827727"
53+
target="_blank"
54+
className="p-1.5 rounded-full hover:bg-hover">
55+
<PlusIcon className="text-secondary size-6" />
56+
</Link>
57+
</Tooltip>
58+
<Tooltip content="Toggle theme" side="bottom" sideOffset={4}>
59+
<div
60+
role="button"
61+
tabIndex={0}
62+
className="cursor-pointer p-1.5 rounded-full hover:bg-hover"
63+
onClick={() => {
64+
resolvedTheme === 'dark' ? setTheme('light') : setTheme('dark');
65+
}}>
66+
<ThemeLightIcon className="text-secondary size-6 hidden dark:block" />
67+
<ThemeDarkIcon className="text-secondary size-6 dark:hidden" />
68+
</div>
69+
</Tooltip>
70+
<Tooltip content="GitHub" side="bottom" sideOffset={4}>
71+
<Link
72+
href="https://github.com/react-native-community/nightly-tests"
73+
target="_blank"
74+
className="p-1.5 rounded-full hover:bg-hover">
75+
<GitHubLogo className="text-secondary size-6" />
76+
</Link>
77+
</Tooltip>
6078
</div>
6179
</div>
6280
</header>

website/components/InlineLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Link, { type LinkProps } from 'next/link';
22
import { AnchorHTMLAttributes } from 'react';
33
import { twMerge } from 'tailwind-merge';
44

5-
import ExternalLinkIcon from '~/public/external-link-icon.svg';
5+
import ExternalLinkIcon from '~/public/icons/external-link-icon.svg';
66

77
type Props = LinkProps & AnchorHTMLAttributes<HTMLAnchorElement>;
88

website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
"dependencies": {
1616
"@radix-ui/react-tooltip": "^1.2.8",
1717
"@tanstack/react-table": "^8.21.3",
18-
"next": "^16.0.7",
18+
"next": "^16.0.8",
1919
"next-themes": "^0.4.6",
2020
"react": "^19.2.1",
2121
"react-dom": "^19.2.1",
2222
"tailwind-merge": "^3.4.0"
2323
},
2424
"devDependencies": {
25-
"@next/eslint-plugin-next": "16.0.7",
25+
"@next/eslint-plugin-next": "16.0.8",
2626
"@svgr/webpack": "^8.1.0",
2727
"@tailwindcss/postcss": "^4.1.17",
2828
"@types/node": "^22.18.13",
File renamed without changes.

0 commit comments

Comments
 (0)