Skip to content

Commit 7c0a1bc

Browse files
authored
Merge pull request #36 from NepTechTribe/new
Testimonials section added
2 parents 7d77aae + ea4170d commit 7c0a1bc

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

src/Components/landingpage/button.jsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
function Button({buttontext,buttonclass , buttoncontainer}){
1+
import { useNavigate } from 'react-router-dom';
2+
3+
4+
5+
function Button({buttontext,buttonclass , buttoncontainer ,location}){
6+
7+
const navigate = useNavigate();
8+
9+
const handleClick = () => {
10+
navigate(location);
11+
};
12+
13+
214
return(
315
<>
416
<div className={buttoncontainer} >
5-
<button className={buttonclass}>{buttontext}</button>
17+
<button className={buttonclass} onClick={handleClick}>{buttontext}</button>
618
</div>
719
</>
820
)

src/Pages/pagenotfound.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function PageNotFound(){
2828
<div className="Breadcrum-footer">
2929
<h3>404 error</h3>
3030
<p>opps! this page is not found</p>
31-
<Button buttontext={"Back to Home"} buttonclass={"herobutton"} buttoncontainer={"Button-container"}/>
31+
<Button buttontext={"Back to Home"} buttonclass={"herobutton"} buttoncontainer={"Button-container"} location={"/"}/>
3232
</div>
3333
</Col>
3434
</Row>

src/Styles/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@
357357
}
358358
.Testimonials-individual {
359359
width: 100%;
360-
height: 30rem;
360+
height: 20rem;
361361
}
362362
}
363363
@media screen and (min-width: 576px) and (max-width: 1024px) {

src/Styles/LandingPage/_Testimonials.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
padding-bottom: 3rem;
7878
&-individual{
7979
width: 100%;
80-
height: 30rem;
80+
height: 20rem;
8181
}
8282
}
8383
}

0 commit comments

Comments
 (0)