From d1bd2c6b8dd2432d10e192f4b644c686cf26fcc3 Mon Sep 17 00:00:00 2001
From: Sascha Schulz <sschulz@dh-software.de>
Date: Di, 14 Feb 2023 17:45:12 +0100
Subject: [PATCH] merge draft
---
index.html | 541 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 537 insertions(+), 4 deletions(-)
diff --git a/index.html b/index.html
index c3ec791..4713b32 100644
--- a/index.html
+++ b/index.html
@@ -8,16 +8,547 @@
<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="dist/theme/night-custom.css">
<!-- Theme used for syntax highlighted code -->
- <link rel="stylesheet" href="plugin/highlight/monokai.css">
+ <link rel="stylesheet" href="./node_modules/highlight.js/styles/atom-one-dark-reasonable.css">
</head>
<body>
<div class="reveal">
<div class="slides">
- <section>Slide 1</section>
- <section>Slide 2</section>
+ <section>
+ <h2>Web-Entwicklung</h2>
+ </section>
+ <section>
+ <section>
+ <h2>Agenda</h2>
+ </section>
+ <section>
+ <h3>Grundlagen</h3>
+ <ul>
+ <li>HTML/CSS/JS</li>
+ <li>JSON</li>
+ <li>HTTP-Protokoll</li>
+ <li>Debugger</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Fortgeschrittenes</h3>
+ <ul>
+ <li>NodeJS</li>
+ <li>Responsive Design</li>
+ <li>CSS-Animationen</li>
+ <li>WebComponents / lit</li>
+ <li>Canvas-Element</li>
+ <li>Datenbank</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Architektur & Paradigmen</h3>
+ <ul>
+ <li>Funktionale Programmierung</li>
+ <li>Objektorientierte Programmierung</li>
+ <li>Entwurfsmuster (Singleton, Factory, Builder...)</li>
+ <li>SOLID-Prinzipien</li>
+ <li>Dependency Injection</li>
+ <li>MVC</li>
+ <li>Redux</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Interessante Technologien</h3>
+ <ul>
+ <li>WebSockets</li>
+ <li>WebWorker</li>
+ <li>ServiceWorker</li>
+ <li>WebRTC</li>
+ <li>WebGL</li>
+ <li>Progressive Web Application</li>
+ <li>CEF / Electron</li>
+ <li>WebAssembly</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Betrieb</h3>
+ <ul>
+ <li>Server einrichten</li>
+ <li>SSL- / TLS-Zertifikate</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Workflows</h3>
+ <ul>
+ <li>Git</li>
+ <li>Test Driven Development</li>
+ <li>Continuous Integration / Continuous Delivery</li>
+ </ul>
+ </section>
+ </section>
+ <section>
+ <section>
+ <h2>HTML</h2>
+ </section>
+ <section>
+ <ul>
+ <li>HyperText Markup Language</li>
+ <li>Erste Version 1993 von Tim Berners-Lee</li>
+ <li>Dokumentationsmedium</li>
+ <li>Ursprünglich rein akademische Verwendung</li>
+ <li>Verlinkungen der Dokumente macht sie "hyper"</li>
+ </ul>
+ </section>
+ <section>
+ <table>
+ <tr><th>Version</th><th>Erscheinung</th><th>Elemente ca.</th></tr>
+ <tr><td>HTML 1.0</td><td>1993</td><td>20</td></tr>
+ <tr><td>HTML 2.0</td><td>1995</td><td>50</td></tr>
+ <tr><td>HTML 3.2</td><td>1997</td><td>70</td></tr>
+ <tr><td>HTML 4.01</td><td>1999</td><td>90</td></tr>
+ <tr><td>HTML 5.0</td><td>2014</td><td>110</td></tr>
+ </table>
+ </section>
+ <section>
+ <ul>
+ <li>Heute ein "lebender Standard" (Living Standard)</li>
+ <li>Stetige inkrementelle Erweiterung</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Grundgerüst</h3>
+ <pre>
+ <code class="html" data-trim data-line-numbers>
+ <script type="text/template">
+ <!DOCTYPE html>
+ <html lang="de">
+ <head>
+ <meta charset="UTF-8">
+ </head>
+ <body>
+ </body>
+ </html>
+ </script>
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <pre>
+ <code class="html" data-trim data-line-numbers>
+ <script type="text/template">
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title>Title</title>
+ </head>
+ <body>
+ <h1>Lorem Ipsum</h1>
+ <div>
+ <p>Lorem ipsum dolor sit amet, consectetuer adipiscing</p>
+ <a href="/assets/html/simple2.html">Weitere Infos</a>
+ </div>
+ </body>
+ </html>
+ </script>
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <iframe data-src="/assets/html/simple.html"></iframe>
+ </section>
+ <section>
+ <h3>Aufbau eines Elements</h3>
+ <pre>
+ <code class="html" data-trim>
+ <script type="text/template">
+ <span id="my-id" class="super important">Inhalt</span>
+ </script>
+ </code>
+ </pre>
+ <pre>
+ <code class="html" data-trim>
+ <script type="text/template">
+ <!-- HTML 4.01 -->
+ <input id="input" class="super important" disabled="disabled" />
+ </script>
+ </code>
+ </pre>
+ <pre>
+ <code class="html" data-trim>
+ <script type="text/template">
+ <!-- HTML 5 -->
+ <input id="input2" class="super important" disabled>
+ </script>
+ </code>
+ </pre>
+ </section>
+ </section>
+ <section>
+ <section>
+ <h2>CSS</h2>
+ </section>
+ <section>
+ <ul>
+ <li>Cascading Style Sheet</li>
+ <li>Nach größerer Verbreitung von HTML</li>
+ <li>Webseiten ansprechend gestalten</li>
+ </ul>
+ </section>
+ <section>
+ <img data-src="/assets/images/css-sucks.png">
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ selector [, selector, selector, ...] {
+ property: value;
+ }
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ html {
+ background-color: red;
+ font-size: 30px;
+ }
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <pre>
+ <code class="html" data-trim data-line-numbers>
+ <script type="text/template">
+ <html lang="en">
+ <head>
+ ...
+ <style>
+ html {
+ background-color: red;
+ font-size: 30px;
+ }
+ </style>
+ </head>
+ <body>
+ ...
+ </body>
+ </html>
+ </script>
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispielhafte CSS-Eigenschaften</h3>
+ <ul>
+ <li>background-color: red</li>
+ <li>font-family: Georgia, serif, Arial</li>
+ <li>text-decoration: line-through underline</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Selektoren</h3>
+ <ul>
+ <li>Umfangreiche Element-Selektoren zur Anwendung der Styles</li>
+ <li>Kinder, Enkel...</li>
+ <li>Geschwister, direkte Nachfolger</li>
+ <li>Attribute</li>
+ <li>Pseudoklassen</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Selektoren</h3>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ #my-id /* ID */
+ html, body /* Mehrfachselektion */
+ div > p /* p die direkt unterhalb eines div sind */
+ div p /* p die irgendwo unterhalb eines div sind */
+ a:visited /* besuchte Links */
+ div:hover /* divs über die man mit der Maus fährt */
+ span.important /* span mit der Klasse "important" */
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Layout</h3>
+ <p>Es gibt zwei grundlegende Blocktypen:</p>
+ <p><code>block</code></p>
+ <p><code>inline</code></p>
+ </section>
+ <section>
+ <h3>Block</h3>
+ <p>Beansprucht eine ganze Zeile und verursacht Zeilenumbrüche</p>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ display: block;
+ </code>
+ </pre>
+ </section>
+ <section>
+ <p>Kann Breite und Höhe haben</p>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ display: block;
+ width: 20px;
+ height: 20px;
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Inline</h3>
+ <p>Wie einfacher Text, der mit anderen in der gleichen Zeile stehen kann</p>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ display: inline;
+ </code>
+ </pre>
+ </section>
+ <section>
+ <p>Festlegen von Breite und Höhe sind wirkungslos</p>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ display: inline;
+ width: 20px; /* kein Effekt */
+ height: 20px; /* kein Effekt */
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Inline-Block</h3>
+ <p>Mischform von <code>inline</code> und <code>block</code></p>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ display: inline-block;
+ width: 20px;
+ height: 20px;
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Spezifität</h3>
+ <p>Regeln können andere Regeln überschreiben</p>
+ <pre>
+ <code class="html" data-trim data-line-numbers>
+ <script type="text/template">
+ <div style="display: inline-block"></div>
+ </script>
+ </code>
+ </pre>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ #id:hover { display: none }
+
+ #id { display: block }
+
+ .class.clazz { display: inline }
+
+ div { display: inline-block }
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Box Model</h3>
+ <p>Es gibt zwei Varianten des Modells:</p>
+ <p><code>content-box</code> (default)</p>
+ <p>border-box</p>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ box-sizing: content-box;
+ box-sizing: border-box;
+ </code>
+ </pre>
+ </section>
+ <section>
+ <img data-src="/assets/images/css-box-model.png">
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ div {
+ border: 3px solid red;
+ padding: 10px;
+ width: 100px;
+ }
+
+ .border-box {
+ box-sizing: border-box;
+ }
+
+ .content-box {
+ box-sizing: content-box;
+ }
+ </code>
+ </pre>
+ <pre>
+ <code class="html" data-trim data-line-numbers>
+ <script type="text/template">
+ <div class="content-box">content-box</div>
+ <div class="border-box">border-box</div>
+ </script>
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <iframe data-src="/assets/html/box-sizing.html"></iframe>
+ </section>
+ <section>
+ <h3>Positioning</h3>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ /* default, da wo es in der Seite steht */
+ position: static;
+ /* relativ zu seiner eigentlichen Position */
+ position: relative;
+ /* relativ zu seinem nächsten non-static parent o. window */
+ position: absolute;
+ </code>
+ </pre>
+ </section>
+ <section>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ position: relative;
+ position: absolute;
+ </code>
+ </pre>
+ <p>erlauben Verschiebung mittels</p>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ top: 10px;
+ left: 10px;
+ right: 10px;
+ bottom: 10px;
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispiel Menü</h3>
+ <iframe data-src="/assets/html/css-menu.html"></iframe>
+ </section>
+ <section>
+ <pre>
+ <code class="css" data-trim data-line-numbers>
+ .menu-item {
+ display: inline-block;
+
+ position: relative;
+ }
+
+ .menu-item .children {
+ display: none;
+
+ position: absolute;
+ }
+
+ .menu-item:hover .children {
+ display: block;
+ }
+ </code>
+ </pre>
+ </section>
+ <section>
+ <pre>
+ <code class="html" data-trim data-line-numbers>
+ <script type="text/template">
+ <div class="menu">
+ <div class="menu-item">Eins</div>
+ <div class="menu-item">
+ Hover Me!
+ <div class="children">
+ <div>Item 1</div>
+ <div>Item 2</div>
+ </div>
+ </div>
+ <div class="menu-item">Drei</div>
+ </div>
+ </script>
+ </code>
+ </pre>
+ </section>
+ </section>
+ <section>
+ <section>
+ <h2>JS</h2>
+ </section>
+ <section>
+ <ul>
+ <li>JavaScript stammt aus dem Jahr 1995 von Netscape</li>
+ <li>Syntaktisch an Java angelehnt</li>
+ <li>Ursprünglich nur optionale, verzichtbare Effekte (unobstrusive)</li>
+ <li>Mittlerweile von ECMA standardisiert</li>
+ </ul>
+ </section>
+ <section>
+ <table>
+ <tr><th>Version</th><th>ECMA Standard</th><th>Jahr</th></tr>
+ <tr><td>ES1</td><td>ECMAScript 1</td><td>1997</td></tr>
+ <tr><td>ES2</td><td>ECMAScript 2</td><td>1998</td></tr>
+ <tr><td><strong>ES3</strong></td><td><strong>ECMAScript 3</strong></td><td><strong>1999</strong></td></tr>
+ <tr><td><strong>ES5</strong></td><td><strong>ECMAScript 5</strong></td><td><strong>2009</strong></td></tr>
+ <tr><td>ES6</td><td>ECMAScript 2015</td><td>2015</td></tr>
+ <tr><td></td><td>...</td><td></td></tr>
+ <tr><td></td><td>ECMAScript 2020</td><td>2020</td></tr>
+ </table>
+ </section>
+ <section>
+ <pre>
+ <code class="html" data-trim data-line-numbers>
+ <script type="text/template">
+ <!DOCTYPE html>
+ <html lang="de">
+ <head>
+ <meta charset="UTF-8">
+ </head>
+ <body>
+ <!-- code -->
+ </body>
+ </html>
+ </script>
+ </code>
+ </pre>
+ </section>
+ <section>
+ <p>Code wird zwischen <code>script</code>-Tags geschrieben</p>
+ <pre>
+ <code class="html" data-trim data-line-numbers>
+ <script>
+ ...
+ </script>
+ </code>
+ </pre>
+ </section>
+ <section>
+ <p>DOM-API</p>
+ <pre>
+ <code class="js" data-trim data-line-numbers>
+ // findet das erste Element
+ const parent = document.querySelector("#id");
+
+ // findet alle Elemente
+ const elements = document.querySelectorAll("#id");
+
+ // Element erstellen
+ const newElement = document.createElement("div");
+
+ newElement.addEventListener("click", (event) => {
+ // Click-Event
+ });
+
+ // Element anhängen
+ parent.appendChild(newElement);
+
+ newElement.remove();
+ </code>
+ </pre>
+ </section>
+ </section>
</div>
</div>
@@ -31,6 +562,8 @@
// - https://revealjs.com/config/
Reveal.initialize({
hash: true,
+ slideNumber: "c/t",
+ transition: "fade",
// Learn about plugins: https://revealjs.com/plugins/
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
--
Gitblit v1.9.3