2026-01-15 20:10:19 +08:00
|
|
|
|
<template>
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<div class="dns-lookup-demo simple-mode">
|
|
|
|
|
|
<div class="concept-explanation">
|
|
|
|
|
|
<p class="why-text">
|
|
|
|
|
|
<strong>为什么需要 DNS?(查导航)</strong>
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p class="why-desc-zh">
|
2026-01-18 12:21:49 +08:00
|
|
|
|
你知道店铺名字叫 "Shop.com",但快递员需要知道具体的经纬度坐标 (IP 地址)
|
|
|
|
|
|
才能送达。
|
|
|
|
|
|
<br />
|
2026-01-18 10:24:35 +08:00
|
|
|
|
DNS 就像是<strong>地图导航</strong>,输入店名,它告诉你具体的坐标。
|
|
|
|
|
|
</p>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<div class="demo-stage">
|
|
|
|
|
|
<div class="input-area">
|
|
|
|
|
|
<span class="label">店铺名称 (域名)</span>
|
|
|
|
|
|
<div class="fake-input">shop.com</div>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
</div>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<div class="process-animation">
|
|
|
|
|
|
<div class="arrow-down">⬇️</div>
|
|
|
|
|
|
<div class="dns-box">
|
|
|
|
|
|
<div class="icon">🧭</div>
|
|
|
|
|
|
<div class="title">DNS (地图导航)</div>
|
|
|
|
|
|
<div class="desc">正在查找 shop.com 的位置...</div>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<div class="arrow-down">⬇️</div>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<div class="output-area">
|
|
|
|
|
|
<span class="label">GPS 坐标 (IP 地址)</span>
|
|
|
|
|
|
<div class="fake-output">93.184.216.34</div>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-01-18 10:24:35 +08:00
|
|
|
|
// Simplified: No need for complex i18n logic anymore as we display both.
|
|
|
|
|
|
defineProps({
|
|
|
|
|
|
lang: String // Accepted but ignored
|
|
|
|
|
|
})
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.dns-lookup-demo {
|
|
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
|
|
|
|
|
border-radius: 8px;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
background: var(--vp-c-bg);
|
2026-01-16 19:10:21 +08:00
|
|
|
|
padding: 1.5rem;
|
|
|
|
|
|
margin: 1rem 0;
|
|
|
|
|
|
font-family: var(--vp-font-family-mono);
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.concept-explanation {
|
|
|
|
|
|
background: var(--vp-c-bg-soft);
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
border-radius: 6px;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
margin-bottom: 2rem;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.why-text {
|
|
|
|
|
|
margin: 0 0 0.5rem 0;
|
|
|
|
|
|
color: var(--vp-c-brand);
|
|
|
|
|
|
font-weight: bold;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.why-desc-en {
|
|
|
|
|
|
margin: 0 0 0.5rem 0;
|
|
|
|
|
|
color: var(--vp-c-text-1);
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
font-size: 0.95rem;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.why-desc-zh {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: var(--vp-c-text-2);
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
font-size: 0.9rem;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.demo-stage {
|
2026-01-15 20:10:19 +08:00
|
|
|
|
display: flex;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
flex-direction: column;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
align-items: center;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
gap: 1rem;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 12:21:49 +08:00
|
|
|
|
.input-area,
|
|
|
|
|
|
.output-area {
|
2026-01-18 10:24:35 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.label {
|
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
|
color: var(--vp-c-text-3);
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 12:21:49 +08:00
|
|
|
|
.fake-input,
|
|
|
|
|
|
.fake-output {
|
2026-01-18 10:24:35 +08:00
|
|
|
|
background: var(--vp-c-bg-alt);
|
|
|
|
|
|
padding: 0.8rem;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
border-radius: 8px;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
border: 2px solid var(--vp-c-divider);
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.fake-input {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
border-color: #3b82f6;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
color: #3b82f6;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.fake-output {
|
|
|
|
|
|
border-color: #10b981;
|
|
|
|
|
|
color: #10b981;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.process-animation {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
display: flex;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.5rem;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.dns-box {
|
|
|
|
|
|
background: #fffbeb;
|
|
|
|
|
|
border: 2px solid #f59e0b;
|
|
|
|
|
|
padding: 1rem 2rem;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
width: 240px; /* Slightly wider for bilingual text */
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.html.dark .dns-box {
|
|
|
|
|
|
background: #451a03;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.icon {
|
|
|
|
|
|
font-size: 2rem;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
margin-bottom: 0.5rem;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
2026-01-18 10:24:35 +08:00
|
|
|
|
|
|
|
|
|
|
.title {
|
2026-01-15 20:10:19 +08:00
|
|
|
|
font-weight: bold;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
color: #d97706;
|
|
|
|
|
|
font-size: 0.9rem;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.desc {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
font-size: 0.8rem;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
color: #b45309;
|
|
|
|
|
|
margin-top: 0.2rem;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.arrow-down {
|
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
|
color: var(--vp-c-text-3);
|
|
|
|
|
|
animation: bounce 2s infinite;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
@keyframes bounce {
|
2026-01-18 12:21:49 +08:00
|
|
|
|
0%,
|
|
|
|
|
|
100% {
|
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
50% {
|
|
|
|
|
|
transform: translateY(5px);
|
|
|
|
|
|
}
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|