-
Notifications
You must be signed in to change notification settings - Fork 3
/
demo.txt
71 lines (58 loc) · 1.68 KB
/
demo.txt
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
fontsize
--------
h1-52
h2-48
h3-36
h4-20
h5-16
h6-14
strong-12
color:
------
primary-color: 3C65F5
secondary-color: 05274F
Ayub khan
vs code project run code .....
git pull origin dev
yarn
yarn dev
vs code command........
step 1: invitation accepted
step 2: git clone repository-link (default clone main branch)
step 3: git pull origin dev (dev branch code local)
step 4: git checkout -b branch-name (exa: kawser-frontend)
step 5: write a code
step 6: git add .
step 7: git commit -m 'add a new feauted: banner section create'
step 8: git push origin branch-name (second time - git push)
step 9: pull request (github open click button "compare & pull request")
step 10: dev <= your-branch (select)
step 11: "create pull request" button click
// scrolling
const [isVisible, setIsVisible] = useState(false);
useEffect(() => {
const toggleVisibility = () => {
if (window.pageYOffset > 300) {
setIsVisible(true);
} else {
setIsVisible(false);
}
};
window.addEventListener("scroll", toggleVisibility);
return () => window.removeEventListener("scroll", toggleVisibility);
}, []);
const scrollToTop = () => {
window.scrollTo({
top: 0,
behavior: "smooth",
});
};
{/* {isVisible && (
<button
onClick={scrollToTop}
className="fixed xl:flex lg:flex md:flex sm:hidden hidden bottom-20 right-6 bg-blue text-white p-3 rounded-full hover:bg-blue-700 transition-all duration-300 hover:-translate-y-1"
>
<FaArrowUp />
</button>
)} */}
// scrolling