|
4 | 4 | <meta charset="UTF-8" /> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | 6 | <title>Git Add - Article Template</title> |
7 | | - |
8 | | - <link rel="stylesheet" href="https://www.w3schools.com/w3css/5/w3.css"> |
9 | | - |
10 | | - <style> |
11 | | - :root { |
12 | | - --sidebar-width: 220px; |
13 | | - --sidebar-bg: #003366; |
14 | | - --accent: #ff3333; |
15 | | - --text: #111; |
16 | | - --bg: #ffffff; |
17 | | - --card: #f7f7f7; |
18 | | - --border: #ddd; |
19 | | - } |
20 | | - |
21 | | - body { |
22 | | - margin: 0; |
23 | | - font-family: Arial, sans-serif; |
24 | | - background: var(--bg); |
25 | | - color: var(--text); |
26 | | - } |
27 | | - |
28 | | - .sidebar { |
29 | | - height: 100vh; |
30 | | - overflow-y: auto; |
31 | | - position: fixed; |
32 | | - width: var(--sidebar-width); |
33 | 7 | background-color: var(--sidebar-bg); |
34 | 8 | color: white; |
35 | 9 | padding-bottom: 20px; |
36 | 10 | box-shadow: 2px 0 10px rgba(0,0,0,0.15); |
37 | | - } |
38 | | - |
39 | | - .sidebar h2 { |
40 | | - margin: 0; |
41 | | - padding: 16px 12px 10px; |
42 | | - font-size: 18px; |
43 | | - text-align: center; |
44 | | - color: white; |
45 | | - border-bottom: 1px solid rgba(255,255,255,0.15); |
46 | | - } |
47 | | - |
48 | | - .sidebar h3 { |
49 | | - margin: 18px 0 6px; |
50 | | - padding: 0 12px; |
51 | | - color: var(--accent); |
52 | | - font-size: 14px; |
53 | | - text-transform: uppercase; |
54 | | - letter-spacing: 0.04em; |
55 | | - } |
56 | | - |
57 | | - .sidebar a { |
58 | | - display: block; |
59 | | - padding: 8px 12px; |
60 | | - text-decoration: none; |
61 | | - color: white; |
62 | | - font-size: 14px; |
63 | 11 | border-radius: 4px; |
64 | 12 | margin: 2px 8px; |
65 | 13 | } |
|
207 | 155 | <!-- Sidebar / Navigation --> |
208 | 156 | <div class="sidebar w3-card"> |
209 | 157 | <h2>Git Docs</h2> |
| 158 | + <h3>Basics of Github</h3> |
| 159 | + <a href="../GitHub/Github-Setup.html">Setting Up Github</a> |
| 160 | + <a href="../GitHub/Github-First-Repo.html">Making your First Repo</a> |
| 161 | + <a href="../GitHub/Github-Merges.html">Intro to Merges</a> |
| 162 | + <a href="../GitHub/Github-Forks.html">Intro to Forks</a> |
210 | 163 |
|
211 | | - <!-- GLOBAL COMMAND LIST --> |
212 | | - <h3>Previous</h3> |
213 | | - <a href="init.html">init</a> |
214 | | - <a href="clone.html">clone</a> |
| 164 | + <!-- GLOBAL COMMAND LIST --> |
| 165 | + <h3>Previous</h3> |
215 | 166 |
|
216 | 167 | <h3>This Page</h3> |
217 | | - <a href="#intro" class="nav-link">Introduction</a> |
218 | | - <a href="#syntax" class="nav-link">Syntax</a> |
219 | | - <a href="#basic-use" class="nav-link">Basic Use</a> |
220 | | - <a href="#examples" class="nav-link">Examples</a> |
221 | | - <a href="#options" class="nav-link">Options</a> |
222 | | - <a href="#troubleshooting" class="nav-link">Troubleshooting</a> |
223 | | - <a href="#practice" class="nav-link">Practice</a> |
224 | | - |
225 | | - <!-- NEXT ARTICLES --> |
226 | | - <h3>Next Articles</h3> |
| 168 | + <a href="#intro" class="nav-link">Introduction</a> |
| 169 | + <a href="#syntax" class="nav-link">Syntax</a> |
| 170 | + <a href="#basic-use" class="nav-link">Basic Use</a> |
| 171 | + <a href="#examples" class="nav-link">Examples</a> |
| 172 | + <a href="#options" class="nav-link">Options</a> |
| 173 | + <a href="#troubleshooting" class="nav-link">Troubleshooting</a> |
| 174 | + <a href="#practice" class="nav-link">Practice</a> |
| 175 | + |
| 176 | + <!--NEXT ARTICLES --> |
| 177 | + <h3>Next Articles</h3> |
| 178 | + <a href="init.html">git init</a> |
| 179 | + <a href="clone.html">git clone</a> |
227 | 180 | <a href="mv.html">git mv</a> |
228 | 181 | <a href="restore.html">git restore</a> |
229 | 182 | <a href="rm.html">git rm</a> |
@@ -372,34 +325,7 @@ <h2>Practice</h2> |
372 | 325 | </div> |
373 | 326 | </div> |
374 | 327 |
|
375 | | - <script> |
376 | | - const content = document.getElementById('mainContent'); |
377 | | - |
378 | | - function applyPreference() { |
379 | | - const saved = localStorage.getItem('darkmode'); |
380 | | - if (saved === 'true') { |
381 | | - content.classList.add('darkmode'); |
382 | | - } else if (saved === 'false') { |
383 | | - content.classList.remove('darkmode'); |
384 | | - } else { |
385 | | - if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { |
386 | | - content.classList.add('darkmode'); |
387 | | - } |
388 | | - } |
389 | | - } |
390 | | - |
391 | | - function toggleDarkMode() { |
392 | | - if (content.classList.contains('darkmode')) { |
393 | | - content.classList.remove('darkmode'); |
394 | | - localStorage.setItem('darkmode', 'false'); |
395 | | - } else { |
396 | | - content.classList.add('darkmode'); |
397 | | - localStorage.setItem('darkmode', 'true'); |
398 | | - } |
399 | | - } |
400 | | - |
401 | | - window.addEventListener('load', applyPreference); |
402 | | - </script> |
| 328 | + <script src="/Assets/js/darkmode.js"></script> |
403 | 329 |
|
404 | 330 | </body> |
405 | 331 | </html> |
0 commit comments