-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0b554a
commit 2c11e7c
Showing
8 changed files
with
136 additions
and
14 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
packages/revert-next/app/dashboard/onboarding/FrontendSdk.tsx
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,48 @@ | ||
import { Icons } from '@revertdotdev/icons'; | ||
import { inter } from '@revertdotdev/fonts'; | ||
import { cn } from '@revertdotdev/utils'; | ||
import { useState } from 'react'; | ||
import Image from 'next/image'; | ||
|
||
export function FrontendSdk() { | ||
const [customPreferenceView, setCustomPreferenceView] = useState<boolean>(false); | ||
|
||
return ( | ||
<div> | ||
<div className="mb-8 flex justify-between items-center"> | ||
<div> | ||
<h1 className={`${inter.className} mb-2 text-xl font-bold`}>Integrate frontend SDK</h1> | ||
<p className="text-gray-50">Your Api Requests are authenticated using Api keys in the header</p> | ||
</div> | ||
</div> | ||
<div className={cn('flex gap-4 mb-4')}> | ||
<button | ||
className={cn('border border-gray-25 rounded-xl w-6/12 p-4 revert-focus-outline', { | ||
'gradient-border': !customPreferenceView, | ||
})} | ||
onClick={() => (customPreferenceView ? setCustomPreferenceView(false) : null)} | ||
> | ||
<div className="flex items-start justify-start gap-3"> | ||
<Icons.react className="size-6 stroke-1" /> | ||
<div className="flex flex-col gap-1"> | ||
<h4 className="text-left text-gray-50/70 text-base font-semibold">React</h4> | ||
</div> | ||
</div> | ||
</button> | ||
<button | ||
className={cn('border border-gray-25 rounded-xl w-6/12 p-4 revert-focus-outline', { | ||
'gradient-border': customPreferenceView, | ||
})} | ||
onClick={() => (!customPreferenceView ? setCustomPreferenceView(true) : null)} | ||
> | ||
<div className="flex items-start justify-start gap-3"> | ||
<Image src="/vuejs-icon.svg" alt="Vuejs" height={24} width={24} /> | ||
<div className="flex flex-col gap-1"> | ||
<h4 className="text-left text-gray-50/70 text-base font-bold">Vue.js</h4> | ||
</div> | ||
</div> | ||
</button> | ||
</div> | ||
</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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.