ASU-CodeDevils / codedevils.org

The Official CodeDevils website frontend codebase written using Next.js, React, TypeScript, and Tailwind CSS
https://www.codedevils.org
10 stars 6 forks source link

Flatten and simplify the directory structure #41

Closed jtmichelson closed 1 year ago

jtmichelson commented 1 year ago

There are too many duplicate file names and unnecessarily nested dirs. For example there is a components->headers->about.tsx and a pages->about.tsx. Does this mean there is a separate About Header component that is only used one time and that's in the About Page - does it just add the specific text to the base header component?

Screen Shot 2023-05-03 at 2 27 35 PM
fernandonevarez commented 1 year ago

So about that, the pages->about.tsx directory path nesting means that's the file path to the about page file. While the directory path components->headers->about.tsx is the file path to the about page's header file, since we have so many different variations of the header component. But I'll work on just having a single header component file that conditionally renders a given header based on which page you are on.

fernandonevarez commented 1 year ago

okay finished doing this.