forked from dohinaf/basic-icecream-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
97 lines (85 loc) · 3.59 KB
/
contact.html
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
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us - Responsive Ice Cream Website</title>
<!-- Font Awesome CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
</head>
<body>
<!-- Header Starts Here -->
<header class="header">
<a href="#" class="logo">
<img src="https://purepng.com/public/uploads/large/purepng.com-ice-creamice-creamcreamfrozensweet-1411527617895aiuhx.png" alt="Logo">
</a>
<nav class="navbar">
<a href="index.html#home">Home</a>
<a href="index.html#about">About</a>
<a href="index.html#menu">Menu</a>
<a href="index.html#review">Review</a>
<a href="index.html#blogs">Blogs</a>
<a href="index.html#my-order-btn">My Order</a>
<a href="contact.html" class="active">Contact Us</a>
</nav>
<div class="icons">
<div class="fas fa-heart" id="wishlist-btn"></div>
<div class="fas fa-search" id="search-btn"></div>
<div class="fas fa-shopping-cart" id="cart-btn"></div>
</div>
</header>
<!-- Header Ends Here -->
<!-- Contact Section Starts Here -->
<div class="main-content">
<!-- Your other content goes here, including the contact form -->
<div class="contact-section contact-page">
<h2>Contact Us</h2>
<form>
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
<label for="message">Message</label>
<textarea id="message" name="message" required></textarea>
<button type="submit" class="submit-button">Send Message</button>
</form>
</div>
</div>
<!-- Contact Section Ends Here -->
<!-- Footer Section Starts Here -->
<section class="footer" id="footer">
<div class="share">
<a href="#" class="fab fa-facebook-f"></a>
<a href="#" class="fa-brands fa-x-twitter"></a>
<a href="#" class="fab fa-instagram"></a>
<a href="#" class="fab fa-linkedin"></a>
<a href="#" class="fab fa-pinterest"></a>
</div>
<div class="credit">
<p>created by <span>Dohina</span> | all rights reserved</p>
</div>
</section>
<!-- Footer Section Ends Here -->
<!-- JavaScript File -->
<script src="script.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
gsap.from(".contact-form", { opacity: 0, y: 50, duration: 1.5, ease: "power2.out" });
// Animate buttons on hover for scaling effect
const buttons = document.querySelectorAll("button");
buttons.forEach(button => {
button.addEventListener('mouseover', () => {
gsap.to(button, { scale: 1.1, duration: 0.2 });
});
button.addEventListener('mouseout', () => {
gsap.to(button, { scale: 1, duration: 0.2 });
});
});
});
</script>
</body>
</html>