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

Change to Grid for default navigation of material #238

Merged
merged 11 commits into from
Jul 11, 2024

Conversation

alasdairwilson
Copy link
Collaborator

Closes #204

This needs a follow on PR:

  • Add toggle switch to change default presentation from grid to reactflow

The code changes include adding the `CourseGrid` component to to use a mui grid rather than the react-flow diagram
This commit refactors the Layout component to use the MuiTheme from the @mui/material library for theming. It adds the necessary imports for the useTheme, ThemeProvider, and CssBaseline components. It also introduces the LightTheme and DarkTheme objects in the MuiTheme file, which define the color palette and styling for the light and dark themes respectively.
adds`NavDiagram` component to the to see the full repo layout via a link from /material
This commit adds the getStaticPaths function to the diagram.tsx file in the pages/material/[repoId]/[themeId] directory. The function generates the paths for the dynamic routes based on the material data retrieved from the getMaterial function. Each path corresponds to a specific combination of repoId, themeId, and courseId. This change ensures that the dynamic routes are properly generated and accessible for the material pages.
@alasdairwilson alasdairwilson merged commit 9e09d06 into main Jul 11, 2024
4 checks passed
@alasdairwilson alasdairwilson deleted the courses-css-course branch July 11, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: replace the React Flow diagrams with CSS grids
1 participant