Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Cursor Animation to the Landing Page #80

Merged
merged 3 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions about.css
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@

.feature-card:hover {
transform: translateY(-10px);
cursor: pointer;
}

.feature-card i {
Expand Down
9 changes: 8 additions & 1 deletion contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,11 @@ text-align: left; /* Adjusts text alignment, optional */
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
z-index: 2;
position: relative;
}
}

footer {
padding: 10px;
background-color: #f0cd9e66;
text-align: center;
border: 4px solid #faebd7;
}
263 changes: 157 additions & 106 deletions contact.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
position: sticky;
height: 80px;
top: 0;
z-index: 1000;
z-index: 1;
}
.navbar .logo {
gap: 13px;
Expand Down Expand Up @@ -681,6 +681,7 @@
</style>
</head>
<body>
<div id="cursor"></div>
<!-- Navigation -->
<nav class="navbar">
<div class="logo">
Expand Down
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ tl.from(".nav-links li", {
stagger: 0.25,
duration: 1,
y: -30
})

const cursor = document.querySelector("#cursor");
const body = document.querySelector("body")
body.addEventListener("mousemove", function (e) {
gsap.to(cursor, {
x: e.x,
y: e.y,
duration: 0.5
})
})
2 changes: 1 addition & 1 deletion navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ body {
position: sticky;
height: 80px;
top: 0;
z-index: 1000;
z-index: 1;
}
.navbar .logo h2{
font-size: 2em;
Expand Down
10 changes: 9 additions & 1 deletion pricing.css
Original file line number Diff line number Diff line change
Expand Up @@ -376,4 +376,12 @@ width: 80%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: block; /* Ensures it behaves like a block-level element */
text-align: left; /* Adjusts text alignment, optional */
}
}


footer {
padding: 10px;
background-color: #f0cd9e66;
text-align: center;
border: 4px solid #faebd7;
}
190 changes: 113 additions & 77 deletions pricing.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="navbar.css">
<link rel="stylesheet" href="pricing.css">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<link rel="stylesheet" href="navbar.css" />
<link rel="stylesheet" href="pricing.css" />
<title>Pricing - Ajivika</title>
</head>
<body>

<!-- Navigation -->
<nav class="navbar">
<div class="logo">
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="logo">
<button class="image-button1">
<img src="./image.png" alt="Image Button1" class="image-icon1">
<img src="./image.png" alt="Image Button1" class="image-icon1" />
</button>
<h2>Ajivika</h2>
</div>
<!-- Floating Image Button -->
</div>
<!-- Floating Image Button -->

