forked from hakimel/reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
706 lines (679 loc) · 19.4 KB
/
index.html
File metadata and controls
706 lines (679 loc) · 19.4 KB
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Intro to HTML, CSS and Github</title>
<link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/black.css">
<link rel="stylesheet" href = "Moving_Panda.css">
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="plugin/highlight/monokai.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- slide 1 -->
<section>
<h1>Hi, I'm <span style="color : #00B08B ;">Mohamed Fares Andaloussi</span></h1>
</section>
<!-- slide 2 -->
<section>
<h1>This presentation is made with <span style="color : #00B08B ;">HTML</span>,
<span style="color : #00B08B ;">CSS</span> and
<span style="color : #00B08B ;">Javascript</span></h1>
</section>
<!-- slide 3 -->
<section>
<h1>Thanks to <span style="color : #00B08B ;">reveal.js</span>
an open source Javascript Library,check it out on Github
</section>
<!-- slide 4 -->
<section>
<h1>
With <span style="color : #00B08B ;">HTML</span>,
<span style="color : #00B08B ;">CSS</span> and
<span style="color : #00B08B ;">Javascript</span>, You can do pretty much everything ..
</h1>
</section>
<!-- slide 5 -->
<section id ="section3"data-background-size="1000px">
<input type = "button" onclick = "play()" value = "music">
<audio id="audio" src="https://git.io/JUW4q" loop="loop"></audio>
<script>
function play()
{
var audio = document.getElementById("audio");
audio.play();
}
</script>
<div id="panda"></div>
<div id="street"></div>
</section>
<!-- slide 5 -->
<section>
<section data-background-size="300px" >
<h3><span style="color: #00B08B;">Content of this workshop</span></h3>
<ol>
<li>Introduction to Web Development </li>
<li>Basic HTML Code </li>
<ol>
<li>basic structure </li>
<li>useful HTML elements :</li>
<ol>
<li>paragraph, header tags etc ... </li>
</ol>
<li>HTML Attributes </li>
<li>Inline elements vs block elements</li>
</ol>
<li>Basic CSS3 :</li>
<ol>
<li>CSS Selector </li>
<li>CSS box model</li>
</ol>
</ol>
</section>
<section>
<ol start=4 >
<li>Github : add, commit, push,instructions</li>
<li>Tasks </li>
<li>Resources </li>
</ol>
</section>
</section>
<!-- slide 6 -->
<!--Introduction part-->
<section>
<section>
<h1>1-Introduction to Web Development </h1>
</section>
<section>
<p>Web development is <span style="color : #00B08B ; ">the building</span> and <span style="color : #00B08B ; ">maintenance</span> of websites</p>
</section>
<section>
<p> it's the work that happens <span style="color : #00B08B ; ">behind the scenes</span>
to make a website looks <span style="color : #00B08B ; ">great</span>,
work <span style="color : #00B08B ; ">fast</span> and perform well with a seamless user experience
</p>
</section>
</section>
<!--Basic HTML Code -->
<!--section 2-->
<section>
<section><h1>2-Basic HTML Code</h1> <h2>Hypertext Markup Language</h2></section>
<section>
<h3>Basic Structure</h3>
</section>
<section data-markdown>
<textarea data-template="">
HTML Document Structure
```
<html>
<head>
document header related tags
</head>
<body>
document body related tags
</body>
</html>
```
</textarea>
</section>
<section data-markdown>
<textarea data-template="">
Example one
```
<html>
<head>
<title>Intro to HTML, CSS and Github</title>
</head>
<body>
<h5>This is a header h5 </h5>
<p>This is a paragraph</p>
</body>
</html>
```
</textarea>
</section>
<section>
<h5>This is a header h5 </h5>
<p> This is a paragraph</p>
</section>
<section>
<img src="HTML_Tags.jpg" >
</section>
<section>
<h3>Useful HTML tags examples</h3>
</section>
<section>
<h4>Tag headings</h4>
</section>
<section data-markdown>
<textarea data-template>
Heading example
```
<html>
<head>
<title>Intro to HTML, CSS and Github</title>
</head>
<body>
<h1>This is h1</h1>
<h2>This is h2</h2>
<h3>This is h3</h3>
<h4>This is h4</h4>
<h5>This is h5</h5>
<h6>This is h6</h6>
</body>
</html>
```
</textarea>
</section>
<section>
<h1>This is h1</h1>
<h2>This is h2</h2>
<h3>This is h3</h3>
<h4>This is h4</h4>
<h5>This is h5</h5>
<h6>This is h6</h6>
</section>
<section>
<h4>Paragrpah and line break</h4>
</section>
<section data-markdown>
<textarea data-template>
paragraph and line break example
```
<html>
<head>
<title>Intro to HTML, CSS and Github</title>
</head>
<body>
<p>Hello<br> I'm currently learning HTML ...</p>
</body>
</html>
```
</textarea>
</section>
<section>
<p>Hello<br> I'm currently learning HTML ...</p>
</section>
<section>
<h4>HR (horizontal line)</h4>
</section>
<section data-markdown>
<textarea data-template>
hr example
```
<html>
<head>
<title>Intro to HTML, CSS and Github</title>
</head>
<body>
<p>let's do hr <p>
<hr>
<p>done</p>
</body>
</html>
```
</textarea>
</section>
<section>
<p>let's do hr <p>
<hr>
<p>done</p>
</section>
<section>
<h4>Nested elements example</h4>
</section>
<section data-markdown>
<textarea data-template>
nested elements example example
```
<html>
<head>
<title>Intro to HTML, CSS and Github</title>
</head>
<body>
<p>This is <u>underlined</u></p>
</body>
</html>
```
</textarea>
</section>
<section>
<p>This is <u>underlined</u></p>
</section>
<section>
<h4>div tag</h4>
</section>
<section>
<div style="color: aqua; padding: 50px; background-color: beige;">this is a division 1</div>
<div>This is a division 2</div>
</section>
<section data-markdown>
<textarea data-template>
division is an block element ; always starts on a new line
```
<html>
<head>
<title>Intro to HTML, CSS and Github</title>
</head>
<body>
<div style="color: aqua; padding: 50px;
background-color: beige;">
this is a division 1</div>
<div>This is a division 2</div>
</body>
</html>
```
</textarea>
</section>
<section>
<p>Style we just used is one of the HTML Attributes</p>
</section>
<section>
<h3>HTML Attributes</h3>
</section>
<section>
<h5 style="color: #00B08B;">Main Html Attributes</h5>
<p>
The four core attributes that can be used on
the majority of HTML elements (although not all) are:
</p>
<p>id</p><p>title</p><p>style</p><p>class</p>
</section>
<section>
<p>Through HTML attributes, we can access to CSS</p>
<p><span style="color:#00B08B;">CSS</span> : Cascading Style Sheets</p>
</section>
<section>
<h3>Inline elements vs block elements</h3>
</section>
<section>
Block elements ; always starts on a new line
<img src="block_elem.png">
</section>
<section>
inline elements ; stays in the same line
<img src="inline_elem.png">
</section>
<section data-markdown>
<textarea data-template>
block vs inline elements
```
<html>
<head>
<title>Intro to HTML, CSS and Github</title>
</head>
<body>
<h2>Header is block</h2>
<p>
Paragraph is block element, otherwise
<span style="color :#00B08B;">span</span>
is inline
</p>
</body>
</html>
```
</textarea>
</section>
<section>
<h2>Header is block</h2>
<p>
Paragraph is block element, otherwise
<span style="color :#00B08B;">span</span>
is inline
</p>
</section>
<section>
<div style="height:700px">
<img src="meme_end.jpg" >
</div>
</section>
<section>
<img src="meme_end_2.jpg">
</section>
</section>
<!--Part 3 CSS-->
<section>
<section>
<h1>3-CSS3</h1>
</section>
<section>
<img src="website.jpg">
</section>
<section>
<img src="css_meme.jpg">
</section>
<section>
<img src="css_meme2.jpg">
</section>
<section>
<h1>CSS selectors</h1>
</section>
<section>
<p>CSS selectors are used to “find” (or select) the HTML elements you want to style.
</p>
</section>
<section data-markdown>
<textarea data-template>
block vs inline elements
```
<html>
<head>
<title>Intro to HTML, CSS and Github</title>
</head>
<style>
p
{
text-align: center;
color :red ;
}
#para1
{
color : aqua;
}
</style>
<body>
<p>
Every paragraph will be red, align center
</p>
<p id="para1">This one have id para1 will be aqua</p>
<p>Red also</p>
</body>
</html>
```
</textarea>
</section>
<section>
<p style="color :red; text-align : center">
Every paragraph will be red, align center
</p>
<p style="color :aqua; text-align : center">This one have id para1 will be aqua</p>
<p style="color :red; text-align : center">Red also</p>
</section>
<section>
<h1>CSS Box Model</h1>
</section>
<section>
<img src="box_model_css.png">
</section>
<section data-markdown>
<textarea data-template>
block vs inline elements
```
<html>
<head>
<title>Intro to HTML, CSS and Github</title>
</head>
<style>
div
{
background-color: lightblue;
width: 200px;
border: 15px solid green;
padding: 50px;
margin : 20px ;
}
</style>
<body>
<h3>Demo box model</h3>
<p>
Paragraph, as always
</p>
<div>This text is the content of the box</div>
</body>
</html>
```
</textarea>
</section>
<section>
<h3>Demo box model</h3>
<p>
Paragraph, as always
</p>
<div style="background-color: lightblue;
width: 200px;
border: 15px solid green;
padding: 50px;
margin : 30px ;
">This text is the content of the box</div>
</section>
</section>
<!-- Github-->
<section>
<section>
<h1>4-Github</h1>
</section>
<section>
<p>GitHub, Inc. is a provider of Internet hosting for software development and version control using Git.</p>
</section>
<section>
<p>
It offers the distributed version control and source code management (SCM) functionality of Git,
plus its own features. It provides access control and several collaboration features such as bug tracking,
feature requests, task management, continuous integration and wikis for every project.
</p>
</section>
<section>
<h3>Push your files to remote repository steps</h3>
</section>
<section data-markdown>
<textarea data-template>
1-click on <span style="color :#00B08B;">your repositories</span> tab on Github -> Add new repository
(either follow the steps provided by Github or read the remaining steps I'm adding)<br>
2-go to the local repository which contains your project, open terminal and type
```
git init
```
3- Add all the changes you have made in a commit
```
git add .
```
(default usage git add filename.extension / git add . means add all changes)<br>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
5- Make a commit ; -m is a comment for your commit
```
git commit -m "added a new color"
```
6-Add your work on the main branch
```
git branch -M main
```
7-Connect your local repository to the remote repository
(whenever you make a change on your local repo, you can update the remote on with push)
```
git remote add origin https://github.com/<username>/<projectname>.git
```
8-push your work to the remote repository
```
git push -u origin main
```
9-Enter your username and personal access token
</textarea>
</section>
<section>
<h3>Basic branching</h3>
</section>
<section>
<h5>Basic branching</h5>
<p>In order to keep your project <span style="color: #00B08B;">clean</span>
(i.e keep the main branch clean) when
collaborating with many <span style="color: #00B08B;">contributors</span>,
it is highly advisable to work on different branches, branches will allow
you to make new pushes and commit and then if <span style="color: #00B08B;">merging</span>
them on the <span style="color: #00B08B;">main</span> branch
</p>
<p>merging on the main branch means add the new changes of your new branch to
the main branch without making <span style="color: #00B08B;">merge conflicts </span> which can
happen if we don't follow some guidlines
</p>
</section>
<section>
<img src="branch.png">
</section>
<section data-markdown>
<textarea data-template>
create a new branch
```
git branch new-branch
```
Work on the new-branch
```
git checkout new-branch
```
if you type new-branch should light on green
```
git branch
```
create and checkout to a new branch at the same time
```
git checkout -b new-branch
```
</textarea>
</section>
<section>
<p>After creating your branch, you can now <span style="color: #00B08B;">add</span>
and <span style="color: #00B08B;">modify</span> files</p>
<p>the process we have seen above, git add, git commit, git push, enter your credentials</p>
</section>
<section>
After pushing to the <span style="color: #00B08B;">new-branch</span>,
suppose you want to make a <span style="color: #00B08B;">pull request</span>
(which mean <span style="color: #00B08B;">merging</span> your
<span style="color: #00B08B;">new-branch</span> with the
<span style="color: #00B08B;">main</span> branch),
then you have first to check if there aren't any changes in the
<span style="color: #00B08B;">remote main</span> branch,
this happens when you work with many collaborators who also can push
to the main branch in this case, for a simple solo project,
you don't need this step<br>
keywords : <span style="color:#00B08B;">merge, fetch, pull, remote, upstream </span>
</section>
<section>
now from your github profile, click the button merge pull request, if there are no
conflict you'll get a green text, able to merge to the main branch.
</section>
<section>
<img src="pr.jpg">
</section>
<section>
<img src="pr2.png">
</section>
<section>
<img src="merge.png">
</section>
<section>
<p>This is not everything !</p>
<p>Read also about : fork, rebase, clone, ...</p>
</section>
<section>
<h3>Github account step up (step by step)</h3>
</section>
<section>
<ol>
<li>Create a Github account</li>
<li>Click on the down arrow near your profile icon on the right</li>
<li>Go to settings -> developer settings -> personal access token -> generate token</li>
<li>Save the token in a text file : this token will allow you to push changes
to your repository ; enter the token instead of this password (old since august 2021)
</li>
<li>follow the previous steps (add, commit, push) to push files on your repo</li>
</ol>
</section>
<section>
<img src="instructions.png">
</section>
<section>
<img src="instruction2.png">
</section>
<section>
<img src="instruction3.png">
</section>
<section>
<img src="instruction3.png">
</section>
<section>
<div style="height:700px">
<img src="memebranch.jpg" >
</div>
</section>
</section>
<!-- Tasks-->
<section>
<section>
<h1>5-Tasks</h1>
</section>
<section>
<img src="samara.png">
</section>
<section>
<ol>
<li>Change a little bit of your code (colors, paragraph, div, etc)
and push the changes on your github repository
</li>
<li>
Make an identical html css page for these
</li>
</ol>
</section>
<section>
<img src="block2.png">
</section>
<section>
<div style="height: 700px;">
<img src="block3.png">
</div>
</section>
<section>
<img src="intent.png">
</section>
<section>
<ol start="3">
<li>Choose a website and clone it</li>
</ol>
</section>
</section>
<!-- Resources -->
<section>
<section>
<h1>6-Resources</h1>
</section>
<section>
<p>for Github :</p>
<a href="https://git-scm.com/">https://git-scm.com/</a>
<a href="https://www.digitalocean.com/community/tutorial_series/an-introduction-to-open-source">
https://www.digitalocean.com/community/tutorial_series/an-introduction-to-open-source</a>
</section>
<section>
<p>For HTML & CSS</p>
<a href="https://www.w3schools.com/">https://www.w3schools.com/</a>
</section>
<section>
<p>IT in general</p>
<a href="https://www.freecodecamp.org/">https://www.freecodecamp.org/</a><br>
<a href="https://dev.to/">https://dev.to/</a>
</section>
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script src="plugin/notes/notes.js"></script>
<script src="plugin/markdown/markdown.js"></script>
<script src="plugin/highlight/highlight.js"></script>
<script>
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
Reveal.initialize({
hash: true,
// Learn about plugins: https://revealjs.com/plugins/
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
});
</script>
</body>
</html>