-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* onboarding-card * fix a few bugs * feat: adjust markup in OnboardingModal to match figma a bit closer and reuse existing ai key management code * refactor: rename OnboardingModal to Onboarding * feat: only render the Onboarding component if aiEnabled is set * fix: remove added line from tsconfig.json * fix: revert markdown file changes * feat: add linear gradient as replacement for gradient raster image * fix: run npm run format * fix: address linting issues * fix: adjust gradient rotation --------- Co-authored-by: Ryan Gaus <[email protected]>
- Loading branch information
1 parent
48f0b91
commit e275e85
Showing
5 changed files
with
197 additions
and
128 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import React from 'react'; | ||
import { LayoutGridIcon, FileTextIcon } from 'lucide-react'; | ||
import { AiSettings } from '@/routes/settings'; | ||
|
||
const OnboardingModal: React.FunctionComponent = () => { | ||
return ( | ||
<div className="flex flex-col gap-6"> | ||
<h2 className="text-3xl font-medium">Welcome to Srcbook!</h2> | ||
<p>Srcbook is an AI-powered TypeScript app builder and interactive playground.</p> | ||
|
||
<div className="flex flex-col gap-3"> | ||
<h4 className="font-medium">With Srcbook you can:</h4> | ||
<div className="flex flex-col md:flex-row gap-6"> | ||
<div | ||
className="p-5 rounded-lg bg-[#FFD9E1]" | ||
style={{ | ||
background: | ||
'linear-gradient(180deg, rgba(255,217,225,1) 0%, rgba(219,183,223,1) 100%)', | ||
}} | ||
> | ||
<div className="flex items-center mb-6"> | ||
<LayoutGridIcon size={24} className="text-ai-btn" /> | ||
</div> | ||
<h3 className="text-ai-btn font-medium mt-3">App builder</h3> | ||
<p className="text-ai-btn mt-2">Create Web Applications with the speed of thinking</p> | ||
</div> | ||
|
||
<div className="border p-5 rounded-lg"> | ||
<div className="flex items-center mb-6"> | ||
<FileTextIcon size={24} className="text-button-secondary" /> | ||
</div> | ||
<h3 className="text-primary font-medium mt-3">Notebook</h3> | ||
<p className="text-primary mt-2"> | ||
Experimenting without the hassle of setting up environments | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<label htmlFor="aiProvider" className="block mb-3"> | ||
To get started, select your AI provider and enter your API key: | ||
</label> | ||
|
||
<AiSettings saveButtonLabel="Continue" /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default OnboardingModal; |
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