<!-- hamburger menu -->
<button class="hamburger" onclick="toggleMenu()">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
<!-- Navigation Links -->
<ul class="nav-links">
<li><a href="./index.html"><i class="fas fa-home"></i><span>Home</span></a></li>
<li><a href="./about.html"><i class="fas fa-address-card"></i> <span>About Us</span></a></li>
<li><a href="./contact.html"><i class="fas fa-envelope"></i> <span>Contact Us</span></a></li>
<li><a href="./pricing.html"><i class="fas fa-comments"></i><span>Go Pro</span></a></li>
<!-- hamburger menu -->
<button class="hamburger" onclick="toggleMenu()">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
<!-- Navigation Links -->
<ul class="nav-links">
<li>
<a href="./index.html"
><i class="fas fa-home"></i><span>Home</span></a
>
</li>
<li>
<a href="./about.html"
><i class="fas fa-address-card"></i> <span>About Us</span></a
>
</li>
<li>
<a href="./contact.html"
><i class="fas fa-envelope"></i> <span>Contact Us</span></a
>
</li>
<li>
<a href="./pricing.html"
><i class="fas fa-comments"></i><span>Go Pro</span></a
>
</li>
<!-- <li><a href="./login.html"><i class="fas fa-sign-in-alt"></i><span>Log In</span></a></li> -->
<li><a href="./register.html"><i class="fas fa-user-plus"></i> <span>Register</span></a></li>
<li><button class="translate-button" onclick="toggleTranslate()">🌐</button>
<div id="google_translate_element"></div></li>
<li><label class="theme-switch">
<input type="checkbox" class="theme-switch__checkbox">
<li>
<a href="./register.html"
><i class="fas fa-user-plus"></i> <span>Register</span></a
>
</li>
<li>
<button class="translate-button" onclick="toggleTranslate()">
🌐
</button>
<div id="google_translate_element"></div>
</li>
<li>
<label class="theme-switch">
<input type="checkbox" class="theme-switch__checkbox" />
<div class="theme-switch__container">
<div class="theme-switch__clouds"></div>
<div class="theme-switch__stars-container">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 55" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd" d="M135.831 3.00688C135.055 3.85027 134.111 4.29946 133 4.35447C134.111 4.40947 135.055 4.85867 135.831 5.71123C136.607 6.55462 136.996 7.56303 136.996 8.72727C136.996 7.95722 137.172 7.25134 137.525 6.59129C137.886 5.93124 138.372 5.39954 138.98 5.00535C139.598 4.60199 140.268 4.39114 141 4.35447C139.88 4.2903 138.936 3.85027 138.16 3.00688C137.384 2.16348 136.996 1.16425 136.996 0C136.996 1.16425 136.607 2.16348 135.831 3.00688ZM31 23.3545C32.1114 23.2995 33.0551 22.8503 33.8313 22.0069C34.6075 21.1635 34.9956 20.1642 34.9956 19C34.9956 20.1642 35.3837 21.1635 36.1599 22.0069C36.9361 22.8503 37.8798 23.2903 39 23.3545C38.2679 23.3911 37.5976 23.602 36.9802 24.0053C36.3716 24.3995 35.8864 24.9312 35.5248 25.5913C35.172 26.2513 34.9956 26.9572 34.9956 27.7273C34.9956 26.563 34.6075 25.5546 33.8313 24.7112C33.0551 23.8587 32.1114 23.4095 31 23.3545ZM0 36.3545C1.11136 36.2995 2.05513 35.8503 2.83131 35.0069C3.6075 34.1635 3.99559 33.1642 3.99559 32C3.99559 33.1642 4.38368 34.1635 5.15987 35.0069C5.93605 35.8503 6.87982 36.2903 8 36.3545C7.26792 36.3911 6.59757 36.602 5.98015 37.0053C5.37155 37.3995 4.88644 37.9312 4.52481 38.5913C4.172 39.2513 3.99559 39.9572 3.99559 40.7273C3.99559 39.563 3.6075 38.5546 2.83131 37.7112C2.05513 36.8587 1.11136 36.4095 0 36.3545ZM56.8313 24.0069C56.0551 24.8503 55.1114 25.2995 54 25.3545C55.1114 25.4095 56.0551 25.8587 56.8313 26.7112C57.6075 27.5546 57.9956 28.563 57.9956 29.7273C57.9956 28.9572 58.172 28.2513 58.5248 27.5913C58.8864 26.9312 59.3716 26.3995 59.9802 26.0053C60.5976 25.602 61.2679 25.3911 62 25.3545C60.8798 25.2903 59.9361 24.8503 59.1599 24.0069C58.3837 23.1635 57.9956 22.1642 57.9956 21C57.9956 22.1642 57.6075 23.1635 56.8313 24.0069ZM81 25.3545C82.1114 25.2995 83.0551 24.8503 83.8313 24.0069C84.6075 23.1635 84.9956 22.1642 84.9956 21C84.9956 22.1642 85.3837 23.1635 86.1599 24.0069C86.9361 24.8503 87.8798 25.2903 89 25.3545C88.2679 25.3911 87.5976 25.602 86.9802 26.0053C86.3716 26.3995 85.8864 26.9312 85.5248 27.5913C85.172 28.2513 84.9956 28.9572 84.9956 29.7273C84.9956 28.563 84.6075 27.5546 83.8313 26.7112C83.0551 25.8587 82.1114 25.4095 81 25.3545ZM136 36.3545C137.111 36.2995 138.055 35.8503 138.831 35.0069C139.607 34.1635 139.996 33.1642 139.996 32C139.996 33.1642 140.384 34.1635 141.16 35.0069C141.936 35.8503 142.88 36.2903 144 36.3545C143.268 36.3911 142.598 36.602 141.98 37.0053C141.372 37.3995 140.886 37.9312 140.525 38.5913C140.172 39.2513 139.996 39.9572 139.996 40.7273C139.996 39.563 139.607 38.5546 138.831 37.7112C138.055 36.8587 137.111 36.4095 136 36.3545ZM101.831 49.0069C101.055 49.8503 100.111 50.2995 99 50.3545C100.111 50.4095 101.055 50.8587 101.831 51.7112C102.607 52.5546 102.996 53.563 102.996 54.7273C102.996 53.9572 103.172 53.2513 103.525 52.5913C103.886 51.9312 104.372 51.3995 104.98 51.0053C105.598 50.602 106.268 50.3911 107 50.3545C105.88 50.2903 104.936 49.8503 104.16 49.0069C103.384 48.1635 102.996 47.1642 102.996 46C102.996 47.1642 102.607 48.1635 101.831 49.0069Z" fill="currentColor"></path>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 144 55"
fill="none"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M135.831 3.00688C135.055 3.85027 134.111 4.29946 133 4.35447C134.111 4.40947 135.055 4.85867 135.831 5.71123C136.607 6.55462 136.996 7.56303 136.996 8.72727C136.996 7.95722 137.172 7.25134 137.525 6.59129C137.886 5.93124 138.372 5.39954 138.98 5.00535C139.598 4.60199 140.268 4.39114 141 4.35447C139.88 4.2903 138.936 3.85027 138.16 3.00688C137.384 2.16348 136.996 1.16425 136.996 0C136.996 1.16425 136.607 2.16348 135.831 3.00688ZM31 23.3545C32.1114 23.2995 33.0551 22.8503 33.8313 22.0069C34.6075 21.1635 34.9956 20.1642 34.9956 19C34.9956 20.1642 35.3837 21.1635 36.1599 22.0069C36.9361 22.8503 37.8798 23.2903 39 23.3545C38.2679 23.3911 37.5976 23.602 36.9802 24.0053C36.3716 24.3995 35.8864 24.9312 35.5248 25.5913C35.172 26.2513 34.9956 26.9572 34.9956 27.7273C34.9956 26.563 34.6075 25.5546 33.8313 24.7112C33.0551 23.8587 32.1114 23.4095 31 23.3545ZM0 36.3545C1.11136 36.2995 2.05513 35.8503 2.83131 35.0069C3.6075 34.1635 3.99559 33.1642 3.99559 32C3.99559 33.1642 4.38368 34.1635 5.15987 35.0069C5.93605 35.8503 6.87982 36.2903 8 36.3545C7.26792 36.3911 6.59757 36.602 5.98015 37.0053C5.37155 37.3995 4.88644 37.9312 4.52481 38.5913C4.172 39.2513 3.99559 39.9572 3.99559 40.7273C3.99559 39.563 3.6075 38.5546 2.83131 37.7112C2.05513 36.8587 1.11136 36.4095 0 36.3545ZM56.8313 24.0069C56.0551 24.8503 55.1114 25.2995 54 25.3545C55.1114 25.4095 56.0551 25.8587 56.8313 26.7112C57.6075 27.5546 57.9956 28.563 57.9956 29.7273C57.9956 28.9572 58.172 28.2513 58.5248 27.5913C58.8864 26.9312 59.3716 26.3995 59.9802 26.0053C60.5976 25.602 61.2679 25.3911 62 25.3545C60.8798 25.2903 59.9361 24.8503 59.1599 24.0069C58.3837 23.1635 57.9956 22.1642 57.9956 21C57.9956 22.1642 57.6075 23.1635 56.8313 24.0069ZM81 25.3545C82.1114 25.2995 83.0551 24.8503 83.8313 24.0069C84.6075 23.1635 84.9956 22.1642 84.9956 21C84.9956 22.1642 85.3837 23.1635 86.1599 24.0069C86.9361 24.8503 87.8798 25.2903 89 25.3545C88.2679 25.3911 87.5976 25.602 86.9802 26.0053C86.3716 26.3995 85.8864 26.9312 85.5248 27.5913C85.172 28.2513 84.9956 28.9572 84.9956 29.7273C84.9956 28.563 84.6075 27.5546 83.8313 26.7112C83.0551 25.8587 82.1114 25.4095 81 25.3545ZM136 36.3545C137.111 36.2995 138.055 35.8503 138.831 35.0069C139.607 34.1635 139.996 33.1642 139.996 32C139.996 33.1642 140.384 34.1635 141.16 35.0069C141.936 35.8503 142.88 36.2903 144 36.3545C143.268 36.3911 142.598 36.602 141.98 37.0053C141.372 37.3995 140.886 37.9312 140.525 38.5913C140.172 39.2513 139.996 39.9572 139.996 40.7273C139.996 39.563 139.607 38.5546 138.831 37.7112C138.055 36.8587 137.111 36.4095 136 36.3545ZM101.831 49.0069C101.055 49.8503 100.111 50.2995 99 50.3545C100.111 50.4095 101.055 50.8587 101.831 51.7112C102.607 52.5546 102.996 53.563 102.996 54.7273C102.996 53.9572 103.172 53.2513 103.525 52.5913C103.886 51.9312 104.372 51.3995 104.98 51.0053C105.598 50.602 106.268 50.3911 107 50.3545C105.88 50.2903 104.936 49.8503 104.16 49.0069C103.384 48.1635 102.996 47.1642 102.996 46C102.996 47.1642 102.607 48.1635 101.831 49.0069Z"
fill="currentColor"
></path>
</svg>
</div>
<div class="theme-switch__circle-container">
Expand All @@ -55,74 +91,74 @@ <h2>Ajivika</h2>
</div>
</div>
</div>
</label></li>

