Skip to content

Commit

Permalink
chore: clean up and add tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
vutuanlinh2k2 committed Jun 22, 2023
1 parent 30d75ee commit 3c61848
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 819 deletions.
Empty file.
20 changes: 17 additions & 3 deletions apps/hubble-stats/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
import { useEffect } from 'react';
import { AppProps } from 'next/app';
import Head from 'next/head';
import './styles.css';
import {
WebbUIProvider,
Footer,
useDarkMode,
} from '@webb-tools/webb-ui-components';
import '@webb-tools/webb-ui-components/tailwind.css';

function CustomApp({ Component, pageProps }: AppProps) {
const [, setIsDarkMode] = useDarkMode();

useEffect(() => {
setIsDarkMode('light');
}, [setIsDarkMode]);

return (
<>
<WebbUIProvider defaultThemeMode="light">
<Head>
<title>Welcome to hubble-stats!</title>
</Head>
<main className="app">
<Component {...pageProps} />
</main>
</>

<Footer isMinimal className="sticky bottom-0" />
</WebbUIProvider>
);
}

Expand Down
2 changes: 0 additions & 2 deletions apps/hubble-stats/pages/index.module.css

This file was deleted.

415 changes: 1 addition & 414 deletions apps/hubble-stats/pages/index.tsx

Large diffs are not rendered by default.

Loading

0 comments on commit 3c61848

Please sign in to comment.