Skip to content

Commit aab053f

Browse files
committed
buyme a coffe wedsite added
1 parent b4d471d commit aab053f

63 files changed

Lines changed: 8142 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Projects/BuyMeaCoffee/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

Projects/BuyMeaCoffee/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Introduction
2+
3+
The Buy Me Coffee website is a platform that allows content creators, artists, and other individuals to receive support and financial contributions from their fans and supporters. This README file provides an overview of the Buy Me Coffee website and instructions on how to set it up.
4+
5+
# Features
6+
7+
The Buy Me Coffee website offers the following key features:
8+
9+
1. Support Button: Users can create a support button for their profile or website, allowing their fans to make monetary contributions easily.
10+
11+
2. Customizable Profile: Users can create a personalized profile page where they can showcase their work, provide information about themselves, and share links to their social media profiles.
12+
13+
3. Multiple Payment Options: The website supports various payment methods, including credit cards, PayPal, and other popular payment gateways, making it convenient for supporters to contribute.
14+
15+
4. Transaction History: Users can view and manage their transaction history, allowing them to keep track of contributions and interact with their supporters.
16+
17+
5. Notifications: The website provides notifications to users whenever they receive a new contribution or when there are important updates related to their account.
18+
19+
# Installation and Setup
20+
21+
1. Clone the Repository
22+
2. Install Dependencies: npm install
23+
3. Start the Server: npm run dev
24+
4. Access the Website: localhost:5173
25+
26+
# Image
27+
28+
![Alt text](<public/Screenshot from 2023-07-04 21-26-36.png>)
29+
30+
# Video
31+
32+
[label](<public/Screencast from 04-07-23 09:37:48 PM IST.webm>)
33+
34+
# License
35+
36+
The Buy Me Coffee website is released under the MIT License.

Projects/BuyMeaCoffee/index.html

Lines changed: 336 additions & 0 deletions
Large diffs are not rendered by default.

Projects/BuyMeaCoffee/main.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
const app = document.querySelector("#apps");
2+
3+
app.addEventListener("click", function () {
4+
const appData = document.querySelector(".app__data");
5+
appData.classList.toggle("app__data__active");
6+
});
7+
8+
let lastKnownScrollPosition = 0;
9+
let ticking = false;
10+
11+
function doSomething(scrollPos) {
12+
// Do something with the scroll position
13+
if (window.scrollY > 300) {
14+
const img1 = document.querySelector("#img__1");
15+
img1.classList.remove("hide");
16+
img1.classList.add("animate__animated", "animate__backInLeft");
17+
}
18+
19+
if (window.scrollY > 900) {
20+
const donationdiv = document.querySelector(".donation_1");
21+
donationdiv.classList.add("animate__animated", "animate__backInRight");
22+
23+
donationdiv.classList.remove("hide");
24+
}
25+
if (window.scrollY > 1700) {
26+
const lower = document.querySelector(".donation_2");
27+
lower.classList.add("animate__animated", "animate__fadeInBottomRight");
28+
lower.classList.remove("hide");
29+
}
30+
}
31+
32+
document.addEventListener("scroll", (event) => {
33+
lastKnownScrollPosition = window.scrollY;
34+
35+
if (!ticking) {
36+
window.requestAnimationFrame(() => {
37+
doSomething(lastKnownScrollPosition);
38+
ticking = false;
39+
});
40+
41+
ticking = true;
42+
// console.log(lastKnownScrollPosition);
43+
}
44+
});

0 commit comments

Comments
 (0)