-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcontribute.html
115 lines (97 loc) · 5.21 KB
/
contribute.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contribute to Frontend Snippets</title>
<link rel="stylesheet" href="./styles.css">
<link rel="shortcut icon" href="./assets/code.png" type="image/x-icon">
<style>
</style>
</head>
<body>
<nav>
<div class="nav_logo"><a href="./index.html"><img width="50px" src="./assets/code.png"></a></div>
<div class="nav_links">
<ul>
<a href="./docs.html">
<li>Docs 📄</li>
</a>
<a href="./contribute.html">
<li>Contribute 🚀</li>
</a>
</ul>
</div>
</nav>
<div class="contribute_container">
<h1 class="contribute_h1">About Frontend Snippets</h1>
<div style="margin-bottom: 20px;"></div>
<p class="contribute_p">Frontend Snippets is your go-to collection of bite-sized, ready-to-use code morsels for
web development.
Simplifying the complexities of front-end design, our repository houses an array of HTML and CSS snippets
</p>
<p class="contribute_p">The collaborative nature of our open-source platform invites developers to contribute
their own creations,
fostering a dynamic library that caters to diverse needs. </p>
<hr style="margin: 20px 0;" />
<h1 class="contribute_h1">How to Contribute to Frontend Snippets 🚀 </h1>
<div style="margin-bottom: 20px;"></div>
<!-- Subheading and explanation for Step 1 -->
<h2 class="contribute_h2">Step 1: 🍴 Fork the Repository</h2>
<p class="contribute_p">1. Go to the repository on GitHub.</p>
<p class="contribute_p">2. Click on the "Fork" button in the top right corner of the page.</p>
<div style="margin-bottom: 20px;"></div>
<!-- Subheading and explanation for Step 2 -->
<h2 class="contribute_h2">Step 2: 📥 Clone Your Forked Repository</h2>
<p class="contribute_p">1. Open your forked repository on GitHub.</p>
<p class="contribute_p">2. Click on the "Code" button and copy the repository URL.</p>
<p class="contribute_p">3. Open your terminal and run the following command:</p>
<code>git clone <i>paste-your-repository-url-here</i></code>
<div style="margin-bottom: 20px;"></div>
<!-- Subheading and explanation for Step 3 -->
<h2 class="contribute_h2">Step 3: 🌿 Create a Branch</h2>
<p class="contribute_p">1. Change into the repository directory using:</p>
<code>cd <i>your-repository-name</i></code>
<p class="contribute_p">2. Create a new branch with a meaningful name:</p>
<code>git checkout -b <i>feature-name</i></code>
<div style="margin-bottom: 20px;"></div>
<!-- Subheading and explanation for Step 1 -->
<h2 class="contribute_h2">Step 4: 🎨 Add Your Snippet</h2>
<p class="contribute_p">1. Go to the repository and find the folder called library.</p>
<p class="contribute_p">2. Add a folder and name it with your snippet (e.g., <code>my-awesome-navbar</code>).
</p>
<p class="contribute_p">3. Inside the folder, include <code>index.html</code>, <code>style.css</code>, and
<code>main.js</code> (if
needed).
</p>
<p class="contribute_p">4. Include a <code>readme.md</code> describing the component, attach a screenshot, and
include your name
(compulsory).</p>
<div style="margin-bottom: 20px;"></div>
<!-- Subheading and explanation for Step 2 -->
<h2 class="contribute_h2">Step 5: 📄 Update Documentation</h2>
<p class="contribute_p">2. Go back and find the <code>docs.html</code> page.</p>
<p class="contribute_p">3. Add your component name and your name to the list. (This helps the list keep
growing.)</p>
<div style="margin-bottom: 20px;"></div>
<!-- Subheading and explanation for Step 5 -->
<h2 class="contribute_h2">Step 6: 💾 Commit and Push Changes</h2>
<p class="contribute_p">1. Save your changes and stage them:</p>
<code>git add .</code>
<p class="contribute_p">2. Commit the changes:</p>
<code>git commit -m "Add my awesome snippet"</code>
<p class="contribute_p">3. Push the changes to your forked repository:</p>
<code>git push origin <i>feature-name</i></code>
<div style="margin-bottom: 20px;"></div>
<!-- Subheading and explanation for Step 6 -->
<h2 class="contribute_h2">Step 7: 🚀 Create a Pull Request</h2>
<p class="contribute_p">1. Go to your forked repository on GitHub.</p>
<p class="contribute_p">2. Click on the "New pull request" button.</p>
<p class="contribute_p">3. Set the base repository to the original repository.</p>
<p class="contribute_p">4. Set the base and compare branches accordingly.</p>
<p class="contribute_p">5. Click "Create pull request."</p>
<p class="contribute_p">6. Add a title and description for your pull request, then click "Create pull request."
</p>
</div>
</body>
</html>