Skip to content

Commit

Permalink
code updated
Browse files Browse the repository at this point in the history
  • Loading branch information
PranabKumarSahoo committed Mar 3, 2024
1 parent 9baa3bf commit 4c41f75
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 203 deletions.
45 changes: 18 additions & 27 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
.App {
::-webkit-scrollbar {
width: 15px;
}

::-webkit-scrollbar-track {
background-color: #141421;
}

::-webkit-scrollbar-thumb {
border-radius: 100px;
border: 5px solid transparent;
background-clip: padding-box;
background-color: tomato;
}


.App {
justify-content: center;
align-items: flex-start;
}
Expand Down Expand Up @@ -38,29 +54,4 @@
.toggle-button {
top: 15px;
}
}



body {
--sb-track-color: #232E33;
--sb-thumb-color: linear-gradient(to right, #260843, #553d7a);
--sb-size: 8px;

scrollbar-color: var(--sb-thumb-color)
var(--sb-track-color);
}

body::-webkit-scrollbar {
width: var(--sb-size)
}

body::-webkit-scrollbar-track {
background: var(--sb-track-color);
}

body::-webkit-scrollbar-thumb {
background: var(--sb-thumb-color);
border-radius: 10px;
border: 1px solid #25035c;
}
}
10 changes: 4 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import Sidebar from './Components/Sidebar/Sidebar';
import HomePage from './Pages/HomePage/HomePage';
import { FiChevronsRight, FiChevronsLeft } from "react-icons/fi";



function App() {
const [isSidebarOpen, setIsSidebarOpen] = useState(false);
const [buttonIcon, setButtonIcon] = useState(<FiChevronsRight />);
Expand All @@ -25,12 +23,14 @@ function App() {
};

const closeSidebar = (event) => {
if (newRef.current && !newRef.current.contains(event.target)) {
console.log('Close sidebar called');
if (newRef.current && event && !newRef.current.contains(event.target)) {
setIsSidebarOpen(false);
setButtonIcon(<FiChevronsRight />);
}
};


return (
<div className="App" ref={newRef}>
<BrowserRouter>
Expand All @@ -41,11 +41,9 @@ function App() {
<Routes>
<Route path="/" element={<HomePage />} />
</Routes>

</BrowserRouter>

</div>
);
}

export default App;
export default App;
15 changes: 8 additions & 7 deletions src/Components/CustomComp/Button/Button.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.submit-btn {
padding: 10px 20px;
padding: 12px 25px;
border-radius: 10px;
background-color: #181828;
color: white;
Expand All @@ -8,16 +8,17 @@
border-style: solid;
border-color: rgba(255, 255, 255, 0.2);
cursor: pointer;
font-size: 18px;
font-size: 15px;
font-weight: bold;
transition: all 0.3s ease;
}

.submit-btn:hover{
.submit-btn:hover {
background-color: grey;
border:2px solid rgb(255, 255, 255);
/* border: 1px solid rgb(255, 255, 255); */
}
.submit-btn:active{

.submit-btn:active {
background-color: rgb(247, 247, 247);
color:black;
}
color: black;
}
68 changes: 0 additions & 68 deletions src/Components/Footer/Footer.css

This file was deleted.

46 changes: 0 additions & 46 deletions src/Components/Footer/Footer.jsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/Components/Sidebar/Sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ nav ul {
display: block;
width: 100%;
padding: 15px;
font-size: 18px;
font-weight: bold;
transition: background-color 0.3s ease;
background-color: rgba(0, 0, 0, 0.2);
border-radius: 5px;
Expand Down
1 change: 1 addition & 0 deletions src/Components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import './Sidebar.css'

export default function Sidebar({ isOpen, closeSidebar }) {
const handleLinkClick = () => {
console.log("Link Clicked");
closeSidebar();
};
return (
Expand Down
Loading

0 comments on commit 4c41f75

Please sign in to comment.