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

Create the footer using tailwind css #76

Closed
wants to merge 4 commits into from

Conversation

vishwaikon
Copy link
Contributor

…in external CSS stylesheet were replaced with Tailwind CSS classes. The code to import the external stylesheet was commented to prevent style conflicts.

Purpose

The purpose of this PR is to develop the footer of the website and replace the Antd styles with Tailwind CSS which is a part of fixing issue #50.

Goals

Tailwind classes were used to enhance efficiency and readability and the structure.

Approach

The CSS flexbox was used and Tailwind CSS classes were used to achieve the Antd styles. The code to import the external stylesheet was commented to prevent conflicts in styles and to be used if required.

Screenshots

image

Checklist

  • [X ] This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
  • [X ] I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
  • [X ] My code follows the style guidelines of this project
  • [X ] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Related PRs

Test environment

Learning

…in external CSS stylesheet were replaced with Tailwind CSS classes. The code to import the external stylesheet was commented to prevent style conflicts.
…acilitate using same color code throughout the website, dark moderate blue: darkmod-blue #3dd17C and desaturated blue: desat-blue #6D7893
Copy link
Member

@anjula-sack anjula-sack left a comment

Choose a reason for hiding this comment

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

Good job! @vishwaikon I added some comments. Also there are lint fails. Run npm run lint to check them. Also keep the PR titles short.

src/components/Layout/Footer/Footer.tsx Outdated Show resolved Hide resolved
Let`s Rethink Education!
</div>
<div className="footerSecondaryTitle font-sans text-base text-darkmod-blue font-normal">
{' '}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{' '}

Comment on lines 23 to 51
<svg
className="w-6"
xmlns="http://www.w3.org/2000/svg"
aria-label="Twitter"
role="img"
viewBox="0 0 512 512"
>
<rect width="512" height="512" rx="15%" fill="#1da1f2" />
<path
fill="#ffffff"
d="M437 152a72 72 0 01-40 12a72 72 0 0032-40a72 72 0 01-45 17a72 72 0 00-122 65a200 200 0 01-145-74a72 72 0 0022 94a72 72 0 01-32-7a72 72 0 0056 69a72 72 0 01-32 1a72 72 0 0067 50a200 200 0 01-105 29a200 200 0 00309-179a200 200 0 0035-37"
/>
</svg>
</a>
</div>

<div className="facebook w-7 h-7 rounded flex justify-center items-center bg-[#3B5999] ml-2 mb-2">
<a href="https://www.facebook.com/sustainableeducationfoundation/">
<svg
className="w-7"
viewBox="0 -6 512 512"
xmlns="http://www.w3.org/2000/svg"
>
<path fill="#475a96" d="M0 0h512v500H0z" />
<path
d="M375.717 112.553H138.283c-8.137 0-14.73 6.594-14.73 14.73v237.434c0 8.135 6.594 14.73 14.73 14.73h127.826V276.092h-34.781v-40.28h34.781v-29.705c0-34.473 21.055-53.244 51.807-53.244 14.73 0 27.391 1.097 31.08 1.587v36.026l-21.328.01c-16.725 0-19.963 7.947-19.963 19.609v25.717h39.887l-5.193 40.28h-34.693v103.355h68.012c8.135 0 14.73-6.596 14.73-14.73V127.283c-.001-8.137-6.596-14.73-14.731-14.73z"
fill="#ffffff"
/>
</svg>
Copy link
Member

Choose a reason for hiding this comment

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

Let's create separate components for svgs so we can manage them easily. create a folder called assets->svgs and keep the svgs there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I will create

src/components/Layout/Footer/Footer.tsx Outdated Show resolved Hide resolved
</Text>
</Col>
</Row>
</a>{' '}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
</a>{' '}
</a>

@anjula-sack anjula-sack changed the title Styled the footer design using Tailwind CSS classes , the styles with… Create the footer using tailwind css Feb 1, 2024
</a>{' '}
</div>
</div>
</>
);
export default FooterComponent;
Copy link
Member

@mayura-andrew mayura-andrew Feb 2, 2024

Choose a reason for hiding this comment

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

add EOF here after line number 313

@vishwaikon
Copy link
Contributor Author

Hi, @mayura-andrew , I fixed the ESLint errors, but the ESLint check still fails.

@anjula-sack
Copy link
Member

Hi, @mayura-andrew , I fixed the ESLint errors, but the ESLint check still fails.

@vishwaikon Run npm run lint and see the lint errors should be shown there

@vishwaikon vishwaikon closed this Feb 5, 2024
@vishwaikon vishwaikon deleted the Test1 branch February 5, 2024 10:28
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.

3 participants