Skip to content

Update page.tsx #483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,35 +180,35 @@ export default function Home() {
<p>Github</p>
</Link>
<DropdownMenu open={tipOpen} onOpenChange={setTipOpen}>
<DropdownMenuTrigger asChild>
<button title="Tip" className="flex gap-2.5 items-center p-4">
<BookOpen />
<p>Tip</p>
</button>
</DropdownMenuTrigger>
<DropdownMenuContent className='flex-col flex p-4 gap-6 max-w-[30dvw]'>
<div className='flex justify-between items-center'>
<DropdownMenuLabel className='font-oswald text-[20px] font-semibold leading-[20px] text-left'>HOW TO USE THE PRODUCT</DropdownMenuLabel>
<button
title='Close'
onClick={() => setTipOpen(false)}
>
<X />
</button>
</div>
{
TIPS.map((tip, index) => (
<div key={index} className='flex flex-col gap-4 text-[#7D7D7D]'>
<div className='flex gap-3 items-center'>
<h1 className='text-black font-bold'>{tip.title}</h1>
<p className='bg-[#ECECEC] p-1 rounded italic'>{tip.keyboardCommand}</p>
</div>
<p>{tip.description}</p>
</div>
))
}
</DropdownMenuContent>
</DropdownMenu>
<DropdownMenuTrigger asChild>
<button title="Tip" className="flex gap-2.5 items-center p-4">
<BookOpen />
<p>Tip</p>
</button>
</DropdownMenuTrigger>
<DropdownMenuContent className='flex-col flex p-4 gap-6 max-w-[30dvw]'>
<div className='flex justify-between items-center'>
<DropdownMenuLabel className='font-oswald text-[20px] font-semibold leading-[20px] text-left'>HOW TO USE THE PRODUCT</DropdownMenuLabel>
<button
title='Close'
onClick={() => setTipOpen(false)}
>
<X />
</button>
</div>
{
TIPS.map((tip, index) => (
<div key={index} className='flex flex-col gap-4 text-[#7D7D7D]'>
<div className='flex gap-3 items-center'>
<h2 className='text-black font-bold'>{tip.title}</h2>
<p className='bg-[#ECECEC] p-1 rounded italic'>{tip.keyboardCommand}</p>
</div>
<p>{tip.description}</p>
</div>
))
}
</DropdownMenuContent>
</DropdownMenu>
{/* <Dialog open={createOpen} onOpenChange={setCreateOpen}>
<DialogTrigger asChild>
<button
Expand Down
Loading