Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +153 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: weifuwu
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,153 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-CN">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>微服务架构详解</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
|
| 12 |
+
}
|
| 13 |
+
.card-hover:hover {
|
| 14 |
+
transform: translateY(-5px);
|
| 15 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 16 |
+
}
|
| 17 |
+
.tab-content {
|
| 18 |
+
display: none;
|
| 19 |
+
}
|
| 20 |
+
.tab-content.active {
|
| 21 |
+
display: block;
|
| 22 |
+
animation: fadeIn 0.5s ease-in-out;
|
| 23 |
+
}
|
| 24 |
+
@keyframes fadeIn {
|
| 25 |
+
from { opacity: 0; }
|
| 26 |
+
to { opacity: 1; }
|
| 27 |
+
}
|
| 28 |
+
.timeline-item:not(:last-child)::after {
|
| 29 |
+
content: '';
|
| 30 |
+
position: absolute;
|
| 31 |
+
left: 7px;
|
| 32 |
+
top: 24px;
|
| 33 |
+
height: calc(100% - 24px);
|
| 34 |
+
width: 2px;
|
| 35 |
+
background-color: #3B82F6;
|
| 36 |
+
}
|
| 37 |
+
</style>
|
| 38 |
+
</head>
|
| 39 |
+
<body class="bg-gray-50 font-sans">
|
| 40 |
+
<!-- 导航栏 -->
|
| 41 |
+
<nav class="gradient-bg text-white shadow-lg">
|
| 42 |
+
<div class="container mx-auto px-6 py-4">
|
| 43 |
+
<div class="flex items-center justify-between">
|
| 44 |
+
<div class="flex items-center space-x-4">
|
| 45 |
+
<i class="fas fa-server text-2xl"></i>
|
| 46 |
+
<span class="text-xl font-bold">微服务架构详解</span>
|
| 47 |
+
</div>
|
| 48 |
+
<div class="hidden md:flex space-x-8">
|
| 49 |
+
<a href="#overview" class="hover:text-blue-200 transition">概述</a>
|
| 50 |
+
<a href="#features" class="hover:text-blue-200 transition">特点</a>
|
| 51 |
+
<a href="#comparison" class="hover:text-blue-200 transition">对比</a>
|
| 52 |
+
<a href="#implementation" class="hover:text-blue-200 transition">实施</a>
|
| 53 |
+
</div>
|
| 54 |
+
<button class="md:hidden focus:outline-none" id="mobile-menu-button">
|
| 55 |
+
<i class="fas fa-bars text-xl"></i>
|
| 56 |
+
</button>
|
| 57 |
+
</div>
|
| 58 |
+
<div class="md:hidden hidden mt-4" id="mobile-menu">
|
| 59 |
+
<a href="#overview" class="block py-2 hover:bg-blue-700 px-2 rounded transition">概述</a>
|
| 60 |
+
<a href="#features" class="block py-2 hover:bg-blue-700 px-2 rounded transition">特点</a>
|
| 61 |
+
<a href="#comparison" class="block py-2 hover:bg-blue-700 px-2 rounded transition">对比</a>
|
| 62 |
+
<a href="#implementation" class="block py-2 hover:bg-blue-700 px-2 rounded transition">实施</a>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</nav>
|
| 66 |
+
|
| 67 |
+
<!-- 英雄区域 -->
|
| 68 |
+
<header class="gradient-bg text-white py-20">
|
| 69 |
+
<div class="container mx-auto px-6 text-center">
|
| 70 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6">微服务架构解析</h1>
|
| 71 |
+
<p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">构建灵活、可扩展的现代应用系统的架构模式</p>
|
| 72 |
+
<button class="bg-white text-blue-600 font-bold px-8 py-3 rounded-full hover:bg-gray-100 transition transform hover:scale-105">
|
| 73 |
+
了解更多 <i class="fas fa-arrow-right ml-2"></i>
|
| 74 |
+
</button>
|
| 75 |
+
</div>
|
| 76 |
+
</header>
|
| 77 |
+
|
| 78 |
+
<!-- 概述部分 -->
|
| 79 |
+
<section id="overview" class="py-16 bg-white">
|
| 80 |
+
<div class="container mx-auto px-6">
|
| 81 |
+
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">什么是微服务架构?</h2>
|
| 82 |
+
|
| 83 |
+
<div class="flex flex-col md:flex-row items-center mb-16">
|
| 84 |
+
<div class="md:w-1/2 mb-8 md:mb-0 md:pr-10">
|
| 85 |
+
<h3 class="text-2xl font-semibold mb-4 text-gray-700">微服务的定义</h3>
|
| 86 |
+
<p class="text-gray-600 leading-relaxed mb-4">
|
| 87 |
+
微服务架构是一种将单一应用程序划分为一组小型服务的方法,每个服务运行在自己的进程中,服务之间通过轻量级机制(通常是HTTP资源API)进行通信。
|
| 88 |
+
</p>
|
| 89 |
+
<p class="text-gray-600 leading-relaxed">
|
| 90 |
+
这些服务围绕业务能力构建,可以独立部署,由完全自动化的部署机制管理,服务可以使��不同的编程语言和数据存储技术。
|
| 91 |
+
</p>
|
| 92 |
+
</div>
|
| 93 |
+
<div class="md:w-1/2">
|
| 94 |
+
<img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 95 |
+
alt="微服务架构"
|
| 96 |
+
class="rounded-lg shadow-xl w-full h-auto">
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
|
| 100 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-12">
|
| 101 |
+
<div class="bg-gray-50 p-6 rounded-lg shadow-md card-hover transition duration-300">
|
| 102 |
+
<div class="text-blue-500 mb-4">
|
| 103 |
+
<i class="fas fa-cubes text-3xl"></i>
|
| 104 |
+
</div>
|
| 105 |
+
<h4 class="font-bold text-xl mb-3 text-gray-800">服务组件化</h4>
|
| 106 |
+
<p class="text-gray-600">将应用程序分解为多个小型、独立的服务单元,每个服务实现特定的业务功能。</p>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<div class="bg-gray-50 p-6 rounded-lg shadow-md card-hover transition duration-300">
|
| 110 |
+
<div class="text-blue-500 mb-4">
|
| 111 |
+
<i class="fas fa-network-wired text-3xl"></i>
|
| 112 |
+
</div>
|
| 113 |
+
<h4 class="font-bold text-xl mb-3 text-gray-800">去中心化治理</h4>
|
| 114 |
+
<p class="text-gray-600">每个服务可以选择最适合的技术栈,无需统一的技术标准。</p>
|
| 115 |
+
</div>
|
| 116 |
+
|
| 117 |
+
<div class="bg-gray-50 p-6 rounded-lg shadow-md card-hover transition duration-300">
|
| 118 |
+
<div class="text-blue-500 mb-4">
|
| 119 |
+
<i class="fas fa-expand text-3xl"></i>
|
| 120 |
+
</div>
|
| 121 |
+
<h4 class="font-bold text-xl mb-3 text-gray-800">弹性扩展</h4>
|
| 122 |
+
<p class="text-gray-600">可以根据需求独立扩展特定服务,而不需要扩展整个应用程序。</p>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
</section>
|
| 127 |
+
|
| 128 |
+
<!-- 特点部分 -->
|
| 129 |
+
<section id="features" class="py-16 bg-gray-50">
|
| 130 |
+
<div class="container mx-auto px-6">
|
| 131 |
+
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">微服务架构的核心特点</h2>
|
| 132 |
+
|
| 133 |
+
<div class="flex flex-wrap -mx-4">
|
| 134 |
+
<div class="w-full md:w-1/2 lg:w-1/3 px-4 mb-8">
|
| 135 |
+
<div class="bg-white p-6 rounded-lg shadow-md h-full card-hover transition duration-300">
|
| 136 |
+
<div class="flex items-center mb-4">
|
| 137 |
+
<div class="bg-blue-100 p-3 rounded-full mr-4">
|
| 138 |
+
<i class="fas fa-code-branch text-blue-600 text-xl"></i>
|
| 139 |
+
</div>
|
| 140 |
+
<h3 class="text-xl font-semibold text-gray-800">单一职责</h3>
|
| 141 |
+
</div>
|
| 142 |
+
<p class="text-gray-600">
|
| 143 |
+
每个微服务只关注完成一个特定的业务功能,遵循单一职责原则。这使得服务更加内聚,边界清晰,易于理解和维护。
|
| 144 |
+
</p>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
|
| 148 |
+
<div class="w-full md:w-1/2 lg:w-1/3 px-4 mb-8">
|
| 149 |
+
<div class="bg-white p-6 rounded-lg shadow-md h-full card-hover transition duration-300">
|
| 150 |
+
<div class="flex items-center mb-4">
|
| 151 |
+
<div class="bg-blue-100 p-3 rounded-full mr-4">
|
| 152 |
+
<i class="fas
|
| 153 |
+
</html>
|