</ul>

</nav>
<button class="back-button" onclick="window.history.back();">
<i class="fas fa-arrow-left"></i>
</button>
</label>
</li>
</ul>
</nav>
<button class="back-button" onclick="window.history.back();">
<i class="fas fa-arrow-left"></i>
</button>

<!-- Pricing Section -->
<section class="pricing-section">
<div class="about-box">
<h1 style="text-align: center;">Our Pricing Plans</h1>
<p style="text-align: center;">Choose a plan that suits your needs the best.</p>
<!-- Pricing Section -->
<section class="pricing-section">
<div class="about-box">
<h1 style="text-align: center">Our Pricing Plans</h1>
<p style="text-align: center">
Choose a plan that suits your needs the best.
</p>

<div class="pricing-cards">
<div class="pricing-card">
<div class="pricing-cards">
<div class="pricing-card">
<h3>Basic Plan</h3>
<p class="price">$10/month</p>
<ul>
<li>Access to basic features</li>
<li>Email support</li>
<li>1 GB storage</li>
<li>Access to basic features</li>
<li>Email support</li>
<li>1 GB storage</li>
</ul>
<button>Choose Plan</button>
</div>
</div>

<div class="pricing-card">
<div class="pricing-card">
<h3>Standard Plan</h3>
<p class="price">$20/month</p>
<ul>
<li>Access to all features</li>
<li>Priority email support</li>
<li>10 GB storage</li>
<li>Access to all features</li>
<li>Priority email support</li>
<li>10 GB storage</li>
</ul>
<button>Choose Plan</button>
</div>
</div>

