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

Add tailwind to mainLayOut and NavBar #75

Closed
wants to merge 4 commits into from
Closed

Add tailwind to mainLayOut and NavBar #75

wants to merge 4 commits into from

Conversation

kavinda-100
Copy link

@kavinda-100 kavinda-100 commented Jan 31, 2024

Purpose

The Navbar is not responsive when resizing the browser window.
(#73)

Goals

add tailwindcss utility classes to MainLayOut and NavBar to fix the issue.

Approach

I had set the max width to the nav bar and added proper Tailwind classes according to the device breakpoints to achieve responsiveness for the NavBar.

Screenshots

#73 (comment)

Checklist

  • This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
  • I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
  • My code follows the style guidelines of this project
  • 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

@kavinda-100
Copy link
Author

add tailwind branch

@@ -3,7 +3,7 @@ import React, { type ReactNode } from 'react';
import { Layout } from 'antd';

import FooterComponent from './Footer/Footer';
import styles from './MainLayout.module.css';
// import styles from './MainLayout.module.css';
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
// import styles from './MainLayout.module.css';

</a>
<a href="" target="_blank" rel="noreferrer">
<Text className={styles.antTypography}>Join Us</Text>
<Text className="antTypography text-primary text-[14px] font-light">Join Us</Text>
Copy link
Member

Choose a reason for hiding this comment

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

Use a standard size like text-sm text-md

@@ -4,6 +4,8 @@ export const theme = {
extend: {
colors: {
'primary-blue': '#1677FF',
'ant-icon-color': '#525F7F',
Copy link
Member

Choose a reason for hiding this comment

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

Lets use a different name here without the ant part

Suggested change
'ant-icon-color': '#525F7F',
'ant-icon-color': '#525F7F',

@anjula-sack anjula-sack changed the title add tailwind to mainLayOut and NavBar Add tailwind to mainLayOut and NavBar Jan 31, 2024
@anjula-sack
Copy link
Member

@kavinda-100 There are some conflicts can you fix them?

@anjula-sack
Copy link
Member

@kavinda-100 There are some conflicts can you fix them as well?

@kavinda-100 kavinda-100 reopened this Feb 12, 2024
@kavinda-100
Copy link
Author

done the required changes

@anjula-sack
Copy link
Member

@kavinda-100 The conflicts are still there

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.

@mayura-andrew There are some lint issues.

@anjula-sack
Copy link
Member

Closing due to inactivity

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