Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add skeleton component, route page, and mobile hook; update sidebar styles and globals #39

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

elmedinarifi
Copy link
Contributor

This pull request includes various changes to the codebase, focusing on adding new components, updating dependencies, and modifying styles. The most important changes are grouped by theme as follows:

New Component Additions:

  • Added a new RoutePage component that fetches and displays data based on the route parameter. (src/app/(dashboard)/dashboard/[route]/route-page.tsx) (src/app/(dashboard)/dashboard/[route]/route-page.tsxR1-R25)
  • Introduced a Sheet component with various subcomponents for creating a dialog interface. (src/components/ui/sheet.tsx)
  • Added Tooltip component with its subcomponents for displaying tooltips. (src/components/ui/tooltip.tsx)
  • Created a Skeleton component for loading states. (src/components/ui/skeleton.tsx)

Dependency Updates:

  • Updated package.json to add new dependencies: @radix-ui/react-dialog, @radix-ui/react-separator, and @radix-ui/react-tooltip. (package.json)

Style and Configuration Changes:

  • Changed the path of the Tailwind CSS file from src/app/globals.css to src/styles/globals.css. (components.json)
  • Added new CSS variables for sidebar theming in both light and dark modes. (src/styles/globals.css) [1] [2]
  • Updated tailwind.config.ts to include new sidebar color variables. (tailwind.config.ts)

Layout and Navigation:

  • Added a new layout component for the dashboard that includes a sidebar and header with dynamic route display. (src/app/(dashboard)/dashboard/layout.tsx)
  • Created a Separator component for UI separation. (src/components/ui/separator.tsx)

Custom Hooks:

  • Implemented a custom hook useIsMobile to detect mobile viewports. (src/hooks/use-mobile.tsx)

@BramSuurdje BramSuurdje merged commit 0b389b4 into main Dec 19, 2024
3 checks passed
@BramSuurdje BramSuurdje deleted the feat-add-dashboard-page branch December 19, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants