diff options
| author | Bertrand Yuan <bert.yuan@outlook.com> | 2025-12-15 23:48:10 +0800 |
|---|---|---|
| committer | Bertrand Yuan <bert.yuan@outlook.com> | 2025-12-15 23:48:10 +0800 |
| commit | 5b7ccf0b671e2999b62befc729a3e517a0433728 (patch) | |
| tree | 8bf476dc7c75914c221042546840dc76267366df /src/components/tailwind-indicator.tsx | |
initial commit -- the front-end prototype
The initial code is base on Anirudh's work.
More to see at:
https://github.com/techwithanirudh/shadcn-blog
Therefore, the code in this commit is under MIT license.
Diffstat (limited to 'src/components/tailwind-indicator.tsx')
| -rw-r--r-- | src/components/tailwind-indicator.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/tailwind-indicator.tsx b/src/components/tailwind-indicator.tsx new file mode 100644 index 0000000..24d0011 --- /dev/null +++ b/src/components/tailwind-indicator.tsx @@ -0,0 +1,14 @@ +export function TailwindIndicator() { + if (process.env.NODE_ENV === 'production') return null; + + return ( + <div className='fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-accent p-3 font-mono text-foreground text-xs'> + <div className='block sm:hidden'>xs</div> + <div className='hidden sm:block md:hidden'>sm</div> + <div className='hidden md:block lg:hidden'>md</div> + <div className='hidden lg:block xl:hidden'>lg</div> + <div className='hidden xl:block 2xl:hidden'>xl</div> + <div className='hidden 2xl:block'>2xl</div> + </div> + ); +} |
