feat: personal dashboard

feat/dashboard
Arik Chakma 3 months ago
parent 850e8e1be7
commit 625f33a076
  1. 6
      src/components/Dashboard/DashboardPage.tsx
  2. 2
      src/layouts/BaseLayout.astro
  3. 1
      src/pages/dashboard.astro

@ -1,11 +1,9 @@
import { useEffect, useState, type ReactNode } from 'react'; import { useEffect, useState } from 'react';
import { httpGet } from '../../lib/http'; import { httpGet } from '../../lib/http';
import type { UserProgress } from '../TeamProgress/TeamProgressPage';
import { useToast } from '../../hooks/use-toast'; import { useToast } from '../../hooks/use-toast';
import { useStore } from '@nanostores/react'; import { useStore } from '@nanostores/react';
import { $teamList } from '../../stores/team'; import { $teamList } from '../../stores/team';
import type { TeamListResponse } from '../TeamDropdown/TeamDropdown'; import type { TeamListResponse } from '../TeamDropdown/TeamDropdown';
import { cn } from '../../lib/classname';
import { DashboardTab } from './DashboardTab'; import { DashboardTab } from './DashboardTab';
import { PersonalDashboard } from './PersonalDashboard'; import { PersonalDashboard } from './PersonalDashboard';
@ -39,7 +37,7 @@ export function DashboardPage(props: DashboardPageProps) {
}, []); }, []);
return ( return (
<div className="container py-6 pb-14"> <div className="container pb-20 pt-8">
<div className="flex flex-wrap items-center gap-1"> <div className="flex flex-wrap items-center gap-1">
<DashboardTab <DashboardTab
label="Personal" label="Personal"

@ -164,7 +164,9 @@ const gaPageIdentifier = Astro.url.pathname
<slot /> <slot />
<slot name='page-footer'> <slot name='page-footer'>
<slot name='open-source-banner'>
<OpenSourceBanner /> <OpenSourceBanner />
</slot>
<Footer /> <Footer />
</slot> </slot>

@ -5,4 +5,5 @@ import BaseLayout from '../layouts/BaseLayout.astro';
<BaseLayout title='Dashboard' noIndex={true}> <BaseLayout title='Dashboard' noIndex={true}>
<DashboardPage client:load /> <DashboardPage client:load />
<div slot='open-source-banner'></div>
</BaseLayout> </BaseLayout>

Loading…
Cancel
Save