Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| de:modul:m287:learningunits:lu05:aufgaben:praktisches-beispiel [2026/01/27 10:49] – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | de:modul:m287:learningunits:lu05:aufgaben:praktisches-beispiel [2026/01/27 12:05] (aktuell) – ↷ Links angepasst, weil Seiten im Wiki verschoben wurden 144.76.32.187 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== LU05.A03 - Webseite mobile freundlich umsetzen | ||
| + | |||
| + | ===== Ausgangslage ===== | ||
| + | |||
| + | Als Ausgangslage dient ein dreispaltiges, | ||
| + | |||
| + | {{de: | ||
| + | |||
| + | ===== HTML-Grundgerüst ===== | ||
| + | |||
| + | Als Grundlage für das Fallbeispiel dient das nachfolgende HTML-Gerüst: | ||
| + | |||
| + | <code html> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <meta charset=" | ||
| + | <meta content=" | ||
| + | <link href=" | ||
| + | </ | ||
| + | < | ||
| + | <div id=" | ||
| + | < | ||
| + | <section class=" | ||
| + | <nav id=" | ||
| + | < | ||
| + | <ul> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ul> | ||
| + | </ | ||
| + | <main id=" | ||
| + | <article class=" | ||
| + | <div class=" | ||
| + | <img alt=" | ||
| + | </ | ||
| + | <div class=" | ||
| + | < | ||
| + | <p> | ||
| + | Lorem ipsum dolor sit amet, consectetuer | ||
| + | adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque | ||
| + | penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, | ||
| + | ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. | ||
| + | Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, | ||
| + | rhoncus ut. | ||
| + | </p> | ||
| + | </ | ||
| + | </ | ||
| + | <article class=" | ||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque | ||
| + | penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, | ||
| + | ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. | ||
| + | Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, | ||
| + | rhoncus ut. | ||
| + | </p> | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | <aside id=" | ||
| + | < | ||
| + | < | ||
| + | adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque | ||
| + | penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, | ||
| + | ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. | ||
| + | Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, | ||
| + | rhoncus ut.</ | ||
| + | <ul> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ul> | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <code css> | ||
| + | * { | ||
| + | box-sizing: border-box; | ||
| + | } | ||
| + | |||
| + | body { | ||
| + | font-family: | ||
| + | } | ||
| + | |||
| + | # | ||
| + | margin: auto; | ||
| + | width: 960px; | ||
| + | } | ||
| + | |||
| + | header, footer { | ||
| + | background: lightgreen; | ||
| + | text-align: center; | ||
| + | padding: 10px; | ||
| + | width: 100%; | ||
| + | } | ||
| + | |||
| + | .main-content { | ||
| + | display: flex; | ||
| + | } | ||
| + | |||
| + | .post-with-image { | ||
| + | display: grid; | ||
| + | grid-template-columns: | ||
| + | gap: 15px; | ||
| + | } | ||
| + | |||
| + | #mainnav { | ||
| + | padding: 15px; | ||
| + | width: 20%; | ||
| + | } | ||
| + | |||
| + | #sidebar { | ||
| + | padding: 15px; | ||
| + | width: 20%; | ||
| + | } | ||
| + | |||
| + | main { | ||
| + | padding: 15px; | ||
| + | width: 60%; | ||
| + | } | ||
| + | |||
| + | article img { | ||
| + | margin: 0 10px 10px 0; | ||
| + | max-width: 100%; | ||
| + | height: auto; | ||
| + | border: 3px solid black; | ||
| + | } | ||
| + | |||
| + | article { | ||
| + | padding: 15px; | ||
| + | margin-bottom: | ||
| + | background: lightblue; | ||
| + | } | ||
| + | |||
| + | nav ul { | ||
| + | padding-left: | ||
| + | } | ||
| + | |||
| + | nav ul li { | ||
| + | list-style: none; | ||
| + | margin-left: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Aufgabenstellung ===== | ||
| + | |||
| + | * Analysieren Sie das Markup der Webseite und die Vorgabe der responsiven Ansicht (Bild in der Ausgangslage) | ||
| + | * Setzen Sie die Tablet und Mobile Version der Webseite mit Media Queries um. Überlegen Sie sich dafür geeignete Breakpoints. Ergänzen Sie bei Bedarf das HTML. | ||
| + | * Geben Sie Ihre Ergebnisse als ZIP-Datei ab. | ||
| + | |||
| + | ===== Rahmenbedingungen ===== | ||
| + | |||
| + | ^ Was ^ Beschreibung ^ | ||
| + | | **Produkt: | ||
| + | | **Zeit:** | 45 Min. | | ||
| + | | **Sozialform: | ||
| + | | **Arbeitsmittel: | ||