-
Notifications
You must be signed in to change notification settings - Fork 58
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
Conversation
add tailwind branch |
src/components/Layout/MainLayout.tsx
Outdated
@@ -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'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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> |
There was a problem hiding this comment.
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
tailwind.config.js
Outdated
@@ -4,6 +4,8 @@ export const theme = { | |||
extend: { | |||
colors: { | |||
'primary-blue': '#1677FF', | |||
'ant-icon-color': '#525F7F', |
There was a problem hiding this comment.
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
'ant-icon-color': '#525F7F', | |
'ant-icon-color': '#525F7F', |
@kavinda-100 There are some conflicts can you fix them? |
@kavinda-100 There are some conflicts can you fix them as well? |
done the required changes |
@kavinda-100 The conflicts are still there |
There was a problem hiding this 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.
Closing due to inactivity |
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
Related PRs
Test environment
Learning