Skip to content

Commit

Permalink
Merge pull request Anjaliavv51#88 from faid0/main
Browse files Browse the repository at this point in the history
fixed scrolling behavior
  • Loading branch information
gauravsingh1281 authored Oct 25, 2023
2 parents e700342 + 34fe09e commit 90d7a1e
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 12 deletions.
8 changes: 8 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
font-family: "Montserrat", sans-serif;
}

html {
scroll-behavior: smooth;
}

.placeholder-text {
@apply bg-primaryGreen rounded-2xl p-3 text-xs placeholder:text-[#4C4949];
}

.mb-0{
margin-bottom: 0;
}
4 changes: 4 additions & 0 deletions src/components/AboutUs-section/AboutUs-section.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
line-height: 28.38px;
}

#AboutUs {
margin-bottom: 5rem;
}

@media (max-width:768px) {
.aboutUs-section .row .paragraph {
max-width: 550px;
Expand Down
3 changes: 2 additions & 1 deletion src/components/AboutUs-section/AboutUs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import rentBoardImg from "../.././assets/Images/rent-board.png";
import "./AboutUs-section.css";
const AboutUs = () => {
return (
<div id="AboutUs" className="aboutUs-section">
<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 md:flex-row">
<img
Expand Down
3 changes: 3 additions & 0 deletions src/components/Contact-section/Contact-section.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#ContactUs {
margin-bottom: 5rem;
}
4 changes: 3 additions & 1 deletion src/components/Contact-section/Contact.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import ContactForm from "./ContactForm";
import GoogleMap from './GoogleMap';
import "./Contact-section.css";

const Contact = () => {
return (
<>
<header id="ContactUs" className="flex justify-center align-middle my-20">
<div id="ContactUs"></div>
<header className="flex justify-center align-middle my-20 mt-0">
<h1 className="text-5xl font-bold tracking-wider text-text-black font-monsterrat">
Contact Us
</h1>
Expand Down
1 change: 1 addition & 0 deletions src/components/Header-section/Header-section.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
background-color: #262626;
background-size: cover;
position: relative;
margin-bottom: 0;
}

.header-section li {
Expand Down
1 change: 1 addition & 0 deletions src/components/Header-section/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Header = () => {
<>
<div className="header-section mb-[80px]">
<Navbar />
<div id='home'></div>
<div className="header-text">
<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 details, their payment history, and much more with ease.</p>
Expand Down
16 changes: 8 additions & 8 deletions src/components/Header-section/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ const Navbar = () => {
<div className="mt-4 h-[2px] w-600 bg-textWhite rounded-full"></div>

<div className="flex flex-col gap-8 justify-center items-center mt-10">
<a href="/" aria-current="page"><div className="text-textWhite" onClick={() => { setShowMenu('')}}>HOME</div></a>
<a href="#home" aria-current="page"><div className="text-textWhite" onClick={() => { setShowMenu('')}}>HOME</div></a>
<a href="#Service" aria-current="page"><div className="text-textWhite" onClick={() => { setShowMenu('')}}>RENTALS</div></a>
<a href="#AboutUs" aria-current="page"><div className="text-textWhite" onClick={() => { setShowMenu('')}}>ABOUT</div></a>
<a href="#ContactUs" aria-current="page"><div className="text-textWhite" onClick={() => { setShowMenu('')}}>CONTACT</div></a>
<a href="#Service" aria-current="page"><div className="text-textWhite" onClick={() => { setShowMenu('')}}>RENTALS</div></a>
<div className="text-gray-dark">
<Link to="/login">
<button
Expand Down Expand Up @@ -135,10 +135,15 @@ const Navbar = () => {
>
<ul className="flex flex-row lg:gap-10 md:gap-6 font-medium">
<li>
<a href="/" aria-current="page" className="hover:text-xl hover:shadow-lg transition duration-300">
<a href="#home" aria-current="page" className="hover:text-xl hover:shadow-lg transition duration-300">
HOME
</a>
</li>
<li>
<a href="#Service" aria-current="page" className="hover:text-xl hover:shadow-md transition duration-300">
RENTALS
</a>
</li>
<li>
<a href="#AboutUs" aria-current="page" className="hover:text-xl hover:shadow-md transition duration-300">
ABOUT
Expand All @@ -149,11 +154,6 @@ const Navbar = () => {
CONTACT
</a>
</li>
<li>
<a href="#Service" aria-current="page" className="hover:text-xl hover:shadow-md transition duration-300">
RENTALS
</a>
</li>
</ul>
</div>

Expand Down
3 changes: 3 additions & 0 deletions src/components/Services-section/Services-section.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Service {
margin-bottom: 80px;
}
7 changes: 5 additions & 2 deletions src/components/Services-section/Services-section.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import ServicesCard from "./ServicesCard";
import ourServices from "./services";
import ServicesAvailableIn from "./ServicesAvailableIn";
import placeName from "./placeName";
import './Services-section.css'

const Services = () => {
return (
<>
<h1 id="Service" className=" text-4xl md:text-5xl font-semibold text-[#312F2F] text-center pt-10">
<div id="Service"></div>
<h1 className=" text-4xl md:text-5xl font-semibold text-[#312F2F] text-center pt-10">
Our Services Includes
</h1>
<div className="grid grid-cols-1 md:grid-cols-2 gap-10 my-10 md:mx-36 sm:mx-24 mx-16">
Expand All @@ -15,7 +18,7 @@ const Services = () => {
})
}
</div>
<div className="bg-[#D1F2EB] my-20 ">
<div className="bg-[#D1F2EB] my-20 mb-0">
<h1 className="text-3xl md:text-4xl font-semibold text-[#312F2F] text-center py-10">
Our Services are available in
</h1>
Expand Down

0 comments on commit 90d7a1e

Please sign in to comment.