Skip to content

Commit

Permalink
added curser
Browse files Browse the repository at this point in the history
  • Loading branch information
DharshiBalasubramaniyam committed Jun 27, 2024
1 parent a908e6f commit 23b5985
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
4 changes: 3 additions & 1 deletion about/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,13 @@
.right .card {
display: flex;
align-items: center;
gap: 25px;
gap: 30px;
}
.right .card i {
font-size: 40px;
color: var(--main-color);
width: 40px;
height: 40px
}
.right .card h4 {
font-weight: 600;
Expand Down
28 changes: 23 additions & 5 deletions about/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,27 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Us | AgriLearnNetwork</title>
<link rel="stylesheet" href="../style.css">

<!-- custom styles -->
<link rel="stylesheet" href="../style.css">
<link rel="stylesheet" href="about.css">
<link rel="stylesheet" href="../cursor/style.css">


<!-- font family -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
rel="stylesheet">

<!-- icons -->
<link href="https://unpkg.com/[email protected]/css/boxicons.min.css" rel="stylesheet" />
<script src="https://kit.fontawesome.com/c732ec9339.js" crossorigin="anonymous"></script>

<title>About Us | AgriLearnNetwork</title>
</head>

<body>

<!-- header -->
<header class="header">
<img src="../icon.png" alt="logo" style="height: 50px; width: 50px; margin-right: 10px;" />

Expand Down Expand Up @@ -45,6 +54,7 @@ <h3>AgriLearnNetwork</h3>
</header>


<!-- about us content -->
<div class="hero">

<video class="hero-video" autoplay muted loop>
Expand Down Expand Up @@ -103,6 +113,7 @@ <h4>Harvesting and Farm Management</h4>

</div>

<!-- footer -->
<footer class="footer">
<div class="footer-grid">
<div class="footer-title">
Expand Down Expand Up @@ -183,6 +194,7 @@ <h2>Quick Links</h2>

<script>

// back to top control
window.addEventListener('scroll', function () {
var scrollPosition = window.scrollY;
var backToTopButton = document.getElementById('backtoTop');
Expand All @@ -194,7 +206,7 @@ <h2>Quick Links</h2>
}
});

// mode toggle function
// theme toggle control
document.addEventListener("DOMContentLoaded", function () {
const themeToggle = document.querySelector(".theme-toggle");
const body = document.body;
Expand All @@ -218,7 +230,7 @@ <h2>Quick Links</h2>
});
});

//navbar for small screen
// navbar control
let menuIcon = document.querySelectorAll('#menu-icon');
let navbar = document.querySelectorAll('.navbar');
let navContact = document.querySelectorAll('#nav--contact');
Expand All @@ -232,7 +244,7 @@ <h2>Quick Links</h2>
}
});

// Add an event listener to navbar links
// Navbar links control
document.querySelectorAll('.navbar a').forEach(link => {
link.addEventListener('click', () => {
// Remove 'active' class from navbar
Expand All @@ -246,6 +258,12 @@ <h2>Quick Links</h2>
});
});

var cursor = document.querySelector(".cursor");
var cursor2 = document.querySelector(".cursor2");
document.addEventListener("mousemove", function (e) {
cursor.style.cssText = cursor2.style.cssText = "left: " + e.clientX + "px; top: " + e.clientY + "px;";
});

</script>
<script type="text/javascript">
(function (d, t) {
Expand Down

0 comments on commit 23b5985

Please sign in to comment.