Skip to content

Commit

Permalink
Merge pull request Anjaliavv51#261 from YooAshu/aboutUs
Browse files Browse the repository at this point in the history
About us
  • Loading branch information
gauravsingh1281 authored Oct 7, 2024
2 parents 43c4eb4 + 06beae1 commit f4e4818
Show file tree
Hide file tree
Showing 11 changed files with 1,220 additions and 64 deletions.
3 changes: 2 additions & 1 deletion index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

@import "tailwindcss/components";

@import "tailwindcss/utilities";
@import "tailwindcss/utilities";

1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="https://unpkg.com/mouse-follower@1/dist/mouse-follower.min.css">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
Expand Down
14 changes: 14 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"preview": "vite preview"
},
"dependencies": {
"gsap": "^3.12.5",
"lottie-react": "^2.4.0",
"mouse-follower": "^1.1.2",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
1,120 changes: 1,120 additions & 0 deletions src/assets/Images/about-1.svg
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/about-2.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/about-3.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/about-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/components/AboutUs-section/AboutCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const AboutCard = ({ image, heading, desc }) => {

return (
<div className='flex justify-center h-[45vh] gap-20 overflow-x-hidden'>
<div className='w-[30%]'
>
<img src={image} className='h-full' />
</div>
<div className='w-[40%] flex flex-col justify-center gap-5'
>
<div className='text-2xl font-bold '>{heading}</div>
<div className='text-lg'>{desc}</div>
</div>
</div>
);
}
const AboutCard2 = ({ image, heading, desc }) => {
return (
<div className='flex justify-center h-[45vh] gap-20 overflow-x-hidden'>

<div className='w-[40%] flex flex-col justify-center gap-5'
>
<div className='text-2xl font-bold '>{heading}</div>
<div className='text-lg'>{desc}</div>
</div>
<div className='w-[30%]'
>
<img src={image} className='h-full' />
</div>
</div>
);
}

export { AboutCard, AboutCard2 };
7 changes: 6 additions & 1 deletion src/components/AboutUs-section/AboutUs-section.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

.aboutUs-section {
text-align: center;
padding-bottom: 150px;
Expand All @@ -23,4 +24,8 @@

#AboutUs {
margin-bottom: 5rem;
}
}

.mf-cursor::before {
transform: scale(2);
}
103 changes: 41 additions & 62 deletions src/components/AboutUs-section/AboutUs.jsx
Original file line number Diff line number Diff line change
@@ -1,80 +1,59 @@
import { useState } from "react";
import { useState,useEffect,useRef } from "react";
import rentBoardImg from "../.././assets/Images/rent-board.png";
import "./AboutUs-section.css";
import Lottie from "lottie-react";
import rent from "./rent.json";
import about1 from "../../assets/Images/about-1.svg"
import about2 from "../../assets/Images/about-2.jpg"
import about3 from "../../assets/Images/about-3.jpg"
import about4 from "../../assets/Images/about-4.jpg"

const AboutUs = () => {
const [gradientStyle, setGradientStyle] = useState({});

// Function to handle mouse movement and update gradient
const handleMouseMove = (e) => {
const { offsetX, offsetY, target } = e.nativeEvent;
const { clientWidth, clientHeight } = target;
import { AboutCard, AboutCard2 } from './AboutCard';

// Calculate percentage position of the mouse within the card
const xPercent = (offsetX / clientWidth) * 100;
const yPercent = (offsetY / clientHeight) * 100;

// Set radial gradient color based on mouse position
setGradientStyle({
background: `radial-gradient(circle at ${xPercent}% ${yPercent}%, #FFB74D, #FFAB91, #FFF9C4)`,
});
};
const AboutUs = () => {


// Reset gradient when mouse leaves the section
const handleMouseLeave = () => {
setGradientStyle({
background: "#EBB4B6", // Default background color (soft mint)
});
};


return (
<div className="aboutUs-section">
<div id="AboutUs"></div>
<span className="text-3xl md:text-4xl font-semibold text-[#312F2F] text-center pt-10">
About Us
</span>
<div
className="row flex flex-col justify-center items-center lg:flex-row m-[5%] rounded-3xl transition-all duration-500 ease-in-out transform hover:scale-105"
onMouseMove={handleMouseMove}
onMouseLeave={handleMouseLeave}
style={{
...gradientStyle,
background: gradientStyle.background
? gradientStyle.background
: "#D1F2EB", // Default background color
}}
>
<Lottie
className="rent-board-img text-primaryGreen w-[80%] lg:w-[50%]"
animationData={rent}
loop={true}
/>
<div className="w-full lg:w-[50%] p-[5%]">
<p className="paragraph text-justify text-[#312F2F] leading-6 md:leading-8 ">
Rentalog is a web application that makes it easy for landlords to
manage their rental properties. With Rentalog, landlords can keep
track of important information about their renters, including their
names, addresses, and rental payment history. This information is
stored in a secure and organized manner, so landlords can access it
whenever they need to. In addition to keeping track of renters&apos;
information, Rentalog also makes it easy for landlords to collect and
track monthly rent payments. This way, landlords always know exactly
how much money they&apos;re earning from their properties and can make
informed decisions about their business. Using Rentalog is simple and
straightforward. All of the information is organized in a
user-friendly interface, so landlords can access what they need
quickly and easily. And, if they ever have questions or need help,
they can reach out to Rentalog&apos;s dedicated support team for
assistance. Overall, Rentalog is a convenient and efficient tool for
landlords who want to keep their rental business organized and running
smoothly.
</p>
<div id="AboutUs" ></div>

<div className="flex flex-col md:flex-row items-start w-full">

{/* About Us Content */}
<div className="md:w-full flex flex-col">
<h2 className=" text-2xl md:text-5xl font-bold my-3 bg-gradient-to-r from-yellow-400 via-red-500 to-pink-500 bg-clip-text text-transparent" >
About Us
</h2>

<div className='flex flex-col'>
<AboutCard
image={about1}
heading={"Simplified Rental Property Management"}
desc={"Rentalog is a web application designed to simplify rental property management for landlords. With an intuitive interface, it helps landlords keep track of essential information about their properties and tenants in a secure and organized way."} />
<AboutCard2
image={about2}
heading={"Efficient Tenant Management"}
desc={"Landlords can easily store and access important details about their tenants, including names, addresses, and rental payment history. This ensures that all relevant information is readily available, helping landlords stay on top of their responsibilities."} />
<AboutCard
image={about3}
heading={"Rent Collection and Financial Tracking"}
desc={"Rentalog streamlines the process of collecting and tracking monthly rent payments. By providing clear financial insights, landlords can effortlessly monitor their income and make data-driven decisions to optimize their rental business."} />
<AboutCard2
image={about4}
heading={"User-Friendly Interface & Support"}
desc={"Rentalog’s user-friendly interface makes it simple to navigate and access all necessary information quickly. Plus, landlords can rely on the dedicated support team for any questions or assistance, ensuring a smooth and hassle-free experience."} />
</div>


</div>
</div>
</div>
);
};



export default AboutUs;

0 comments on commit f4e4818

Please sign in to comment.