diff --git a/src/config/Easing.js b/src/config/Easing.js new file mode 100644 index 0000000..d25d03f --- /dev/null +++ b/src/config/Easing.js @@ -0,0 +1,189 @@ +/* eslint-disable */ +/** + * The Ease class provides a collection of easing functions for use with tween.js. + */ +const Easing = { + Linear: { + None: function (amount) { + return amount; + } + }, + Quadratic: { + In: function (amount) { + return amount * amount; + }, + Out: function (amount) { + return amount * (2 - amount); + }, + InOut: function (amount) { + if ((amount *= 2) < 1) { + return 0.5 * amount * amount; + } + return -0.5 * (--amount * (amount - 2) - 1); + } + }, + Cubic: { + In: function (amount) { + return amount * amount * amount; + }, + Out: function (amount) { + return --amount * amount * amount + 1; + }, + InOut: function (amount) { + if ((amount *= 2) < 1) { + return 0.5 * amount * amount * amount; + } + return 0.5 * ((amount -= 2) * amount * amount + 2); + } + }, + Quartic: { + In: function (amount) { + return amount * amount * amount * amount; + }, + Out: function (amount) { + return 1 - --amount * amount * amount * amount; + }, + InOut: function (amount) { + if ((amount *= 2) < 1) { + return 0.5 * amount * amount * amount * amount; + } + return -0.5 * ((amount -= 2) * amount * amount * amount - 2); + } + }, + Quintic: { + In: function (amount) { + return amount * amount * amount * amount * amount; + }, + Out: function (amount) { + return --amount * amount * amount * amount * amount + 1; + }, + InOut: function (amount) { + if ((amount *= 2) < 1) { + return 0.5 * amount * amount * amount * amount * amount; + } + return 0.5 * ((amount -= 2) * amount * amount * amount * amount + 2); + } + }, + Sinusoidal: { + In: function (amount) { + return 1 - Math.cos((amount * Math.PI) / 2); + }, + Out: function (amount) { + return Math.sin((amount * Math.PI) / 2); + }, + InOut: function (amount) { + return 0.5 * (1 - Math.cos(Math.PI * amount)); + } + }, + Exponential: { + In: function (amount) { + return amount === 0 ? 0 : Math.pow(1024, amount - 1); + }, + Out: function (amount) { + return amount === 1 ? 1 : 1 - Math.pow(2, -10 * amount); + }, + InOut: function (amount) { + if (amount === 0) { + return 0; + } + if (amount === 1) { + return 1; + } + if ((amount *= 2) < 1) { + return 0.5 * Math.pow(1024, amount - 1); + } + return 0.5 * (-Math.pow(2, -10 * (amount - 1)) + 2); + } + }, + Circular: { + In: function (amount) { + return 1 - Math.sqrt(1 - amount * amount); + }, + Out: function (amount) { + return Math.sqrt(1 - --amount * amount); + }, + InOut: function (amount) { + if ((amount *= 2) < 1) { + return -0.5 * (Math.sqrt(1 - amount * amount) - 1); + } + return 0.5 * (Math.sqrt(1 - (amount -= 2) * amount) + 1); + } + }, + Elastic: { + In: function (amount) { + if (amount === 0) { + return 0; + } + if (amount === 1) { + return 1; + } + return -Math.pow(2, 10 * (amount - 1)) * Math.sin((amount - 1.1) * 5 * Math.PI); + }, + Out: function (amount) { + if (amount === 0) { + return 0; + } + if (amount === 1) { + return 1; + } + return Math.pow(2, -10 * amount) * Math.sin((amount - 0.1) * 5 * Math.PI) + 1; + }, + InOut: function (amount) { + if (amount === 0) { + return 0; + } + if (amount === 1) { + return 1; + } + amount *= 2; + if (amount < 1) { + return -0.5 * Math.pow(2, 10 * (amount - 1)) * Math.sin((amount - 1.1) * 5 * Math.PI); + } + return 0.5 * Math.pow(2, -10 * (amount - 1)) * Math.sin((amount - 1.1) * 5 * Math.PI) + 1; + } + }, + Back: { + In: function (amount) { + var s = 1.70158; + return amount * amount * ((s + 1) * amount - s); + }, + Out: function (amount) { + var s = 1.70158; + return --amount * amount * ((s + 1) * amount + s) + 1; + }, + InOut: function (amount) { + var s = 1.70158 * 1.525; + if ((amount *= 2) < 1) { + return 0.5 * (amount * amount * ((s + 1) * amount - s)); + } + return 0.5 * ((amount -= 2) * amount * ((s + 1) * amount + s) + 2); + } + }, + Bounce: { + In: function (amount) { + return 1 - Easing.Bounce.Out(1 - amount); + }, + Out: function (amount) { + if (amount < 1 / 2.75) { + return 7.5625 * amount * amount; + } + else if (amount < 2 / 2.75) { + return 7.5625 * (amount -= 1.5 / 2.75) * amount + 0.75; + } + else if (amount < 2.5 / 2.75) { + return 7.5625 * (amount -= 2.25 / 2.75) * amount + 0.9375; + } + else { + return 7.5625 * (amount -= 2.625 / 2.75) * amount + 0.984375; + } + }, + InOut: function (amount) { + if (amount < 0.5) { + return Easing.Bounce.In(amount * 2) * 0.5; + } + return Easing.Bounce.Out(amount * 2 - 1) * 0.5 + 0.5; + } + } +} + +export default Easing diff --git a/src/images/che.png b/src/images/che.png new file mode 100644 index 0000000..d73781d Binary files /dev/null and b/src/images/che.png differ diff --git a/src/images/che1.png b/src/images/che1.png new file mode 100644 index 0000000..4fd97f1 Binary files /dev/null and b/src/images/che1.png differ diff --git a/src/pages/canvas.vue b/src/pages/canvas.vue new file mode 100644 index 0000000..0196222 --- /dev/null +++ b/src/pages/canvas.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/src/pages/index.vue b/src/pages/index.vue index 1ecf642..31eccd1 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -1,111 +1,147 @@ diff --git a/src/style/layout.styl b/src/style/layout.styl index ff17549..cc0eb7e 100644 --- a/src/style/layout.styl +++ b/src/style/layout.styl @@ -11,15 +11,31 @@ font-size: 16px; } .el-input__inner { - height 50px; - line-height: 50px; + height 40px; + font-size: 14px; + line-height: 40px; + // text-align: right; border: 0; background-color: transparent; - color: #fff; + color: #b0c7e8; +} +.el-select-dropdown__item { + // text-align: right; + color: #b0c7e8; +} +.el-select-dropdown { + border-color: #47567d; + background-color: #47567d; +} +.el-popper[x-placement^=bottom] .popper__arrow::after { + border-bottom-color: #47567d; +} +.el-popper[x-placement^=bottom] .popper__arrow { + border-bottom-color: #47567d; } .button-wrap { - margin: 30px 0 50px 0; + margin-top: 30px; } .button { @@ -29,13 +45,36 @@ padding: 0 10px border: 1px solid #fff; border-radius: 10px; - background-color: transparent; + background: transparent; } .button_s { font-size: 12px; padding: 0 2px } .btn-primary { - background-color: #14A3F3; - border-color: #14A3F3; -} \ No newline at end of file + background: linear-gradient(0deg, #005ad2, #00a0ec); + border-color: #083a7e; +} +.contianer + _wh(100vw, 100vh) + padding 2% +.content + _wh(100%, 100%) +.l-wrap + _wh(34%, 100%) +.r-wrap + _wh(65%, 100%) + background: linear-gradient(90deg, #213a62, #243a63); + border-radius: 10px; +.item-wrap + width 100% + padding 15px 8px + background: linear-gradient(90deg, #213a62, #243a63); + border-radius: 10px; + margin-top: 20px; +.filter-name + _font(18px, 18px, #fff, 700,) +.filter-label + _font(16px, 40px, #cee4ff,,) +.filter-value + _font(14px, 40px, #b0c7e8,,right) \ No newline at end of file diff --git a/src/style/reset.css b/src/style/reset.css index 9deb3fb..f3e6098 100644 --- a/src/style/reset.css +++ b/src/style/reset.css @@ -17,7 +17,7 @@ body, html { -webkit-user-select: auto; -ms-user-select: auto; user-select: auto; - background-color: #1058A0; + background: linear-gradient(358deg, #031229,#1d2b48,#0a122c); } input[type="button"], input[type="submit"], input[type="search"], input[type="reset"], textarea, select{