Skip to content

Commit

Permalink
Merge pull request #5 from mitul-garg/move-to-top-arrow
Browse files Browse the repository at this point in the history
Added Move to Top Arrow
  • Loading branch information
mitul-garg authored Jul 25, 2024
2 parents 421926f + 6753e9a commit 96bb6b0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"react-lazy-load-image-component": "^1.6.2",
"react-router-dom": "^6.23.1",
"react-scripts": "^5.0.1",
"react-scroll-to-top": "^3.0.0",
"uuid": "^10.0.0",
"web-vitals": "^4.1.1"
},
Expand Down
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import ScrollToTop from "react-scroll-to-top";

// import pages
import { Home } from "./pages/Home";
Expand All @@ -20,6 +21,7 @@ import { AllIssues } from "./components/AllIssues";
const App = () => {
return (
<Router>
<ScrollToTop smooth className="scroll-to-top-arrow" />
<Navbar />
<Sidebar />
<Routes>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Education/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
height: 300px;
width: 400px;
padding: 20px 40px;
background: linear-gradient(to top, #35d7e6, #72f3ff);
/* background: linear-gradient(to top, #35d7e6, #72f3ff); */
background: #d0f4f8;
color: black;
font-family: "Montserrat", sans-serif;
transition: all 0.5s ease-in-out;
Expand Down
5 changes: 5 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ body {
background: var(--clr-grey-10);
min-height: calc(100vh - 9rem);
}

.scroll-to-top-arrow {
cursor: url("./assets/pointer.svg"), auto !important;
background-color: hsl(184, 80%, 74%) !important;
}

0 comments on commit 96bb6b0

Please sign in to comment.