replace ascii encapsulation diagrams: tcp, ip, ethernet, router re-hop
This commit is contained in:
99
slides/223015c/assets/demos/ethernet-rehop.html
Normal file
99
slides/223015c/assets/demos/ethernet-rehop.html
Normal file
@@ -0,0 +1,99 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Ethernet nach Router-Hop</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 #c2410c;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
min-width: 680px;
|
||||
}
|
||||
.eth-header {
|
||||
background: #fed7aa;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 2px solid #c2410c;
|
||||
}
|
||||
.header-title {
|
||||
font-weight: 700;
|
||||
color: #7c2d12;
|
||||
margin-bottom: 8px;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
background: #c2410c;
|
||||
color: #fff;
|
||||
padding: 2px 8px;
|
||||
border-radius: 3px;
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-left: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.fields {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
border: 1px solid #c2410c;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
.field {
|
||||
padding: 8px 12px;
|
||||
border-right: 1px solid #c2410c;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.field:last-child { border-right: 0; }
|
||||
.field-label { color: #7c2d12; 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: #dcfce7;
|
||||
border: 2px solid #15803d;
|
||||
border-radius: 4px;
|
||||
margin: 12px 16px;
|
||||
padding: 12px 16px;
|
||||
}
|
||||
.nested-title { color: #14532d; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
|
||||
.nested-line { color: #14532d; font-size: 0.85rem; font-family: ui-monospace, monospace; }
|
||||
.nested-badge {
|
||||
display: inline-block;
|
||||
background: #15803d;
|
||||
color: #fff;
|
||||
padding: 2px 8px;
|
||||
border-radius: 3px;
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-left: 6px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<div class="eth-header">
|
||||
<div class="header-title">Ethernet-Header<span class="badge">neu</span></div>
|
||||
<div class="fields">
|
||||
<div class="field">
|
||||
<div class="field-label">Source MAC</div>
|
||||
<div class="field-value">Router-MAC</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="field-label">Dest MAC</div>
|
||||
<div class="field-value">Nächster-Router</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nested">
|
||||
<div class="nested-title">IP-Paket<span class="nested-badge">unverändert</span></div>
|
||||
<div class="nested-line">Source: 141.62.xxx.xxx</div>
|
||||
<div class="nested-line">Dest: 212.132.79.37</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user