replace ascii encapsulation diagrams: tcp, ip, ethernet, router re-hop
This commit is contained in:
74
slides/223015c/assets/demos/ip-packet.html
Normal file
74
slides/223015c/assets/demos/ip-packet.html
Normal file
@@ -0,0 +1,74 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>IP-Paket</title>
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; background: #fff; font-family: system-ui, sans-serif; }
|
||||
body { padding: 30px; display: inline-block; }
|
||||
.wrap {
|
||||
border: 2px solid #15803d;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
min-width: 660px;
|
||||
}
|
||||
.ip-header {
|
||||
background: #dcfce7;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 2px solid #15803d;
|
||||
}
|
||||
.header-title {
|
||||
font-weight: 700;
|
||||
margin-bottom: 8px;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
.ip-header .header-title { color: #14532d; }
|
||||
.fields {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
border: 1px solid #15803d;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
.field {
|
||||
padding: 8px 12px;
|
||||
border-right: 1px solid #15803d;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.field:last-child { border-right: 0; }
|
||||
.field-label { color: #14532d; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
|
||||
.field-value { font-family: ui-monospace, monospace; color: #0f172a; margin-top: 2px; }
|
||||
.nested {
|
||||
background: #dbeafe;
|
||||
padding: 12px 16px;
|
||||
border: 2px solid #1e40af;
|
||||
border-radius: 4px;
|
||||
margin: 12px 16px;
|
||||
}
|
||||
.nested-title { color: #1e3a8a; font-weight: 700; font-size: 0.95rem; }
|
||||
.nested-note { color: #1e3a8a; font-size: 0.85rem; font-style: italic; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<div class="ip-header">
|
||||
<div class="header-title">IP-Header</div>
|
||||
<div class="fields">
|
||||
<div class="field">
|
||||
<div class="field-label">Source IP</div>
|
||||
<div class="field-value">141.62.xxx.xxx</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="field-label">Destination IP</div>
|
||||
<div class="field-value">212.132.79.37</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nested">
|
||||
<div class="nested-title">TCP-Segment</div>
|
||||
<div class="nested-note">unverändert gekapselt</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user