style: update border-radius and padding values across components

- standardize border-radius from 8px to 6px for consistent styling
- adjust padding values from 1rem to 0.75rem for better visual hierarchy
- remove redundant overflow-y properties for cleaner code
This commit is contained in:
sanbuphy
2026-02-14 20:23:34 +08:00
parent 81e4284b87
commit d35211071a
373 changed files with 3441 additions and 5629 deletions
@@ -112,51 +112,49 @@ const currentEra = computed(() => {
<style scoped>
.architecture-comparison-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
gap: 0.4rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--vp-c-divider);
}
.demo-header .icon {
font-size: 1.25rem;
font-size: 1rem;
}
.demo-header .title {
font-weight: bold;
font-size: 1rem;
font-size: 0.9rem;
color: var(--vp-c-text-1);
}
.demo-header .subtitle {
color: var(--vp-c-text-2);
font-size: 0.85rem;
margin-left: 0.5rem;
font-size: 0.75rem;
margin-left: 0.4rem;
}
.comparison-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.75rem;
margin-bottom: 1.5rem;
gap: 0.4rem;
margin-bottom: 0.75rem;
}
.era-card {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 4px;
padding: 0.5rem;
text-align: center;
cursor: pointer;
transition: all 0.2s;
@@ -164,7 +162,7 @@ const currentEra = computed(() => {
.era-card:hover {
border-color: var(--vp-c-brand);
transform: translateY(-2px);
transform: translateY(-1px);
}
.era-card.active {
@@ -173,86 +171,86 @@ const currentEra = computed(() => {
}
.era-icon {
font-size: 1.5rem;
margin-bottom: 0.5rem;
font-size: 1rem;
margin-bottom: 0.25rem;
}
.era-name {
font-weight: 600;
font-size: 0.9rem;
font-size: 0.75rem;
color: var(--vp-c-text-1);
margin-bottom: 0.25rem;
margin-bottom: 0.1rem;
}
.era-year {
font-size: 0.75rem;
font-size: 0.6rem;
color: var(--vp-c-text-3);
margin-bottom: 0.5rem;
margin-bottom: 0.25rem;
}
.era-tag {
display: inline-block;
padding: 0.15rem 0.5rem;
padding: 0.1rem 0.3rem;
background: var(--vp-c-bg-soft);
border-radius: 10px;
font-size: 0.7rem;
border-radius: 6px;
font-size: 0.55rem;
color: var(--vp-c-text-2);
}
.detail-panel {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1.5rem;
border-radius: 4px;
padding: 0.5rem;
}
.detail-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
gap: 0.4rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--vp-c-divider);
}
.detail-icon {
font-size: 1.5rem;
font-size: 1rem;
}
.detail-header h5 {
margin: 0;
font-size: 1.1rem;
font-size: 0.85rem;
color: var(--vp-c-text-1);
}
.detail-content {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
gap: 0.4rem;
}
.feature-section {
background: var(--vp-c-bg-soft);
border-radius: 6px;
padding: 1rem;
border-radius: 4px;
padding: 0.4rem;
}
.feature-section h6 {
margin: 0 0 0.75rem 0;
font-size: 0.85rem;
margin: 0 0 0.3rem 0;
font-size: 0.7rem;
color: var(--vp-c-brand);
}
.feature-section ul {
margin: 0;
padding-left: 1.25rem;
font-size: 0.85rem;
padding-left: 0.75rem;
font-size: 0.65rem;
color: var(--vp-c-text-2);
}
.feature-section li {
margin-bottom: 0.4rem;
line-height: 1.5;
margin-bottom: 0.15rem;
line-height: 1.3;
}
.feature-section li:last-child {
@@ -262,40 +260,40 @@ const currentEra = computed(() => {
.tech-stack {
grid-column: 1 / -1;
background: var(--vp-c-bg-soft);
border-radius: 6px;
padding: 1rem;
border-radius: 4px;
padding: 0.4rem;
}
.tech-stack h6 {
margin: 0 0 0.75rem 0;
font-size: 0.85rem;
margin: 0 0 0.3rem 0;
font-size: 0.7rem;
color: var(--vp-c-brand);
}
.tech-tags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
gap: 0.25rem;
}
.tech-tag {
padding: 0.25rem 0.75rem;
padding: 0.15rem 0.4rem;
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 4px;
font-size: 0.8rem;
border-radius: 3px;
font-size: 0.6rem;
color: var(--vp-c-text-2);
}
.info-box {
background: var(--vp-c-bg-alt);
padding: 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
padding: 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
color: var(--vp-c-text-2);
margin-top: 0.75rem;
margin-top: 0.5rem;
display: flex;
gap: 0.25rem;
gap: 0.2rem;
}
.info-box .icon {
@@ -433,8 +433,8 @@ const stages = [
.server-box {
background: #cbd5e1;
border: 2px solid #94a3b8;
padding: 1rem;
border-radius: 8px;
padding: 0.75rem;
border-radius: 6px;
text-align: center;
}
.file-system {
@@ -464,7 +464,7 @@ const stages = [
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px;
margin: 1rem 0;
margin: 0.5rem 0;
}
.module {
background: #bfdbfe;
@@ -367,7 +367,7 @@ const currentStageData = computed(() => stageData[currentStage.value])
gap: 10px;
padding: 10px 12px;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
border-radius: 6px;
font-size: 13px;
}
@@ -73,52 +73,50 @@ const benefits = [
<style scoped>
.container-docker-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
gap: 0.4rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--vp-c-divider);
}
.demo-header .icon {
font-size: 1.25rem;
font-size: 1rem;
}
.demo-header .title {
font-weight: bold;
font-size: 1rem;
font-size: 0.9rem;
color: var(--vp-c-text-1);
}
.demo-header .subtitle {
color: var(--vp-c-text-2);
font-size: 0.85rem;
margin-left: 0.5rem;
font-size: 0.75rem;
margin-left: 0.4rem;
}
.docker-visualization {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
gap: 0.5rem;
margin-bottom: 0.75rem;
align-items: stretch;
}
.layer {
flex: 1;
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border: 1px solid var(--vp-c-divider);
border-radius: 4px;
padding: 0.5rem;
cursor: pointer;
transition: all 0.3s;
}
@@ -129,9 +127,9 @@ const benefits = [
}
.layer h5 {
margin: 0 0 1rem 0;
margin: 0 0 0.5rem 0;
text-align: center;
font-size: 0.95rem;
font-size: 0.75rem;
color: var(--vp-c-text-1);
}
@@ -139,14 +137,14 @@ const benefits = [
.docker-stack {
display: flex;
flex-direction: column;
gap: 0.5rem;
gap: 0.25rem;
}
.layer-item {
padding: 0.6rem;
border-radius: 4px;
padding: 0.3rem;
border-radius: 3px;
text-align: center;
font-size: 0.8rem;
font-size: 0.65rem;
}
.layer-item.app {
@@ -181,47 +179,47 @@ const benefits = [
.containers {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
gap: 0.25rem;
}
.container-box {
background: rgba(102, 126, 234, 0.1);
border: 1px solid rgba(102, 126, 234, 0.3);
border-radius: 6px;
padding: 0.5rem;
border-radius: 4px;
padding: 0.25rem;
text-align: center;
}
.container-app {
font-weight: 600;
font-size: 0.8rem;
font-size: 0.65rem;
color: var(--vp-c-brand);
margin-bottom: 0.2rem;
margin-bottom: 0.1rem;
}
.container-deps {
font-size: 0.7rem;
font-size: 0.55rem;
color: var(--vp-c-text-2);
}
.docker-engine {
padding: 0.6rem;
padding: 0.3rem;
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.3);
border-radius: 4px;
border-radius: 3px;
text-align: center;
font-size: 0.8rem;
font-size: 0.65rem;
font-weight: 600;
color: #059669;
}
.host-os,
.hardware {
padding: 0.6rem;
padding: 0.3rem;
background: var(--vp-c-bg-soft);
border-radius: 4px;
border-radius: 3px;
text-align: center;
font-size: 0.8rem;
font-size: 0.65rem;
color: var(--vp-c-text-2);
}
@@ -230,45 +228,45 @@ const benefits = [
align-items: center;
font-weight: 700;
color: var(--vp-c-text-3);
font-size: 0.9rem;
font-size: 0.75rem;
}
.benefits-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
grid-template-columns: repeat(4, 1fr);
gap: 0.4rem;
}
.benefit-card {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 4px;
padding: 0.5rem;
text-align: center;
transition: all 0.2s;
}
.benefit-card:hover {
border-color: var(--vp-c-brand);
transform: translateY(-2px);
transform: translateY(-1px);
}
.benefit-icon {
font-size: 2rem;
margin-bottom: 0.5rem;
font-size: 1.25rem;
margin-bottom: 0.25rem;
}
.benefit-title {
font-weight: 600;
font-size: 0.95rem;
font-size: 0.75rem;
color: var(--vp-c-text-1);
margin-bottom: 0.25rem;
margin-bottom: 0.1rem;
}
.benefit-desc {
font-size: 0.8rem;
font-size: 0.65rem;
color: var(--vp-c-text-2);
line-height: 1.4;
line-height: 1.3;
}
@media (max-width: 768px) {
@@ -278,23 +276,23 @@ const benefits = [
.vs-divider {
justify-content: center;
padding: 0.5rem 0;
padding: 0.25rem 0;
}
.benefits-grid {
grid-template-columns: 1fr;
grid-template-columns: repeat(2, 1fr);
}
}
.info-box {
background: var(--vp-c-bg-alt);
padding: 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
padding: 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
color: var(--vp-c-text-2);
margin-top: 1rem;
margin-top: 0.5rem;
display: flex;
gap: 0.25rem;
gap: 0.2rem;
}
.info-box .icon {
@@ -96,10 +96,10 @@ const steps = [
<style scoped>
.deployment-flow-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -185,7 +185,7 @@ const steps = [
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 6px;
padding: 1rem;
padding: 0.75rem;
}
.step-detail h5 {
@@ -123,50 +123,48 @@ const stages = [
<style scoped>
.evolution-intro-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
gap: 0.4rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--vp-c-divider);
}
.demo-header .icon {
font-size: 1.25rem;
font-size: 1rem;
}
.demo-header .title {
font-weight: bold;
font-size: 1rem;
font-size: 0.9rem;
color: var(--vp-c-text-1);
}
.demo-header .subtitle {
color: var(--vp-c-text-2);
font-size: 0.85rem;
margin-left: 0.5rem;
font-size: 0.75rem;
margin-left: 0.4rem;
}
.timeline-cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.75rem;
margin-bottom: 1rem;
gap: 0.4rem;
margin-bottom: 0.5rem;
}
.stage-card {
background: var(--vp-c-bg);
border: 2px solid transparent;
border-radius: 8px;
border: 1px solid transparent;
border-radius: 4px;
padding: 0.75rem 0.5rem;
text-align: center;
cursor: pointer;
@@ -175,68 +173,67 @@ const stages = [
.stage-card:hover {
border-color: var(--vp-c-brand);
transform: translateY(-2px);
transform: translateY(-1px);
}
.stage-card.active {
border-color: var(--vp-c-brand);
background: var(--vp-c-brand-soft);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.stage-era {
font-size: 0.7rem;
font-size: 0.6rem;
color: var(--vp-c-text-3);
margin-bottom: 0.25rem;
margin-bottom: 0.1rem;
}
.stage-icon {
font-size: 1.5rem;
margin-bottom: 0.5rem;
font-size: 1rem;
margin-bottom: 0.2rem;
}
.stage-name {
font-size: 0.85rem;
font-size: 0.7rem;
font-weight: 600;
color: var(--vp-c-text-1);
margin-bottom: 0.25rem;
margin-bottom: 0.1rem;
}
.stage-arch {
font-size: 0.7rem;
font-size: 0.55rem;
color: var(--vp-c-text-3);
}
.stage-detail {
background: var(--vp-c-bg);
border-radius: 8px;
padding: 1rem;
border-radius: 4px;
padding: 0.5rem;
}
.detail-panel {
animation: fadeIn 0.4s ease;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
.detail-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
gap: 0.4rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--vp-c-divider);
}
.detail-icon {
font-size: 1.5rem;
font-size: 1rem;
}
.detail-header h4 {
font-size: 1rem;
font-size: 0.85rem;
font-weight: 600;
margin: 0;
color: var(--vp-c-text-1);
@@ -244,31 +241,32 @@ const stages = [
.detail-content {
display: grid;
gap: 0.75rem;
grid-template-columns: repeat(3, 1fr);
gap: 0.4rem;
}
.detail-section h5 {
font-size: 0.85rem;
font-size: 0.7rem;
font-weight: 600;
margin: 0 0 0.5rem 0;
margin: 0 0 0.3rem 0;
color: var(--vp-c-brand);
}
.detail-section p {
font-size: 0.8rem;
line-height: 1.6;
margin: 0 0 0.5rem 0;
font-size: 0.65rem;
line-height: 1.4;
margin: 0 0 0.3rem 0;
color: var(--vp-c-text-2);
}
.detail-section ul {
margin: 0;
padding-left: 1rem;
padding-left: 0.75rem;
}
.detail-section li {
font-size: 0.8rem;
line-height: 1.6;
font-size: 0.6rem;
line-height: 1.4;
margin-bottom: 0.25rem;
color: var(--vp-c-text-2);
}
@@ -240,10 +240,10 @@ const resetCluster = () => {
<style scoped>
.container-docker-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.demo-header {
@@ -273,8 +273,8 @@ const resetCluster = () => {
flex: 1;
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
cursor: pointer;
transition: all 0.3s;
}
@@ -398,8 +398,8 @@ const resetCluster = () => {
.benefit-card {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
text-align: center;
transition: all 0.2s;
}
@@ -150,7 +150,7 @@ const insightIcon = computed(() => {
.architecture {
background: var(--vp-c-bg);
border-radius: 10px;
padding: 1rem;
padding: 0.75rem;
border: 1px solid var(--vp-c-divider);
}
@@ -248,7 +248,7 @@ const insightIcon = computed(() => {
margin-top: 1.5rem;
padding: 0.75rem 1rem;
background: var(--vp-c-bg);
border-radius: 8px;
border-radius: 6px;
border: 1px solid var(--vp-c-divider);
}
@@ -134,10 +134,10 @@ const resetFlow = () => {
<style scoped>
.microservices-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.demo-header {
@@ -166,8 +166,8 @@ const resetFlow = () => {
.service-card {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
cursor: pointer;
transition: all 0.2s;
}
@@ -249,8 +249,8 @@ const resetFlow = () => {
.communication-flow {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
}
.communication-flow h5 {
@@ -131,52 +131,50 @@ const reset = () => {
<style scoped>
.monolith-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
gap: 0.4rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--vp-c-divider);
}
.demo-header .icon {
font-size: 1.25rem;
font-size: 1rem;
}
.demo-header .title {
font-weight: bold;
font-size: 1rem;
font-size: 0.9rem;
color: var(--vp-c-text-1);
}
.demo-header .subtitle {
color: var(--vp-c-text-2);
font-size: 0.85rem;
margin-left: 0.5rem;
font-size: 0.75rem;
margin-left: 0.4rem;
}
.monolith-diagram {
display: flex;
gap: 1.5rem;
gap: 0.75rem;
align-items: flex-start;
margin-bottom: 1.5rem;
margin-bottom: 0.75rem;
}
.monolith-box {
flex: 1;
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-brand);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.5rem;
transition: all 0.3s;
}
@@ -189,23 +187,24 @@ const reset = () => {
text-align: center;
font-weight: 600;
color: var(--vp-c-brand);
margin-bottom: 1rem;
padding-bottom: 0.5rem;
margin-bottom: 0.5rem;
padding-bottom: 0.25rem;
border-bottom: 1px solid var(--vp-c-divider);
font-size: 0.75rem;
}
.modules-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
margin-bottom: 1rem;
gap: 0.4rem;
margin-bottom: 0.5rem;
}
.module-box {
background: var(--vp-c-bg-soft);
border: 1px solid var(--vp-c-divider);
border-radius: 6px;
padding: 0.75rem;
border-radius: 4px;
padding: 0.4rem;
text-align: center;
cursor: pointer;
transition: all 0.2s;
@@ -226,21 +225,21 @@ const reset = () => {
}
.module-icon {
font-size: 1.5rem;
margin-bottom: 0.25rem;
font-size: 1rem;
margin-bottom: 0.1rem;
}
.module-name {
font-size: 0.8rem;
font-size: 0.65rem;
font-weight: 600;
color: var(--vp-c-text-1);
margin-bottom: 0.25rem;
margin-bottom: 0.1rem;
}
.module-status {
font-size: 0.7rem;
padding: 0.1rem 0.4rem;
border-radius: 10px;
font-size: 0.55rem;
padding: 0.05rem 0.25rem;
border-radius: 6px;
display: inline-block;
}
@@ -263,38 +262,38 @@ const reset = () => {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem;
gap: 0.3rem;
padding: 0.4rem;
background: var(--vp-c-bg-soft);
border: 1px dashed var(--vp-c-divider);
border-radius: 6px;
border-radius: 4px;
}
.db-icon {
font-size: 1.25rem;
font-size: 1rem;
}
.db-label {
font-size: 0.8rem;
font-size: 0.65rem;
color: var(--vp-c-text-2);
}
.request-flow {
width: 150px;
width: 100px;
display: flex;
flex-direction: column;
gap: 0.5rem;
gap: 0.25rem;
}
.flow-request {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem;
gap: 0.25rem;
padding: 0.3rem;
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 6px;
font-size: 0.75rem;
border-radius: 4px;
font-size: 0.6rem;
}
.flow-request.active {
@@ -317,19 +316,19 @@ const reset = () => {
.controls {
display: flex;
gap: 0.75rem;
gap: 0.4rem;
justify-content: center;
margin-bottom: 1.5rem;
margin-bottom: 0.75rem;
flex-wrap: wrap;
}
.control-btn {
padding: 0.5rem 1rem;
border-radius: 6px;
padding: 0.3rem 0.6rem;
border-radius: 4px;
border: 1px solid var(--vp-c-divider);
background: var(--vp-c-bg);
color: var(--vp-c-text-1);
font-size: 0.85rem;
font-size: 0.75rem;
cursor: pointer;
transition: all 0.2s;
}
@@ -347,34 +346,6 @@ const reset = () => {
background: rgba(239, 68, 68, 0.1);
}
.demo-explanation {
padding-top: 1.5rem;
border-top: 1px solid var(--vp-c-divider);
}
.demo-explanation h5 {
font-size: 1rem;
font-weight: 600;
color: var(--vp-c-text-1);
margin: 0 0 0.75rem 0;
}
.demo-explanation ul {
margin: 0 0 1rem 0;
padding-left: 1.25rem;
}
.demo-explanation li {
font-size: 0.9rem;
color: var(--vp-c-text-2);
line-height: 1.6;
margin-bottom: 0.4rem;
}
.demo-explanation li strong {
color: var(--vp-c-text-1);
}
@media (max-width: 768px) {
.monolith-diagram {
flex-direction: column;
@@ -389,13 +360,13 @@ const reset = () => {
.info-box {
background: var(--vp-c-bg-alt);
padding: 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
padding: 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
color: var(--vp-c-text-2);
margin-top: 1rem;
margin-top: 0.5rem;
display: flex;
gap: 0.25rem;
gap: 0.2rem;
}
.info-box .icon {
@@ -159,7 +159,7 @@ const deployRelease = () => {
.module-btn {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg);
padding: 0.5rem;
font-size: 0.9rem;
@@ -186,7 +186,7 @@ const deployRelease = () => {
.risk-meter {
background: var(--vp-c-bg);
border-radius: 10px;
padding: 1rem;
padding: 0.75rem;
border: 1px solid var(--vp-c-divider);
}
@@ -217,7 +217,7 @@ const deployRelease = () => {
margin-top: 1rem;
width: 100%;
border: none;
border-radius: 8px;
border-radius: 6px;
padding: 0.6rem;
background: var(--vp-c-brand);
color: #fff;
@@ -229,7 +229,7 @@ const deployRelease = () => {
margin-top: 0.75rem;
font-size: 0.9rem;
padding: 0.5rem 0.75rem;
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg);
border: 1px dashed var(--vp-c-divider);
}
@@ -79,10 +79,10 @@ const reset = () => {
<style scoped>
.monolith-microservice-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.controls {
@@ -129,8 +129,8 @@ const reset = () => {
.architecture-block {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
display: flex;
flex-direction: column;
align-items: center;
@@ -146,8 +146,8 @@ const reset = () => {
.server-container {
border: 2px solid #3b82f6;
background: #eff6ff;
padding: 1rem;
border-radius: 8px;
padding: 0.75rem;
border-radius: 6px;
width: 100%;
text-align: center;
transition: all 0.3s;
@@ -173,88 +173,86 @@ const sendRequest = async () => {
<style scoped>
.physical-server-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
gap: 0.4rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--vp-c-divider);
}
.demo-header .icon {
font-size: 1.25rem;
font-size: 1rem;
}
.demo-header .title {
font-weight: bold;
font-size: 1rem;
font-size: 0.9rem;
color: var(--vp-c-text-1);
}
.demo-header .subtitle {
color: var(--vp-c-text-2);
font-size: 0.85rem;
margin-left: 0.5rem;
font-size: 0.75rem;
margin-left: 0.4rem;
}
.demo-stage {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: 1rem;
margin-bottom: 1.5rem;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.client-zone,
.server-zone {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.5rem;
}
.zone-title {
font-size: 0.85rem;
font-size: 0.7rem;
font-weight: 600;
color: var(--vp-c-brand);
margin-bottom: 0.75rem;
margin-bottom: 0.4rem;
text-align: center;
}
.request-queue {
min-height: 60px;
min-height: 40px;
background: var(--vp-c-bg-soft);
border-radius: 6px;
padding: 0.5rem;
margin-bottom: 0.75rem;
border-radius: 4px;
padding: 0.3rem;
margin-bottom: 0.4rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
gap: 0.15rem;
}
.request-card {
background: var(--vp-c-brand);
color: white;
border-radius: 4px;
padding: 0.4rem 0.5rem;
border-radius: 3px;
padding: 0.25rem 0.3rem;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.75rem;
gap: 0.3rem;
font-size: 0.6rem;
}
.req-method {
background: rgba(255, 255, 255, 0.2);
padding: 0.1rem 0.3rem;
border-radius: 3px;
padding: 0.05rem 0.2rem;
border-radius: 2px;
font-weight: 600;
}
@@ -263,9 +261,9 @@ const sendRequest = async () => {
background: var(--vp-c-brand);
color: white;
border: none;
border-radius: 6px;
padding: 0.6rem;
font-size: 0.85rem;
border-radius: 4px;
padding: 0.4rem;
font-size: 0.75rem;
cursor: pointer;
transition: all 0.2s;
}
@@ -284,12 +282,12 @@ const sendRequest = async () => {
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 60px;
min-width: 40px;
}
.network-line {
width: 3px;
height: 120px;
width: 2px;
height: 80px;
background: var(--vp-c-divider);
border-radius: 2px;
position: relative;
@@ -303,29 +301,29 @@ const sendRequest = async () => {
}
.latency-display {
margin-top: 0.5rem;
font-size: 0.75rem;
margin-top: 0.3rem;
font-size: 0.6rem;
color: var(--vp-c-brand);
font-weight: 600;
}
.server-status {
margin-bottom: 0.75rem;
margin-bottom: 0.4rem;
}
.status-indicator {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem;
gap: 0.3rem;
padding: 0.3rem;
background: var(--vp-c-bg-soft);
border-radius: 6px;
margin-bottom: 0.5rem;
border-radius: 4px;
margin-bottom: 0.3rem;
}
.status-dot {
width: 8px;
height: 8px;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--vp-c-success);
}
@@ -341,59 +339,59 @@ const sendRequest = async () => {
}
.status-text {
font-size: 0.8rem;
font-size: 0.65rem;
color: var(--vp-c-text-2);
}
.cpu-usage {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.3rem;
}
.cpu-bar {
flex: 1;
height: 6px;
height: 4px;
background: var(--vp-c-bg-soft);
border-radius: 3px;
border-radius: 2px;
overflow: hidden;
}
.cpu-fill {
height: 100%;
background: var(--vp-c-danger);
border-radius: 3px;
border-radius: 2px;
transition: width 0.1s ease;
}
.cpu-text {
font-size: 0.7rem;
font-size: 0.55rem;
color: var(--vp-c-text-2);
min-width: 60px;
min-width: 50px;
text-align: right;
}
.process-queue {
display: flex;
flex-direction: column;
gap: 0.4rem;
gap: 0.25rem;
}
.process-item {
background: var(--vp-c-bg-soft);
border-radius: 6px;
padding: 0.5rem;
border-radius: 4px;
padding: 0.3rem;
}
.proc-name {
display: block;
font-size: 0.7rem;
font-size: 0.55rem;
color: var(--vp-c-text-2);
margin-bottom: 0.3rem;
margin-bottom: 0.2rem;
}
.proc-progress {
height: 4px;
height: 3px;
background: var(--vp-c-bg);
border-radius: 2px;
overflow: hidden;
@@ -406,76 +404,32 @@ const sendRequest = async () => {
transition: width 0.1s linear;
}
.demo-explanation {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid var(--vp-c-divider);
}
.demo-explanation h5 {
font-size: 1rem;
font-weight: 600;
color: var(--vp-c-text-1);
margin: 0 0 0.75rem 0;
}
.demo-explanation ul {
margin: 0 0 1rem 0;
padding-left: 1.25rem;
}
.demo-explanation li {
font-size: 0.9rem;
color: var(--vp-c-text-2);
line-height: 1.6;
margin-bottom: 0.4rem;
}
.demo-explanation li strong {
color: var(--vp-c-text-1);
}
.demo-conclusion {
font-size: 0.9rem;
color: var(--vp-c-text-2);
line-height: 1.6;
margin: 0;
padding: 0.75rem;
background: var(--vp-c-bg-soft);
border-radius: 6px;
}
.highlight {
color: var(--vp-c-brand);
font-weight: 600;
}
@media (max-width: 768px) {
.demo-stage {
grid-template-columns: 1fr;
gap: 1rem;
gap: 0.5rem;
}
.connection-zone {
flex-direction: row;
height: 60px;
height: 40px;
}
.network-line {
width: 100%;
height: 3px;
height: 2px;
}
}
.info-box {
background: var(--vp-c-bg-alt);
padding: 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
padding: 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
color: var(--vp-c-text-2);
margin-top: 1rem;
margin-top: 0.5rem;
display: flex;
gap: 0.25rem;
gap: 0.2rem;
}
.info-box .icon {
@@ -62,10 +62,10 @@ const comparisonData = [
<style scoped>
.scaling-strategy-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -142,7 +142,7 @@ const scaleHint = computed(() => {
.card {
background: var(--vp-c-bg);
border-radius: 12px;
padding: 1rem;
padding: 0.75rem;
border: 1px solid var(--vp-c-divider);
}
@@ -161,10 +161,10 @@ onUnmounted(() => {
<style scoped>
.serverless-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.demo-header {
@@ -199,8 +199,8 @@ onUnmounted(() => {
.function-card {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
cursor: pointer;
transition: all 0.2s;
text-align: center;
@@ -276,8 +276,8 @@ onUnmounted(() => {
.auto-scaling-panel {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
}
.scaling-title {
@@ -335,8 +335,8 @@ onUnmounted(() => {
.traffic-simulator {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
margin-bottom: 1.5rem;
}
@@ -103,139 +103,127 @@ const eras = [
<style scoped>
.tech-stack-timeline-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
margin-bottom: 1rem;
margin-bottom: 0.5rem;
}
.demo-header h4 {
margin: 0 0 0.25rem 0;
font-size: 1rem;
margin: 0 0 0.15rem 0;
font-size: 0.9rem;
color: var(--vp-c-text-1);
}
.demo-header p {
margin: 0;
font-size: 0.85rem;
font-size: 0.75rem;
color: var(--vp-c-text-2);
}
.timeline {
display: flex;
flex-direction: column;
gap: 0.5rem;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.4rem;
}
.era-section {
display: flex;
gap: 0.75rem;
flex-direction: column;
gap: 0.25rem;
cursor: pointer;
transition: all 0.2s;
background: var(--vp-c-bg);
border-radius: 4px;
padding: 0.4rem;
}
.era-section:hover,
.era-section.active {
background: var(--vp-c-bg);
border-radius: 6px;
background: var(--vp-c-brand-soft);
}
.era-marker {
display: flex;
flex-direction: column;
align-items: center;
width: 24px;
display: none;
}
.era-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--vp-c-divider);
border: 2px solid var(--vp-c-bg);
transition: all 0.2s;
display: none;
}
.era-section.active .era-dot {
background: var(--vp-c-brand);
border-color: var(--vp-c-brand);
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
display: none;
}
.era-line {
flex: 1;
width: 2px;
background: var(--vp-c-divider);
margin: 4px 0;
display: none;
}
.era-content {
flex: 1;
padding: 0.5rem 0.5rem 0.5rem 0;
}
.era-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
gap: 0.25rem;
margin-bottom: 0.3rem;
flex-wrap: wrap;
}
.era-icon {
font-size: 1.25rem;
font-size: 1rem;
}
.era-name {
font-weight: 600;
font-size: 0.95rem;
font-size: 0.7rem;
color: var(--vp-c-text-1);
}
.era-period {
font-size: 0.75rem;
font-size: 0.6rem;
color: var(--vp-c-text-3);
background: var(--vp-c-bg-soft);
padding: 0.1rem 0.4rem;
border-radius: 4px;
padding: 0.05rem 0.25rem;
border-radius: 3px;
}
.tech-categories {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.category {
background: var(--vp-c-bg-soft);
border-radius: 4px;
padding: 0.5rem;
border-radius: 3px;
padding: 0.25rem;
}
.category-name {
font-size: 0.75rem;
font-size: 0.6rem;
font-weight: 600;
color: var(--vp-c-text-2);
margin-bottom: 0.25rem;
margin-bottom: 0.1rem;
}
.tech-tags {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
gap: 0.15rem;
}
.tech-tag {
font-size: 0.7rem;
padding: 0.1rem 0.35rem;
font-size: 0.55rem;
padding: 0.05rem 0.2rem;
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 3px;
border-radius: 2px;
color: var(--vp-c-text-2);
}
@@ -246,20 +234,20 @@ const eras = [
}
@media (max-width: 768px) {
.tech-categories {
grid-template-columns: 1fr;
.timeline {
grid-template-columns: repeat(2, 1fr);
}
}
.info-box {
background: var(--vp-c-bg-alt);
padding: 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
padding: 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
color: var(--vp-c-text-2);
margin-top: 1rem;
margin-top: 0.5rem;
display: flex;
gap: 0.25rem;
gap: 0.2rem;
}
.info-box .icon {