Skip to content

Commit

Permalink
updation is made by Mentor
Browse files Browse the repository at this point in the history
  • Loading branch information
skmirajulislam committed Oct 6, 2024
1 parent 9bb05fc commit 6b398b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 34 deletions.
20 changes: 1 addition & 19 deletions frontend/package-lock.json

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

18 changes: 9 additions & 9 deletions frontend/src/pages/Home/Hom.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect , useState } from "react";
import React, { useEffect, useState } from "react";
import { Link } from 'react-router-dom';
import "./Hom.css";
import Faqs from './Faqs';
Expand All @@ -16,8 +16,8 @@ export default function Hom() {
};
}, []);

const [showScrollTop, setShowScrollTop] = useState(false);

const [, setShowScrollTop] = useState(false);
useEffect(() => {
const handleScroll = () => {
if (window.scrollY > 120) {
Expand All @@ -35,12 +35,12 @@ export default function Hom() {
return (
<div className="hom-container">
<main className="main-content">
<button class="scroll-up-btn" onClick={() => window.scrollTo(0, 0)}>
<span class="material-symbols-outlined" style={{
color:'#333'
}}>
arrow_upward
</span> </button>
<button class="scroll-up-btn" onClick={() => window.scrollTo(0, 0)}>
<span class="material-symbols-outlined" style={{
color: '#333'
}}>
arrow_upward
</span> </button>
<div className="intro-section">
<div className="animation-container">
<dotlottie-player
Expand Down Expand Up @@ -103,7 +103,7 @@ arrow_upward
))}
</div>
<div>
<Faqs/>
<Faqs />
</div>
</main>
</div>
Expand Down
6 changes: 0 additions & 6 deletions package-lock.json

This file was deleted.

0 comments on commit 6b398b0

Please sign in to comment.