web #1
@ -400,7 +400,7 @@ export const Home = () => {
|
|||||||
: "Good evening";
|
: "Good evening";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="home-screen">
|
<div className="home-screen pb-12">
|
||||||
<style>{STYLES}</style>
|
<style>{STYLES}</style>
|
||||||
|
|
||||||
{/* Blobs */}
|
{/* Blobs */}
|
||||||
|
|||||||
@ -221,7 +221,7 @@ export const Lessons = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="ls-screen">
|
<div className="ls-screen pb-12">
|
||||||
<style>{STYLES}</style>
|
<style>{STYLES}</style>
|
||||||
|
|
||||||
{/* Blobs */}
|
{/* Blobs */}
|
||||||
|
|||||||
@ -243,7 +243,7 @@ export const Practice = () => {
|
|||||||
const userXp = useExamConfigStore.getState().userXp;
|
const userXp = useExamConfigStore.getState().userXp;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="pr-screen">
|
<div className="pr-screen pb-12">
|
||||||
<style>{STYLES}</style>
|
<style>{STYLES}</style>
|
||||||
|
|
||||||
{/* Blobs */}
|
{/* Blobs */}
|
||||||
|
|||||||
@ -232,7 +232,7 @@ export const Profile = () => {
|
|||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="pf-screen">
|
<div className="pf-screen pb-12">
|
||||||
<style>{STYLES}</style>
|
<style>{STYLES}</style>
|
||||||
|
|
||||||
{/* Blobs */}
|
{/* Blobs */}
|
||||||
|
|||||||
@ -137,7 +137,7 @@ export function StudentLayout() {
|
|||||||
<div className="flex flex-col flex-1 min-w-0">
|
<div className="flex flex-col flex-1 min-w-0">
|
||||||
<SidebarTrigger className="hidden md:block" />
|
<SidebarTrigger className="hidden md:block" />
|
||||||
{/* Extra bottom padding so content clears the floating dock */}
|
{/* Extra bottom padding so content clears the floating dock */}
|
||||||
<main className="flex-1 pb-32 md:pb-0">
|
<main className="flex-1 md:pb-0">
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -539,17 +539,6 @@ const Confetti = ({ active }: { active: boolean }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const snapPoints = [
|
|
||||||
"190px",
|
|
||||||
"250px",
|
|
||||||
"300px",
|
|
||||||
"350px",
|
|
||||||
"400px",
|
|
||||||
"500px",
|
|
||||||
"600px",
|
|
||||||
"700px",
|
|
||||||
];
|
|
||||||
|
|
||||||
// ─── XP Popup Component ───────────────────────────────────────────────────────
|
// ─── XP Popup Component ───────────────────────────────────────────────────────
|
||||||
const XPPopup = ({ xp, show }: { xp: number; show: boolean }) => {
|
const XPPopup = ({ xp, show }: { xp: number; show: boolean }) => {
|
||||||
if (!show) return null;
|
if (!show) return null;
|
||||||
@ -636,8 +625,6 @@ export const Test = () => {
|
|||||||
const quitExam = useSatExam((s) => s.quitExam);
|
const quitExam = useSatExam((s) => s.quitExam);
|
||||||
const setResults = useResults((s) => s.setResults);
|
const setResults = useResults((s) => s.setResults);
|
||||||
|
|
||||||
const [snap, setSnap] = useState<number | string | null>(snapPoints[0]);
|
|
||||||
|
|
||||||
const startExam = async () => {
|
const startExam = async () => {
|
||||||
console.log("startExam called", { user, sheetId });
|
console.log("startExam called", { user, sheetId });
|
||||||
if (!user) {
|
if (!user) {
|
||||||
@ -1433,12 +1420,12 @@ export const Test = () => {
|
|||||||
{isMCQ && (
|
{isMCQ && (
|
||||||
<Drawer.Root
|
<Drawer.Root
|
||||||
modal={false}
|
modal={false}
|
||||||
snapPoints={[0.35, 0.6, 0.85]}
|
snapPoints={[0.35, 0.6, 0.95]}
|
||||||
defaultOpen={true}
|
defaultOpen={true}
|
||||||
>
|
>
|
||||||
<Drawer.Portal>
|
<Drawer.Portal>
|
||||||
<Drawer.Content
|
<Drawer.Content
|
||||||
className="fixed flex flex-col bg-white border-t-2 border-gray-100 rounded-t-[24px] bottom-0 left-0 right-0 h-[85vh]"
|
className="fixed flex flex-col bg-white border-t-2 border-gray-100 rounded-t-[24px] bottom-0 left-0 right-0 h-[85vh] "
|
||||||
style={{ zIndex: 10 }}
|
style={{ zIndex: 10 }}
|
||||||
>
|
>
|
||||||
{/* Drag handle */}
|
{/* Drag handle */}
|
||||||
@ -1451,7 +1438,7 @@ export const Test = () => {
|
|||||||
</Drawer.Title>
|
</Drawer.Title>
|
||||||
|
|
||||||
{/* Scrollable options */}
|
{/* Scrollable options */}
|
||||||
<div className="flex-1 overflow-y-auto px-5 pb-8">
|
<div className="flex-1 overflow-y-auto px-5 pb-40">
|
||||||
{renderOptions(currentQuestion)}
|
{renderOptions(currentQuestion)}
|
||||||
</div>
|
</div>
|
||||||
</Drawer.Content>
|
</Drawer.Content>
|
||||||
|
|||||||
Reference in New Issue
Block a user