smackalpha
KPCKevin Powell - Community
•Created by smackalpha on 11/14/2024 in #front-end
How to make text color adapt to progressbar
6 replies
KPCKevin Powell - Community
•Created by smackalpha on 10/15/2024 in #front-end
How to make bottom shadow in text in css.
16 replies
KPCKevin Powell - Community
•Created by smackalpha on 9/26/2024 in #front-end
how to add border radius for background image in div block
5 replies
KPCKevin Powell - Community
•Created by smackalpha on 9/24/2024 in #front-end
how to get rid of chrome default page once user logged in - nextjs
i am using nextjs
router.replace
once user entered home page. its working great. but issue is still back button is enabled. if i click back btn, it goes to chrome default page. how to get rid of that. anyone has any idea.
router.replace({
pathname: '/home',
});1 replies
KPCKevin Powell - Community
•Created by smackalpha on 9/12/2024 in #front-end
how to create protected routes in Nextjs 14 on client side
I am creating a next app. In there, i have login, home pages at all. I created one Authentication file for protecting pages
Authentication code: https://controlc.com/75886140
and i wrapped this in _app.js
<Authentication>
<Component {...pageProps} />
</Authentication>
Its working fine. but the issue is if i type route home, i still can see home page code in source tab in chrome. I know we can use middleware to solve these kind of issue. In my case, i use only session storage so token data will be different per tab. but only cookies are supported in middleware. Any one suggest me with giving some approach to solve this issue. i dont want my home content to be loaded on DOM if the user is not logged in
1 replies
KPCKevin Powell - Community
•Created by smackalpha on 7/22/2024 in #front-end
Need a curve on top of app bar when selected
3 replies
KPCKevin Powell - Community
•Created by smackalpha on 7/8/2024 in #front-end
how to modify the slope in svg shape
5 replies
KPCKevin Powell - Community
•Created by smackalpha on 7/1/2024 in #front-end
How to make slope box in css.
7 replies
KPCKevin Powell - Community
•Created by smackalpha on 6/18/2024 in #front-end
How to Integrate webengage in nextjs app
I used WebEngage for tracking users. In React, I pasted the code in index.html under the head tag and it worked fine. In Next.js, since there's no index.html, I pasted it in _app.js, but I'm getting an error.
My _app.jsx code:
can someone help me to solve this issue.
1 replies
KPCKevin Powell - Community
•Created by smackalpha on 2/12/2024 in #front-end
fetch to axios
i have one function in fetch. i need to convert it to axios. In fetch, its working fine but in axios, its not working
https://codefile.io/f/X6XoOM0XLC
I dont what i am missing in axios. Is i am correctly passing in axios. plz help me
3 replies
KPCKevin Powell - Community
•Created by smackalpha on 1/9/2024 in #front-end
rsuite datePicker minDate and maxDate not working
I want to set minDate and maxDate in rsuite. but its not working. Plz anyone help me fix it
Code Sandbox Link: https://codesandbox.io/p/sandbox/relaxed-star-jwdd5d?file=%2Findex.js%3A11%2C35
code:
import React from "react";
import ReactDOM from "react-dom";
import "rsuite/dist/rsuite.min.css"; // Import default styles for rsuite
import "./styles.css"; // Make sure this file exists and contains your custom styles
import { DatePicker, Stack } from "rsuite";
const App = () => {
const currentDate = new Date();
const minDate = new Date(
currentDate.getFullYear() - 1,
currentDate.getMonth(),
currentDate.getDate()
);
return (
<Stack direction="column" alignItems="flex-start" spacing={6}>
<DatePicker format="MM/dd/yyyy" minDate={minDate} maxDate={currentDate} />
</Stack>
);
};
ReactDOM.render(<App />, document.getElementById("root"));
4 replies
KPCKevin Powell - Community
•Created by smackalpha on 12/17/2023 in #front-end
Implementing a Non-Wrapping, Count-Based Multi-Select Dropdown with MUI Chips
1 replies