Skip to content

Commit

Permalink
Merge pull request #274 from YooAshu/carousel
Browse files Browse the repository at this point in the history
added carousel
  • Loading branch information
gauravsingh1281 authored Oct 9, 2024
2 parents 4c25b3f + 210cb1b commit c25167d
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 14 deletions.
33 changes: 32 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.12.0",
"react-router-dom": "^6.26.2",
"react-responsive-carousel": "^3.2.23",
"react-router-dom": "^6.15.0",
"react-scroll-to-top": "^3.0.0"
},
"devDependencies": {
Expand Down
Binary file added src/assets/Images/agra-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Images/banglore-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Images/carousel2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Images/carousel2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Images/carousel3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Images/carousel3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Images/goa-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Images/mumbai-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/Images/red-house.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 12 additions & 8 deletions src/components/Header-section/Header-section.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.header-section {
width: 100%;
height: 100vh;
background: url(/src/assets/Images/red-house.png);
background-position: center center;
background-color: #262626;
/* background: url(/src/assets/Images/red-house.png); */
/* background-position: center center; */
/* background-color: #262626; */
background-size: cover;
position: relative;
margin-bottom: 0;
Expand Down Expand Up @@ -44,7 +44,7 @@
}

.header-text {
position: relative;
/* position: relative; */
left: 4%;
width: 68%;
}
Expand Down Expand Up @@ -72,15 +72,19 @@
.header-section {
width: 100%;
height: 100vh;
background: url(/src/assets/Images/red-house.png);
/* background: url(/src/assets/Images/red-house.png); */
background-position: center center;
background-color: #262626;
/* background-color: #262626; */
background-size: cover;
position: relative;
}

.header-desc {
font-weight: 500;
}

.header-text {
position: relative;
/* position: relative; */
left: 4%;
width: 74%;
}
Expand Down Expand Up @@ -141,4 +145,4 @@
height: 44px;
background: #1abc9c;
}
}
}
28 changes: 24 additions & 4 deletions src/components/Header-section/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,39 @@
import "../Header-section/Header-section.css";
import { Link } from "react-router-dom";
import Navbar from "./Navbar";
import "react-responsive-carousel/lib/styles/carousel.min.css"; // requires a loader
import { Carousel } from 'react-responsive-carousel';
import carImg1 from "../../assets/Images/red-house.png"
import carImg2 from "../../assets/Images/carousel2.png"
import carImg3 from "../../assets/Images/carousel3.png"
const Header = () => {
return (
<>
<div className="header-section mb-[80px]">
<Navbar />

<div id="home"></div>
<div className="header-text top-[15%] sm:top-[23%]">
<Carousel autoPlay = {true} infiniteLoop = {true} showStatus = {false} showThumbs = {false} stopOnHover ={false} swipeable = {false} animationHandler="fade">
<div>
<img src={carImg1} className="h-screen object-cover"/>

</div>
<div>
<img src={carImg2} className="h-screen object-cover"/>

</div>
<div>
<img src={carImg3} className="h-screen object-cover"/>

</div>
</Carousel>
<div className="header-text top-[15%] sm:top-[23%] absolute">
<h1>
Welcome to <span>Rentalog</span>
</h1>
<p>
Rentalog is the ultimate solution for landlords looking to simplify
their rent management process. Keep track of your renters personal
<p className="header-desc">
Rentalog is the ultimate solution for landlords looking to simplify <br />
their rent management process. Keep track of your <br /> renters personal
details, their payment history, and much more with ease.
</p>
<Link to="/register">
Expand Down

0 comments on commit c25167d

Please sign in to comment.