-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve example w dark mode, update dependencies (#19)
* feat: Improve example * chore: Dependencies updates & fix type warning
- Loading branch information
Showing
21 changed files
with
2,182 additions
and
1,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import * as React from 'react'; | ||
|
||
import Anchor from './components/Anchor'; | ||
import CodeBlock from './components/CodeBlock'; | ||
import Footer from './components/Footer'; | ||
import Header from './components/Header'; | ||
import HookSection from './components/HookSection'; | ||
import DemoUsePromiseState from './DemoUsePromiseState'; | ||
import DemoUseShuttle from './DemoUseShuttle'; | ||
import DemoUseTimeout from './DemoUseTimeout'; | ||
import DemoUseFetch from './DemoUseFetch'; | ||
|
||
export default function App() { | ||
return ( | ||
<div className='text-stone-800 dark:text-stone-200 dark:bg-stone-800 container max-w-6xl mx-auto'> | ||
<Header> | ||
<div className='mix-blend-difference'> | ||
<Anchor href="//github.com/vincecao/use-tools"> | ||
use-tools | ||
</Anchor> | ||
</div> | ||
<span className='flex space-x-2'> | ||
<Anchor href="//www.npmjs.com/package/@vincecao/use-tools"> | ||
<img src="//badge.fury.io/js/@vincecao%2Fuse-tools.svg" /> | ||
</Anchor> | ||
<Anchor href="//github.com/vincecao/use-tools"> | ||
<img src="//badgen.net/github/checks/vincecao/use-tools" /> | ||
</Anchor> | ||
</span> | ||
</Header> | ||
|
||
<div className="p-5 space-y-14 font-serif py-10"> | ||
|
||
<CodeBlock type='installation' codeString='yarn add @vincecao/use-tools' language='bash'/> | ||
|
||
<hr/> | ||
|
||
<HookSection title="usePromiseState"> | ||
<DemoUsePromiseState /> | ||
</HookSection> | ||
|
||
<hr/> | ||
|
||
<HookSection title="useTimeout"> | ||
<DemoUseTimeout /> | ||
</HookSection> | ||
|
||
<hr/> | ||
|
||
<HookSection title="useShuttle"> | ||
<DemoUseShuttle /> | ||
</HookSection> | ||
|
||
<hr/> | ||
|
||
<HookSection title="useFetch"> | ||
<DemoUseFetch /> | ||
</HookSection> | ||
</div> | ||
<Footer> | ||
<span> | ||
copyright<Anchor href="//vince-amazing.com">@Vince</Anchor> | ||
</span> | ||
</Footer> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
::-webkit-scrollbar { | ||
@apply w-2 h-2; | ||
} | ||
|
||
::-webkit-scrollbar-track { | ||
@apply bg-stone-200 dark:bg-stone-900 border rounded-full; | ||
} | ||
|
||
::-webkit-scrollbar-thumb { | ||
@apply bg-stone-400 hover:bg-stone-500 dark:bg-stone-700 hover:dark:bg-stone-600 rounded-full; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ["./src/**/*.{html,js,jsx,ts,tsx}"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} |
Oops, something went wrong.