-
Notifications
You must be signed in to change notification settings - Fork 0
/
contributor.html
195 lines (180 loc) · 5.86 KB
/
contributor.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ICYCO - Contributors</title>
<link rel="stylesheet" href="styles/contributor.css" />
<link rel="stylesheet" href="styles/cursor.css">
<link rel="stylesheet" href="styles/styles.css">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css"
/>
<style>
html {
scroll-behavior: smooth;
}
body {
background-color: white;
}
.top-btn {
display: none;
width: 50px;
height: 50px;
position: fixed;
bottom: 10px;
right: 0px;
background-color: #59038a;
color: #fff;
padding: 2px;
border: none;
margin-right: 36px;
border-radius: 50%;
cursor: pointer;
}
.top-btn:hover {
background-color: #f689f2;
}
.pagination-btns {
margin: 50px 0px;
}
.pagination-btns button.btn {
border-radius: 5px;
outline: none;
margin: 5px 10px;
border: 1px solid rgb(146, 110, 110);
}
.pagination-btns button.btn,
.pagination-btns button.btn i.bi {
font-size: 2rem;
}
</style>
</head>
<body>
<!-- cursor -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<!-- nav bar -->
<div class="nav-bar">
<div class="logo">
<img src="./images/logo.png" alt="icyco-logo" height="40px" width="40px">
<a href="">IcyCo</a>
</div>
<div class="nav-links">
<a href="./index.html" class="link">home</a>
<a href="./products.html" class="link">products</a>
<a href="./delivery.html" class="link">Delivery</a>
<a href="./dine-in.html" class="link">Dine In</a>
<a href="./catering.html" class="link">Catering</a>
</div>
<div class="icons">
<div class="icon">
<a href="./login.html"><i class="fa fa-user" aria-hidden="true"></i></a>
</div>
<div class="icon">
<span class="i"><i class="fa fa-shopping-cart cart-icon" aria-hidden="true"></i> <span
class="no-of-cart-items">0</span></span>
</div>
<div class="icon">
<i class="fa fa-bars menu" aria-hidden="true"></i>
</div>
</div>
</div>
<!-- Cart -->
<div class="cart">
<i class="fa fa-times close-cart" aria-hidden="true"></i>
<h1>Your Cart</h1>
<div class="no-empty-cart">
<ul class="cart-list-items">
</ul>
<div>
<div class="total">Sub Total: <span class="sub-total">$0</span></div>
<button>Check out</button>
</div>
</div>
<div class="empty-cart active">
<p>No items in the cart!</p>
</div>
</div>
<div class="container">
<div class="toggle-container aos-init aos-animate" data-aos="fade-down">
<input id="themeToggle" class="toggle" type="checkbox" />
</div>
<h1 class="title">Our Contributors</h1>
<div id="contributors" class="contributors-grid"></div>
</div>
<button class="top-btn" id="goToTopBtn" onclick="goToTop()">
<i class="fa-solid fa-chevron-up" style="color: #ffffff"></i>
</button>
<script>
// Get the button
var mybutton = document.getElementById("goToTopBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function () {
scrollFunction();
};
function scrollFunction() {
if (
document.body.scrollTop > 20 ||
document.documentElement.scrollTop > 20
) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function goToTop() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<script src="script/contributor.js"></script>
<script>
window.addEventListener("scroll", function () {
const winScroll =
document.body.scrollTop || document.documentElement.scrollTop;
const height =
document.documentElement.scrollHeight -
document.documentElement.clientHeight;
const scrolled = (winScroll / height) * 100;
document.getElementById("progress-bar").style.width = scrolled + "%";
});
</script>
<script src="script/cursor.js"></script>
</body>
</html>