Improve AI Tutor landing page, and Sidebar (#8969)

* Add tree to AI tutor sidebar

* Update featured card design

* Featured card changes

* Improve feature cards

* Active item bug in ai tutor sidebar

* Add demo button on premium page
This commit is contained in:
Kamran Ahmed authored and GitHub committed 2025-07-28 21:34:09 +01:00
1 parent 870a8c409c
commit 53be600df4
6 files changed
+195 -71

No files matched your search

@@ -21,7 +21,7 @@ import {
} from './QuestionAnswerChat';
import { useToast } from '../../hooks/use-toast';
import { cn } from '../../lib/classname';
import { getUrlParams } from '../../lib/browser';
import { getUrlParams, setUrlParams } from '../../lib/browser';
import { useParams } from '../../hooks/use-params';
import { useQuery } from '@tanstack/react-query';
import { aiLimitOptions } from '../../queries/ai-course';
@@ -205,7 +205,10 @@ export function ContentGenerator() {
<FormatItem
key={format.value}
label={format.label}
onClick={() => setSelectedFormat(format.value)}
onClick={() => {
setSelectedFormat(format.value);
setUrlParams({ format: format.value });
}}
icon={format.icon}
isSelected={isSelected}
/>