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

Created Footer #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Created Footer #14

wants to merge 2 commits into from

Conversation

Gargi212Roy
Copy link

@Gargi212Roy Gargi212Roy commented Apr 6, 2023

Fixes #6
Footer created.

@FaizBShah
Copy link
Member

Attach screenshot of your changes in the description

next.config.js Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert it back to original. No need to write this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next.config.js modified.

pages/_app.tsx Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't add Footer in _app.tsx. Add it in index.tsx.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Footer.tsx removed from _app.tsx and added in index.tsx.

import { FooterProps as Props } from "./Footer.types";
import Squirrel from "./assets/Squirrel.png";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write correct spelling

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling of image name corrected.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write correct spelling

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling of image name corrected.

package.json Outdated
"typescript": "4.9.5"
},
"devDependencies": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove it as dev-dependency, and install it back as normal dependency. To do that:

  1. npm uninstall sass
  2. npm i sass

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed sass as dev-dependency and added as normal dependency.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FaizBShah I was curious why choose to install it as normal dependency. It is required only for development purposes and no need to install this in production right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BIKRAM-SAHA You're correct. I don't remember why but I think it was to keep the packages consistent since I was experimenting with the boilerplate, and didn't wanted to get errors and waste time figuring out which dependencies can work in dev-mode and which can work in in prod mode. But now I think barring 4 (next, react, react-dom, react-router-dom), all of them could be installed as dev-dependency, as none of them will be actually required in the production build. (If we actually required typescript in production, my life would had been so much better :p)

@Gargi212Roy
Copy link
Author

Gargi212Roy commented Apr 9, 2023

Attach screenshot of your changes in the description

Footer_img
Screenshot attached.

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.

Create the footer of the page
3 participants