-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (84 loc) · 3.04 KB
/
Copy pathindex.html
File metadata and controls
95 lines (84 loc) · 3.04 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
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ToDo List App</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>ToDo List App</h1>
<p>Your ultimate productivity companion</p>
</header>
<nav>
<ul>
<li><a href="#features">Features</a></li>
<li><a href="#testimonials">Testimonials</a></li>
<li><a href="home.html">Get Started</a></li>
</ul>
</nav>
<section id="features">
<h2>Features</h2>
<ul>
<li>Easy task creation and management</li>
<li>Priority levels to organize tasks</li>
<li>Mark tasks as complete</li>
<li>Intuitive user interface</li>
</ul>
</section>
<section id="testimonials">
<h2>Testimonials</h2>
<div class="testimonial">
<blockquote>"This app has helped me stay organized and on top of my tasks. Highly recommended!"</blockquote>
<cite>- John Doe</cite>
</div>
<div class="testimonial">
<blockquote>"I love how simple and efficient this ToDo app is. Makes my life so much easier!"</blockquote>
<cite>- Jane Smith</cite>
</div>
</section>
<section id="cta">
<h2>Get Started Today</h2>
<p>Start organizing your tasks with our simple and intuitive ToDo List App.</p>
<a href="signup.html" class="btn">Sign Up Now</a>
</section>
<footer>
<p>© 2024 ToDo List App. All rights reserved.</p>
</footer>
<script>
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="img"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Scroll to top button
var scrollToTopBtn = document.querySelector(".scrollToTopBtn");
var rootElement = document.documentElement;
function handleScroll() {
// Do something on scroll
var scrollTotal = rootElement.scrollHeight - rootElement.clientHeight;
if ((rootElement.scrollTop / scrollTotal ) > 0.30) {
// Show button
scrollToTopBtn.classList.add("showBtn");
} else {
// Hide button
scrollToTopBtn.classList.remove("showBtn");
}
}
function scrollToTop() {
// Scroll to top logic
rootElement.scrollTo({
top: 0,
behavior: "smooth"
});
}
scrollToTopBtn.addEventListener("click", scrollToTop);
document.addEventListener("scroll", handleScroll);
</script>
</body>
</html>