<div class="pricing-card">
<div class="pricing-card">
<h3>Premium Plan</h3>
<p class="price">$30/month</p>
<ul>
<li>Access to premium features</li>
<li>24/7 support</li>
<li>Unlimited storage</li>
<li>Access to premium features</li>
<li>24/7 support</li>
<li>Unlimited storage</li>
</ul>
<button>Choose Plan</button>
</div>
</div>
</div>
</div>
</section>
<!-- Floating Image Button -->
<button class="image-button">
<img src="./image.png" alt="Image Button" class="image-icon">
</button>
</div>
</section>
<!-- Floating Image Button -->
<button class="image-button">
<img src="./image.png" alt="Image Button" class="image-icon" />
</button>

<!-- Footer -->
<footer>
<p style="color: #d6a52b;">&copy; 2024 Ajivika™. All rights reserved.</p>
<p>&copy; 2024 Ajivika™. All rights reserved.</p>
</footer>

<script>
// hamburger menu js
function toggleMenu() {
const navLinks = document.querySelector('.nav-links');
navLinks.classList.toggle('active');
}
// hamburger menu js
function toggleMenu() {
const navLinks = document.querySelector(".nav-links");
navLinks.classList.toggle("active");
}
</script>

</body>
</body>
</html>
13 changes: 13 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,16 @@ margin-bottom: 0.5rem;



#cursor{
height: 20px;
width:20px;
background-color: rgba(234, 169, 84, 0.845);
border-radius: 50%;
position: fixed;
font-size: 7px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
Loading