Skip to content

Created Footer#14

Open
Gargi212Roy wants to merge 2 commits into
mainfrom
create-footer
Open

Created Footer#14
Gargi212Roy wants to merge 2 commits into
mainfrom
create-footer

Conversation

@Gargi212Roy

@Gargi212Roy Gargi212Roy commented Apr 6, 2023

Copy link
Copy Markdown

Fixes #6
Footer created.

@FaizBShah

Copy link
Copy Markdown
Member

Attach screenshot of your changes in the description

Comment thread next.config.js

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread pages/_app.tsx

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread components/commons/Footer/Footer.tsx Outdated
import { FC } from "react";
import Image from "next/image";
import { FooterProps as Props } from "./Footer.types";
import Squirrel from "./assets/Squirrel.png";

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread package.json Outdated
"react-icons": "^4.8.0",
"typescript": "4.9.5"
},
"devDependencies": {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Gargi212Roy commented Apr 9, 2023

Copy link
Copy Markdown
Author

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