Skip to content

Commit

Permalink
feat: use static theme color
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukaii committed Apr 5, 2022
1 parent 0125f14 commit 147733d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
3 changes: 3 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function MyApp({ Component, pageProps }: AppProps) {
/>
<meta name='msapplication-TileColor' content='#2B5797' />
<meta name='msapplication-tap-highlight' content='no' />

<title>Messenger Archive Viewer</title>
<meta name='theme-color' content='#121212' />
</Head>

<Component {...pageProps}></Component>
Expand Down
15 changes: 1 addition & 14 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
SunIcon,
} from '@heroicons/react/outline';
import cx from 'classnames';
import Head from 'next/head';
import randomColor from 'randomcolor';
import { useMemo, useState } from 'react';
import useSWR from 'swr';
Expand Down Expand Up @@ -143,22 +142,10 @@ export default function HomePage() {
};

if (!data || data.length === 0) {
return (
<>
<Head>
<title>Messenger Archive Viewer</title>
<meta name='theme-color' content={dark ? '#121212' : '#ffffff'} />
</Head>
<StartScreen openDirPicker={openDirPicker} />
</>
);
return <StartScreen openDirPicker={openDirPicker} />;
} else {
return (
<div className='flex h-full'>
<Head>
<title>Messenger Archive Viewer</title>
<meta name='theme-color' content={dark ? '#121212' : '#ffffff'} />
</Head>
{/* Sidebar */}
<div
className='flex h-full max-h-full w-full flex-col border-r border-solid dark:border-gray-600'
Expand Down

1 comment on commit 147733d

@vercel
Copy link

@vercel vercel bot commented on 147733d Apr 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.