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: ✨ Type: Enhancement | Title: Addition of new components and layouts #19

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

RicardoGEsteves
Copy link
Owner

Description:
The changes involve the addition of new components and layouts to the application. These include the MainLayout, TopNav, SideNav, MenuItem, and UploadLayout components. The changes also include the addition of new types for these components and the modification of the next.config.js file to handle images.

Main Files Walkthrough:

  • app/(main)/layout.tsx: The MainLayout component has been updated to include the TopNav and SideNav components. The children prop is still rendered within the div.
  • app/_components/menu-item.tsx: A new MenuItem component has been added. This component takes in an iconString, colorString, and sizeString as props and renders the corresponding icon.
  • app/_components/side-nav.tsx: A new SideNav component has been added. This component uses the MenuItem component to render a navigation link.
  • app/_components/top-nav.tsx: A new TopNav component has been added. This component includes a search input and various navigation buttons.
  • app/upload/layout.tsx: A new UploadLayout component has been added. This component includes the TopNav component and renders the children prop within a div.
  • components/client-only.tsx: A new ClientOnly component has been added. This component only renders its children on the client side.
  • types/component.ts: New types have been added for the various components in the application.
  • types/layout.ts: New types have been added for the MenuItem and MenuItemFollow components.
  • types/types.d.ts: New types have been added for various entities in the application, such as User, Profile, Post, Comment, and others.
  • next.config.js: The next.config.js file has been updated to handle images. The images configuration object has been added with various properties.

Create main and upload layouts.

…outs

Description:
The changes involve the addition of new components and layouts to the application. These include the MainLayout, TopNav, SideNav, MenuItem, and UploadLayout components. The changes also include the addition of new types for these components and the modification of the next.config.js file to handle images.

Main Files Walkthrough:
- app/(main)/layout.tsx: The MainLayout component has been updated to include the TopNav and SideNav components. The children prop is still rendered within the div.
- app/_components/menu-item.tsx: A new MenuItem component has been added. This component takes in an iconString, colorString, and sizeString as props and renders the corresponding icon.
- app/_components/side-nav.tsx: A new SideNav component has been added. This component uses the MenuItem component to render a navigation link.
- app/_components/top-nav.tsx: A new TopNav component has been added. This component includes a search input and various navigation buttons.
- app/upload/layout.tsx: A new UploadLayout component has been added. This component includes the TopNav component and renders the children prop within a div.
- components/client-only.tsx: A new ClientOnly component has been added. This component only renders its children on the client side.
- types/component.ts: New types have been added for the various components in the application.
- types/layout.ts: New types have been added for the MenuItem and MenuItemFollow components.
- types/types.d.ts: New types have been added for various entities in the application, such as User, Profile, Post, Comment, and others.
- next.config.js: The next.config.js file has been updated to handle images. The images configuration object has been added with various properties.

Create main and upload layouts.
@RicardoGEsteves RicardoGEsteves merged commit 3477d47 into main Dec 28, 2023
3 checks passed
@RicardoGEsteves RicardoGEsteves deleted the create-layouts branch December 28, 2023 05:08
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.

1 participant