-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhome.html
More file actions
91 lines (85 loc) · 3.92 KB
/
home.html
File metadata and controls
91 lines (85 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rent Relief - Home</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="home.css">
</head>
<body>
<div class="bg"></div>
<nav class="navbar navbar-expand-lg navbar-dark">
<a class="navbar-brand" href="#">
<img src="logo.png" alt="Rent Relief Logo" class="logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="main.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="login.php">Login</a>
</li>
<li class="nav-item">
<a class="nav-link" href="register.php">Register</a>
</li>
</ul>
</div>
</nav>
<header class="hero-section">
<div class="container text-center">
<h1 class="display-4">Welcome to Rent Relief</h1>
<p class="lead">Your one-stop solution for finding rental properties and flatmates</p>
<a href="login.php" class="btn btn-primary btn-lg">Get Started</a>
</div>
</header>
<section class="features-section py-5">
<div class="container">
<div class="row text-center">
<div class="col-md-4">
<div class="feature-box">
<img src="search.png" alt="Property Search" class="feature-icon">
<h3>Property Search</h3>
<p class="feature-text">Find rental properties using advanced filters and an interactive map view.</p>
</div>
</div>
<div class="col-md-4">
<div class="feature-box">
<img src="upload.png" alt="Post Listings" class="feature-icon">
<h3>Post Listings</h3>
<p class="feature-text">Easily post and manage your room advertisements.</p>
</div>
</div>
<div class="col-md-4">
<div class="feature-box">
<img src="profile.png" alt="User Accounts" class="feature-icon">
<h3>User Accounts</h3>
<p class="feature-text">Manage your profile, update preferences, and save favorite listings.</p>
</div>
</div>
</div>
</div>
</section>
<footer class="footer-section py-4">
<div class="container text-center">
<p>© 2024 Rent Relief. All rights reserved.</p>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
const images = ["image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg", "image5.jpg"];
let currentImageIndex = 0;
function changeBackgroundImage() {
currentImageIndex = (currentImageIndex + 1) % images.length;
document.querySelector('.bg').style.backgroundImage = `url(${images[currentImageIndex]})`;
}
setInterval(changeBackgroundImage, 5000);
</script>
</body>
</html>