Skip to content

Commit

Permalink
Merge pull request #12 from ms-club-sliit/feature/scroll-to-top-pages
Browse files Browse the repository at this point in the history
Scroll to top button all pages created - issue #8
  • Loading branch information
rusiruavb authored Nov 21, 2021
2 parents 82573d2 + 04658d5 commit 99cbf02
Show file tree
Hide file tree
Showing 10 changed files with 24,133 additions and 3,013 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm ci
- run: npm run build
- run: npm test --if-present
21,234 changes: 21,112 additions & 122 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"react-owl-carousel": "^2.3.3",
"react-router-dom": "^6.0.2",
"react-scripts": "4.0.3",
"react-scroll-to-top": "^1.0.5",
"typescript": "^4.1.2",
"web-vitals": "^1.0.1"
},
Expand All @@ -49,6 +50,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {}
}
}
2 changes: 2 additions & 0 deletions src/pages/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import React from "react";
import HeroSection from "./hero-section";
import PioneersSection from "./pioneers-section";
import VisionSection from "./vision-section";
import ScrollToTop from "react-scroll-to-top";

const About: React.FC = () => (
<div className="container">
<ScrollToTop smooth />
<HeroSection />
<PioneersSection />
<VisionSection />
Expand Down
2 changes: 2 additions & 0 deletions src/pages/blog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React from "react";
import BlogList from "./blog-list-section";
import HeroSection from "./hero-section";
import ScrollToTop from "react-scroll-to-top";

const Blogs: React.FC = () => (
<div className="container">
<ScrollToTop smooth />
<HeroSection/>
<BlogList/>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/board/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React from "react";
import BoardByYear from "./board-by-year";
import ScrollToTop from "react-scroll-to-top";

const Boards: React.FC = () => (
<div className="container">
<ScrollToTop smooth />
<BoardByYear/>
</div>
);
Expand Down
2 changes: 2 additions & 0 deletions src/pages/contact/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React from "react";
import HeroSection from "./hero-section";
import ContactFormSection from "./contact-form-section";
import ScrollToTop from "react-scroll-to-top";

const Contact: React.FC = () => (
<div className="container">
<ScrollToTop smooth />
<HeroSection />
<ContactFormSection />
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/event/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React from 'react';
import EventList from './event-list-section';
import HeroSection from './hero-section';
import ScrollToTop from "react-scroll-to-top";

const Events: React.FC = () => (
<div>
<ScrollToTop smooth />
<HeroSection />
<EventList />
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import HeroSection from "./hero-section";
import PastEventSection from "./past-events-section";
import PastWebinarSection from "./past-webinars-section";
import WhatWeDoSection from "./who-we-are-section";
import ScrollToTop from "react-scroll-to-top";

const Home: React.FC = () => (
<div>
<ScrollToTop smooth />
<HeroSection />
<WhatWeDoSection />
<BlogsSection />
Expand Down
5,894 changes: 3,006 additions & 2,888 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 99cbf02

Please sign in to comment.