-
Notifications
You must be signed in to change notification settings - Fork 23
responsive for dark and light mode , for all devices scroll bar added #141
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| import axios from 'axios'; | ||
| const BASE_URL = 'http://localhost:5000'; | ||
| const BASE_URL = 'http://localhost:3000'; | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should remain port 5000. |
||
|
|
||
| export default axios.create({ | ||
| baseURL: BASE_URL | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,8 @@ const Dashboard = () => { | |
| }) | ||
|
|
||
| return ( | ||
| <div className="flex flex-col h-auto"> | ||
| <div className="h-screen overflow-y-auto scrollbar-thin scrollbar-thumb-base-content scrollbar-track-base-200 dark:scrollbar-thumb-base-100 dark:scrollbar-track-base-300"> | ||
| {/*responsive scroll bar added*/} | ||
|
Comment on lines
+51
to
+52
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's keep the scrollbar style changes just to main the scrollbar only, not overflow scrolling for now. so please remove. |
||
| {/* main container */} | ||
| <div className="md:grid w-[95%] h-auto md:grid-cols-4 gap-3 mx-auto"> | ||
| {/* first column */} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,7 @@ const Network = () => { | |
|
|
||
| return ( | ||
| <div className="max-w-[90%] lg:max-w-4xl mx-auto p-6 bg-base-100 rounded-lg shadow-md"> | ||
| {/*Add scroll bar here if needed*/} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comment. |
||
| {loading | ||
| ? | ||
| <Loading /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ module.exports = { | |
| }, | ||
| plugins: [ | ||
| require("daisyui"), | ||
| require("tailwind-scrollbar"), | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same goes for this as earlier, please uninstall. |
||
| ], | ||
| daisyui: { | ||
| styled: true, | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,12 @@ const corsOptions = require('./config/corsOptions') | |
| const app = express(); | ||
| const port = process.env.PORT || 3000; | ||
|
|
||
| {/*you can add if needed for check res i have added this*/} | ||
| // app.get('/' , (req, res)=>{ | ||
| // res.send('Dev Connecct to server') | ||
| // console.log('Dev Coonect to server'); | ||
| // }) | ||
|
|
||
|
Comment on lines
+11
to
+16
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove. |
||
| connectDB(); | ||
|
|
||
| // Cross Origin Resource Sharing | ||
|
|
@@ -23,6 +29,8 @@ const logoutRoutes = require('./routes/logoutRoutes'); | |
| const profileRoutes = require('./routes/profileRoutes'); | ||
| const blogPostRoutes = require('./routes/blogPostRoutes'); | ||
|
|
||
|
|
||
|
|
||
| // Middleware | ||
| app.use(express.json()); | ||
| app.use(cookieParser()); | ||
|
|
||
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.
The same goes for this, please uninstall.