-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
260 lines (250 loc) · 10.5 KB
/
index.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="shortcut icon"
href="./assets/github-logo.png"
type="image/x-icon"
/>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
screens: {
"media-16": "1667px",
"media-15": "1567px",
"media-12": "1267px",
"media-10": "1067px",
"media-9": "967px",
"media-8": "867px",
"media-7": "767px",
"media-5": "567px",
"media-4": "467px",
},
extend: {
colors: {
"button-primary": "#238636",
"button-primary-hover": "#29903b",
"button-primary-active": "#2e9a40",
"button-primary-disabled": "#105823",
"button-primary-color": "#fff",
"highlight-color": "#f78166",
},
},
},
};
</script>
<style type="text/tailwindcss">
@layer utilities {
.keyword{
color: #f78166;
}
.flag{
color: #71717a;
}
.comment {
color: #9198a1;
}
.string{
color: #a5d6f0;
}
}
</style>
<title>GitHub: Learn what matters 🚀</title>
</head>
<body class="bg-black text-white overflow-x-hidden scroll-smooth">
<div class="flex flex-col gap-2 p-6 media-7:p-10 relative">
<div id="navbar" class="flex items-center justify-between w-full">
<h1 class="text-xl media-5:text-3xl media-9:text-6xl font-semibold">
GitHub: Learn what matters 🚀
</h1>
<div
class="hidden h-5 w-5 media-7:h-7 media-7:w-7 cursor-pointer mt-1"
onclick="handleSearch()"
>
<img src="./assets/search.svg" alt="" />
</div>
</div>
<hr class="border-none bg-highlight-color mt-3 mb-6 h-[2px] w-full" />
<!-- landing page -->
<div
class="flex flex-col media-12:flex-row h-full w-full overflow-hidden bg-zinc-900 rounded-md"
>
<!-- left container -->
<div
class="w-full media-12:w-1/2 media-12:h-inherit flex flex-col justify-center text-2xl px-6 pt-6 media-4:px-10 media-4:pt-10 media-12:pb-8"
>
<div
class="font-semibold text-3xl text-left media-12:text-center rounded-md mb-6 cursor-auto w-full"
>
GitHub Mastery Bootcamp - Day 2
</div>
<div class="text-zinc-400 mb-7 text-base media-5:text-xl">
This session covered the fundamentals of Git and GitHub, providing clear steps to set up, manage, and deploy your projects with ease.
</div>
<div
class="grid grid-cols-2 bg-zinc-800 rounded p-5 media-5:px-7 media-5:py-5 gap-1"
>
<strong class="text-highlight-color text-base media-5:text-xl"
>Topic:</strong
>
<span class="text-base media-5:text-xl text-zinc-400"
>GitHub: Learn what matters</span
>
<strong class="text-highlight-color text-base media-5:text-xl"
>Speaker:</strong
>
<a
href="https://github.com/saqibbedar"
class="text-base media-5:text-xl text-zinc-400"
>Saqib Bedar</a
>
<strong class="text-highlight-color text-base media-5:text-xl"
>Date:</strong
>
<span class="text-base media-5:text-xl text-zinc-400"
>21st Sep, 2024</span
>
<strong class="text-highlight-color text-base media-5:text-xl"
>Time:</strong
>
<span class="text-base media-5:text-xl text-zinc-400"
>09:00 PM</span
>
<strong class="text-highlight-color text-base media-5:text-xl"
>Venue:</strong
>
<span class="text-base media-5:text-xl text-zinc-400"
>MS Teams</span
>
<strong class="text-highlight-color text-base media-5:text-xl"
>Status:</strong
>
<span id="event-countdown" class="text-base media-5:text-xl text-zinc-400"
>Loading...</span
>
</div>
<a href="#event-notes"
class="bg-button-primary text-button-primary-color font-semibold text-center px-2 text-lg py-4 rounded-md mt-6 w-full hover:bg-button-primary-hover active:bg-button-primary-active"
>
Explore Event Notes
</a>
<div class="h-auto mt-7">
<img src="./assets/mlsa.png" alt="event organizer image" />
</div>
<div
id="home-icons"
class="hidden media-16:flex gap-2 justify-center mt-6 text-zinc-400"
>
<!-- Icons will appear here -->
</div>
</div>
<!-- right container -->
<div
class="flex justify-center w-full media-12:w-1/2 media-12:h-inherit"
>
<div
class="aspect-square p-6 media-4:p-10 media-12:p-0 overflow-hidden"
>
<img
src="./assets/saqibbedar.png"
class="h-full w-full object-center object-cover rounded-lg"
alt="saqib bedar profile"
/>
</div>
</div>
</div>
<!-- page 2 -->
<section id="event-notes" class="h-full mt-10 ">
<h1 class="text-2xl media-5:text-3xl media-9:text-6xl font-semibold">
Event Notes 📝
</h1>
<hr class="border-none bg-highlight-color mt-6 mb-4 h-[2px] w-full" />
<div class="text-zinc-400 text-base media-7:text-xl mb-4">This includes all git useful commands that are frequently used.</div>
<div class="h-full w-full bg-zinc-900 p-6 media-4:p-10 rounded">
<div id="git-commands" class="text-white flex flex-col gap-4">
<!-- git config -->
<div class="flex flex-col gap-3">
<strong class="text-xl">1. Configuration</strong>
<div class="bg-zinc-800 p-3 rounded relative overflow-hidden">
<div id="config-commands">
<!-- dynamic content will go here -->
Loading...
</div>
<div id="config-copy-btn" class="cursor-pointer active:scale-[.8] absolute right-2 top-2" onclick="copyText('config-copy-btn','config-commands')"><img src="./assets/copy.svg" class="w-6 h-6" alt="copy"></div>
</div>
</div>
<!-- git repo creation -->
<div class="flex flex-col gap-3">
<strong class="text-xl">2. Repository Creation</strong>
<div class="bg-zinc-800 p-3 rounded relative overflow-hidden">
<div id="repo-creation">
<!-- dynamic content will go here -->
Loading...
</div>
<div id="repo-copy-btn" class="cursor-pointer active:scale-[.8] absolute right-2 top-2" onclick="copyText('repo-copy-btn', 'repo-creation')"><img src="./assets/copy.svg" class="w-6 h-6" alt="copy"></div>
</div>
</div>
<!-- git basic Commands -->
<div class="flex flex-col gap-3">
<strong class="text-xl">3. Basic commands</strong>
<div class="bg-zinc-800 p-3 rounded relative overflow-hidden">
<div id="basic-commands">
<!-- dynamic content will go here -->
Loading...
</div>
<div id="basic-copy-btn" class="cursor-pointer active:scale-[.8] absolute right-2 top-2" onclick="copyText('basic-copy-btn','basic-commands')"><img src="./assets/copy.svg" class="w-6 h-6" alt="copy"></div>
</div>
</div>
<!-- git branches -->
<div class="flex flex-col gap-3">
<strong class="text-xl">4. Branching and Merging</strong>
<div class="bg-zinc-800 p-3 rounded relative overflow-hidden">
<div id="git-branch">
<!-- dynamic content will go here -->
Loading...
</div>
<div id="branch-btn" class="cursor-pointer active:scale-[.8] absolute right-2 top-2" onclick="copyText('branch-btn','git-branch')"><img src="./assets/copy.svg" class="w-6 h-6" alt="copy"></div>
</div>
</div>
<!-- git branches -->
<div class="flex flex-col gap-3">
<strong class="text-xl">5. Remote Repositories</strong>
<div class="bg-zinc-800 p-3 rounded relative overflow-hidden">
<div id="git-remote">
<!-- dynamic content will go here -->
Loading...
</div>
<div id="remote-btn" class="cursor-pointer active:scale-[.8] absolute right-2 top-2" onclick="copyText('remote-btn','git-remote')"><img src="./assets/copy.svg" class="w-6 h-6" alt="copy"></div>
</div>
</div>
<!-- Undoing changes -->
<div class="flex flex-col gap-3">
<strong class="text-xl">6. Undoing Changes</strong>
<div class="bg-zinc-800 p-3 rounded relative overflow-hidden">
<div id="git-undo-changes">
<!-- dynamic content will go here -->
Loading...
</div>
<div id="git-undo-changes-btn" class="cursor-pointer active:scale-[.8] absolute right-2 top-2" onclick="copyText('git-undo-changes-btn','git-undo-changes')"><img src="./assets/copy.svg" class="w-6 h-6" alt="copy"></div>
</div>
</div>
<a href="./git-commands.txt" download="git-commands" class="w-fll media-5:w-fit"><button class="bg-button-primary text-button-primary-color font-semibold text-center px-4 text-lg py-4 rounded-md mt-3 w-full hover:bg-button-primary-hover active:bg-button-primary-active ">Download all Commands</button></a>
</div>
</div>
</section>
</div>
<!-- footer -->
<div
class="bg-zinc-900 px-6 py-4 media-7:px-10 text-zinc-400 flex justify-between media-5:items-center flex-col-reverse media-5:flex-row gap-2"
>
<div>Made with ❤️ by <a href="https://github.com/saqibbedar">Saqib Bedar</a></div>
<div id="footer-icons" class="flex gap-2">
<!-- icons will appear here -->
</div>
</div>
<script defer src="./app.js"></script>
</body>
</html>