From 43a04f82656c5fee87817149c60ab503200e227f Mon Sep 17 00:00:00 2001
From: wegi8 <18272190626@163.com>
Date: Mon, 2 May 2022 16:27:21 +0800
Subject: [PATCH 1/2] feat: cli pages and homepage
---
packages/varlet-cli/site/index.html | 8 +
packages/varlet-cli/site/pc/App.vue | 398 +-----------------
packages/varlet-cli/site/pc/Layout.vue | 395 +++++++++++++++++
.../site/pc/components/AnimationBox.vue | 24 ++
.../site/pc/components/AppHeader.vue | 41 +-
.../site/pc/components/AppSidebar.vue | 2 +-
.../site/pc/components/LogoAnimation.vue | 71 ++++
packages/varlet-cli/site/pc/floating.ts | 7 +
.../varlet-cli/site/pc/pages/index.en-US.vue | 243 +++++++++++
.../varlet-cli/site/pc/pages/index.zh-CN.vue | 243 +++++++++++
.../src/compiler/compileSiteEntry.ts | 97 +++--
packages/varlet-cli/src/shared/constant.ts | 3 +
packages/varlet-cli/varlet.default.config.js | 2 +-
packages/varlet-ui/docs/home.en-US.md | 7 -
packages/varlet-ui/docs/home.zh-CN.md | 7 -
15 files changed, 1107 insertions(+), 441 deletions(-)
create mode 100644 packages/varlet-cli/site/pc/Layout.vue
create mode 100644 packages/varlet-cli/site/pc/components/AnimationBox.vue
create mode 100644 packages/varlet-cli/site/pc/components/LogoAnimation.vue
create mode 100644 packages/varlet-cli/site/pc/floating.ts
create mode 100644 packages/varlet-cli/site/pc/pages/index.en-US.vue
create mode 100644 packages/varlet-cli/site/pc/pages/index.zh-CN.vue
diff --git a/packages/varlet-cli/site/index.html b/packages/varlet-cli/site/index.html
index 9b8842accda..bd2ed213beb 100644
--- a/packages/varlet-cli/site/index.html
+++ b/packages/varlet-cli/site/index.html
@@ -20,6 +20,14 @@
font-style: normal;
font-display: swap;
}
+ body {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0px;
+ font-family: 'Roboto', sans-serif;
+ background: var(--site-config-color-body);
+ color: var(--site-config-color-text);
+ }
-
-
-
+
+
+
+
+
+
diff --git a/packages/varlet-cli/site/pc/Layout.vue b/packages/varlet-cli/site/pc/Layout.vue
new file mode 100644
index 00000000000..3957ac55a0f
--- /dev/null
+++ b/packages/varlet-cli/site/pc/Layout.vue
@@ -0,0 +1,395 @@
+
+
+
+
+
+
+
+
+
diff --git a/packages/varlet-cli/site/pc/components/AnimationBox.vue b/packages/varlet-cli/site/pc/components/AnimationBox.vue
new file mode 100644
index 00000000000..48b84ee3de6
--- /dev/null
+++ b/packages/varlet-cli/site/pc/components/AnimationBox.vue
@@ -0,0 +1,24 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/varlet-cli/site/pc/components/AppHeader.vue b/packages/varlet-cli/site/pc/components/AppHeader.vue
index 95f84c555e6..39582cbe376 100644
--- a/packages/varlet-cli/site/pc/components/AppHeader.vue
+++ b/packages/varlet-cli/site/pc/components/AppHeader.vue
@@ -1,7 +1,7 @@