From 29060129205eb430e51119d02bcd7f3edeaa5187 Mon Sep 17 00:00:00 2001 From: satori Date: Mon, 31 Jan 2022 07:06:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=B1=80=E7=AA=81=E7=84=B6=E5=8F=98?= =?UTF-8?q?=E4=BA=86..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/sass/default.sass | 32 ++++++++ assets/sass/main.sass | 33 ++++++++ components/Model/Box.vue | 129 ++++++++++++++++++++++++++++++++ components/Model/ConesInner.vue | 61 +++++++++++++++ layouts/default.vue | 45 +++-------- pages/index.vue | 99 ++++++++++-------------- 6 files changed, 305 insertions(+), 94 deletions(-) create mode 100644 assets/sass/default.sass create mode 100644 assets/sass/main.sass create mode 100644 components/Model/Box.vue create mode 100644 components/Model/ConesInner.vue diff --git a/assets/sass/default.sass b/assets/sass/default.sass new file mode 100644 index 0000000..eb0e865 --- /dev/null +++ b/assets/sass/default.sass @@ -0,0 +1,32 @@ +@import "main.sass" + +// 元素的默认状态 +html, body + font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif + font-size: 16px + word-spacing: 1px + -ms-text-size-adjust: 100% + -webkit-text-size-adjust: 100% + -moz-osx-font-smoothing: grayscale + -webkit-font-smoothing: antialiased + box-sizing: border-box + margin: 0 + padding: 0 + color: var(--color-default) + background-color: var(--background-default) + min-height: 100vh + +button + background: #cc1414 + color: #ffffff + border: none + border-radius: .25rem + +a + text-decoration: none +a:link //未访问的 + color: #222222 +a:visited //已访问的 + color: #444444 +a:active //点击时 + color: #2233cc diff --git a/assets/sass/main.sass b/assets/sass/main.sass new file mode 100644 index 0000000..591c328 --- /dev/null +++ b/assets/sass/main.sass @@ -0,0 +1,33 @@ +// 调色盘 @satori (不涉及默认元素操作) +// +// 背景色 基调为纯白 #ffffff +// 背景色 主调为薄灰 #f5f6f7 +// +// 前景色 基调为深灰 #222222 +// 前景色 主调为厚黑 #111111 + +:root + --background-default: #ffffff + --background-main: #f5f6f7 + + --color-default: rgba(0,30,38, 1) + --color-main: rgba(0,30,38, 1) + +// 仪式 +.ceremony + padding-top: 10rem + padding-bottom: 10rem + margin: 10rem 0 + background: var(--background-main) + +// 界限 +.circumscription + @media (min-width: 480px) + margin: 0 2rem + @media (min-width: 1280px) + max-width: 1200px + margin-left: auto + margin-right: auto + +// 汇聚 converge +// 过渡 transition: all .75s linear diff --git a/components/Model/Box.vue b/components/Model/Box.vue new file mode 100644 index 0000000..35be8ba --- /dev/null +++ b/components/Model/Box.vue @@ -0,0 +1,129 @@ + + + diff --git a/components/Model/ConesInner.vue b/components/Model/ConesInner.vue new file mode 100644 index 0000000..ebb2a94 --- /dev/null +++ b/components/Model/ConesInner.vue @@ -0,0 +1,61 @@ + + + \ No newline at end of file diff --git a/layouts/default.vue b/layouts/default.vue index f6fde7b..0c3c203 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -18,6 +18,9 @@