├── LICENSE ├── README.md ├── docs ├── demo-01 │ ├── demo-01.gif │ └── index.html ├── demo-02 │ ├── icos │ │ ├── blog.png │ │ ├── icons8-github-64.png │ │ ├── 知乎.png │ │ ├── 笔记本.png │ │ └── 符号-代码.png │ ├── index.html │ └── style │ │ └── style.css ├── demo-03 │ ├── README.md │ ├── icos │ │ ├── blog.png │ │ ├── icons8-github-64.png │ │ ├── 摘录.png │ │ ├── 知乎.png │ │ ├── 笔记本.png │ │ └── 符号-代码.png │ ├── index.html │ ├── style │ │ └── style.css │ └── 果冻.gif ├── demo-04 │ ├── demo-04.gif │ ├── index.html │ └── style.css ├── demo-05 │ ├── demo-05.gif │ ├── index.html │ └── style.css ├── demo-06 │ ├── demo-06.png │ ├── index.html │ └── style.css ├── demo-07 │ ├── demo-07.gif │ └── index.html ├── demo-08 │ ├── demo-08.gif │ ├── img │ │ ├── after.png │ │ ├── before.png │ │ └── letter_bg.png │ ├── index.html │ └── style.css ├── demo-09 │ ├── demo-09.gif │ ├── index.html │ └── style.css ├── demo-10 │ └── index.html ├── icos │ ├── demo-01.png │ ├── demo-03.png │ ├── demo-04.png │ ├── demo-05.png │ ├── demo-06.png │ ├── demo-07.png │ ├── demo-08.png │ ├── demo-09.png │ ├── demo-10.png │ ├── demo-11.png │ ├── demo-12.png │ ├── demo-13.png │ ├── demo-14.png │ ├── demo-15.png │ ├── demo-16.png │ ├── demo-17.png │ ├── demo-18.png │ ├── demo-19.png │ ├── demo-20.png │ └── demo-21.png ├── index.html └── style │ └── style.css └── vue-study ├── 1-note ├── README.md └── index.html ├── 2-weather ├── README.md └── index.html └── index.html /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 step 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 👋 简介 2 | 3 | 该仓库为学习前端知识所创建,有一些漂亮的静态界面和一些学习 Vue 过程中搜集的案例。 4 | 5 | 本来静态界面是可以通过 github pages 展示,目前失效了,可以在本地打开来看。 6 | 7 | # 🧐 Vue 练手项目 8 | 9 | Learn by doing! 10 | 11 | 1. [vue 记事本开发](vue-study/1-note/README.md) 12 | 13 | # 🎉 下载方式 14 | 15 | 可以使用 git bash 直接 clone 本厂库。 16 | ```bash 17 | git clone https://github.com/weijiew/web-step.git 18 | ``` 19 | 20 | # 🥞 更新 21 | 22 | > update 2020/5/24 增加了 [github pages](https://weijiew.com/web-step/) 。 23 | 24 | > update 2020/5/26 调整格式,添加 icon 。 25 | 26 | > update 2020/12/12 添加了 Vue-note demo ,通过该案例可以学习到大部分 vue 的基本指令。 27 | 28 | # 🍻 待做 29 | 30 | * 天气查询 demo 31 | * 音乐播放 demo 32 | 33 | # 🍳 声明 34 | 35 | 该仓库所搜集的案例均来源于网络,仅供学习参考。起源是本人在学习 html/css/js 时发现的比较好看的项目,于是收集了起来,参考链接的 up 主大多也是搬运别人的,出处不详,如果侵犯到了您的权益,请联系我,我将立刻删除。 36 | 37 | [![jiewei314@gmail.com](https://img.shields.io/badge/email-jiewei314@gmail.com-blueviolet?style=for-the-badge&logo=google&color=fd79a8)](mailto:jiewei314@gmail.com) 38 | -------------------------------------------------------------------------------- /docs/demo-01/demo-01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-01/demo-01.gif -------------------------------------------------------------------------------- /docs/demo-01/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 公众号:codestep 7 | 91 | 92 | 93 | 94 | 95 |

codestep

96 | 97 | 98 | 99 |
100 | 101 | -------------------------------------------------------------------------------- /docs/demo-02/icos/blog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-02/icos/blog.png -------------------------------------------------------------------------------- /docs/demo-02/icos/icons8-github-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-02/icos/icons8-github-64.png -------------------------------------------------------------------------------- /docs/demo-02/icos/知乎.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-02/icos/知乎.png -------------------------------------------------------------------------------- /docs/demo-02/icos/笔记本.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-02/icos/笔记本.png -------------------------------------------------------------------------------- /docs/demo-02/icos/符号-代码.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-02/icos/符号-代码.png -------------------------------------------------------------------------------- /docs/demo-02/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | step 9 | 10 | 11 |
12 |
13 |
14 | 15 |
16 |

Github

17 |
18 | 19 |
20 |
21 | 22 |
23 |

Blog

24 |
25 | 26 | 27 |
28 |
29 | 30 |
31 |

知乎

32 |
33 | 34 |
35 |
36 | 37 |
38 |

笔记

39 |
40 |
41 | 42 | -------------------------------------------------------------------------------- /docs/demo-02/style/style.css: -------------------------------------------------------------------------------- 1 | *{ 2 | margin: 0; 3 | padding: 0; 4 | } 5 | body{ 6 | width: 100%; 7 | height: 100vh; 8 | display: flex; 9 | justify-content: center; 10 | align-items: center; 11 | background-color: #efeeee; 12 | } 13 | .container{ 14 | width: 700px; 15 | height: 600px; 16 | display: flex; 17 | justify-content: space-around; 18 | flex-wrap: wrap; 19 | align-items: center; 20 | } 21 | .container .box{ 22 | display: flex; 23 | justify-content: space-around; 24 | flex-direction: column; 25 | align-items: center; 26 | align-content: center; 27 | width: 100px; 28 | height: 140px; 29 | margin: 20px; 30 | } 31 | .container .box .img{ 32 | width: 100px; 33 | height: 100px; 34 | box-shadow: 18px 18px 30px rgba(0, 0, 0, 0.1), 35 | -18px -18px 30px rgba(255, 255, 255, 1); 36 | border-radius: 20px; 37 | display: flex; 38 | align-items: center; 39 | justify-content: center; 40 | background-color: #efeeee; 41 | transition: box-shadow .2s ease-out; 42 | position: relative; 43 | } 44 | 45 | .container .box .img img{ 46 | width: 60px; 47 | transition: width 0.2s ease-out; 48 | } 49 | .container .box p{ 50 | color: slategrey; 51 | } 52 | .container .box .img:hover{ 53 | box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2), 54 | 0px 0px 0px rgba(255, 255, 255, 0.8), 55 | inset 18px 18px 30px rgba(0, 0, 0, 0.1), 56 | inset -18px -18px 30px rgba(255, 255, 255, 1); 57 | transition: box-shadow .2s ease-out; 58 | } 59 | .container .box .img:hover img{ 60 | width: 58px; 61 | transition: width 0.2s ease-out; 62 | } -------------------------------------------------------------------------------- /docs/demo-03/README.md: -------------------------------------------------------------------------------- 1 | # step 2 | 个人主页,后续会不断完善。 3 | -------------------------------------------------------------------------------- /docs/demo-03/icos/blog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-03/icos/blog.png -------------------------------------------------------------------------------- /docs/demo-03/icos/icons8-github-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-03/icos/icons8-github-64.png -------------------------------------------------------------------------------- /docs/demo-03/icos/摘录.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-03/icos/摘录.png -------------------------------------------------------------------------------- /docs/demo-03/icos/知乎.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-03/icos/知乎.png -------------------------------------------------------------------------------- /docs/demo-03/icos/笔记本.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-03/icos/笔记本.png -------------------------------------------------------------------------------- /docs/demo-03/icos/符号-代码.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-03/icos/符号-代码.png -------------------------------------------------------------------------------- /docs/demo-03/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | step 9 | 10 | 11 |
12 |
13 |
14 | 15 |
16 |

Blog

17 |
18 |
19 |
20 | 21 |
22 |

知乎

23 |
24 |
25 |
26 | 27 |
28 |

笔记

29 |
30 |
31 |
32 | 33 |
34 |

Github

35 |
36 |
37 |
38 | 39 |
40 |

摘录

41 |
42 |
43 | 44 | -------------------------------------------------------------------------------- /docs/demo-03/style/style.css: -------------------------------------------------------------------------------- 1 | *{ 2 | margin: 0; 3 | padding: 0; 4 | font-size: "Open Sans",sans-serif; 5 | } 6 | body{ 7 | width: 100%; 8 | height: 100vh; 9 | display: flex; 10 | justify-content: center; 11 | align-items: center; 12 | background-color: #efeeee; 13 | } 14 | .container{ 15 | width: 700px; 16 | height: 600px; 17 | display: flex; 18 | justify-content: space-around; 19 | flex-wrap: wrap; 20 | align-items: center; 21 | } 22 | .container .box{ 23 | display: flex; 24 | justify-content: space-around; 25 | flex-direction: column; 26 | align-items: center; 27 | align-content: center; 28 | width: 100px; 29 | height: 140px; 30 | margin: 20px; 31 | } 32 | 33 | .container .title { 34 | width: 100px; 35 | height: 140px; 36 | margin: 20px; 37 | } 38 | .container .box .img{ 39 | width: 100px; 40 | height: 100px; 41 | box-shadow: 18px 18px 30px rgba(0, 0, 0, 0.1), 42 | -18px -18px 30px rgba(255, 255, 255, 1); 43 | border-radius: 20px; 44 | display: flex; 45 | align-items: center; 46 | justify-content: center; 47 | background-color: #efeeee; 48 | transition: box-shadow .2s ease-out; 49 | position: relative; 50 | } 51 | 52 | .container .box .img img{ 53 | width: 60px; 54 | transition: width 0.2s ease-out; 55 | } 56 | .container .box p{ 57 | color: slategrey; 58 | } 59 | .container .box .img:hover{ 60 | box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2), 61 | 0px 0px 0px rgba(255, 255, 255, 0.8), 62 | inset 18px 18px 30px rgba(0, 0, 0, 0.1), 63 | inset -18px -18px 30px rgba(255, 255, 255, 1); 64 | transition: box-shadow .2s ease-out; 65 | } 66 | .container .box .img:hover img{ 67 | width: 58px; 68 | transition: width 0.2s ease-out; 69 | } 70 | 71 | .box:hover { 72 | animation:rubberBand 1s; 73 | } 74 | .text:hover { 75 | animation:rubberBand 1s; 76 | } 77 | 78 | @keyframes rubberBand { 79 | 0% { 80 | transform: scale3d(1,1,1); 81 | } 82 | 35% { 83 | transform: scale3d(1.25,.75,1); 84 | } 85 | 45% { 86 | transform: scale3d(.75,1,1); 87 | } 88 | 60% { 89 | transform: scale3d(1.2,.8,1); 90 | } 91 | 75% { 92 | transform: scale3d(1.05,.95,1); 93 | } 94 | 100% { 95 | transform: scale3d(1,1,1); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /docs/demo-03/果冻.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-03/果冻.gif -------------------------------------------------------------------------------- /docs/demo-04/demo-04.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-04/demo-04.gif -------------------------------------------------------------------------------- /docs/demo-04/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Document 7 | 8 | 9 | 10 |
11 | 19 |
20 | 21 | -------------------------------------------------------------------------------- /docs/demo-04/style.css: -------------------------------------------------------------------------------- 1 | *{ 2 | margin: 0; 3 | padding: 0; 4 | font-family:Marker Felt; 5 | } 6 | body{ 7 | display: flex; 8 | justify-content: center; 9 | align-items: center; 10 | min-height: 100vh; 11 | background: #1c234a; 12 | } 13 | ul{ 14 | position: relative; 15 | } 16 | ul li 17 | { 18 | list-style: none; 19 | margin: 0 20px; 20 | font-size: 4em; 21 | } 22 | ul li span{ 23 | position: relative; 24 | top: -2px; 25 | left: -10px; 26 | color: transparent; 27 | } 28 | ul li:hover span{ 29 | color: #ef0448; 30 | } 31 | ul li a{ 32 | position: relative; 33 | color: rgba(255,255,255,0.1); 34 | text-decoration: none; 35 | font-weight: 700; 36 | } 37 | ul li a:before{ 38 | content: attr(data-text); 39 | position: absolute; 40 | top: 0; 41 | overflow-y: hidden; 42 | color: #1bfaad; 43 | white-space: nowrap; 44 | overflow: hidden; 45 | 46 | } 47 | ul:hover li a:before 48 | { 49 | animation: animate 0.5s steps(11) forwards; 50 | } 51 | @keyframes animate { 52 | 0% 53 | { 54 | width: 358.984px; 55 | } 56 | 100% 57 | { 58 | width: 0px; 59 | } 60 | } 61 | ul li:hover a:before 62 | { 63 | animation: animate2 2s steps(11) forwards; 64 | } 65 | @keyframes animate2 { 66 | 0% 67 | { 68 | width: 0px; 69 | } 70 | 100% 71 | { 72 | width: 358.984px; 73 | } 74 | } -------------------------------------------------------------------------------- /docs/demo-05/demo-05.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-05/demo-05.gif -------------------------------------------------------------------------------- /docs/demo-05/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | demo-05 7 | 8 | 9 | 10 | 21 | 22 | -------------------------------------------------------------------------------- /docs/demo-05/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | height: 100vh; 3 | background: #000; 4 | display: flex; 5 | justify-content: center; 6 | align-items: center; 7 | } 8 | ul { 9 | height: 200px; 10 | display: flex; 11 | } 12 | li { 13 | width: 20px; 14 | height: 20px; 15 | border-radius: 10px; 16 | background: red; 17 | margin-right: 20px; 18 | list-style: none; 19 | } 20 | li:nth-child(1) { 21 | background: red; 22 | animation: love1 4s 0s infinite; 23 | } 24 | 25 | li:nth-child(2) { 26 | background: slateblue; 27 | animation: love2 4s 0.2s infinite; 28 | } 29 | li:nth-child(3) { 30 | background: #e74c3c; 31 | animation: love3 4s 0.4s infinite; 32 | } 33 | li:nth-child(4) { 34 | background: #2ecc71; 35 | animation: love4 4s 0.6s infinite; 36 | } 37 | li:nth-child(5) { 38 | background: #e84393; 39 | animation: love5 4s 0.8s infinite; 40 | } 41 | li:nth-child(6) { 42 | background: #2ecc71; 43 | animation: love4 4s 1s infinite; 44 | } 45 | li:nth-child(7) { 46 | background: #e74c3c; 47 | animation: love3 4s 1.2s infinite; 48 | } 49 | li:nth-child(8) { 50 | background: slateblue; 51 | animation: love2 4s 1.4s infinite; 52 | } 53 | li:nth-child(9) { 54 | background: red; 55 | animation: love1 4s 1.6s infinite; 56 | } 57 | 58 | @keyframes love1 { 59 | 30%,50% { 60 | height: 60px; 61 | transform: translateY(-30px); 62 | } 63 | 70%,100% { 64 | height: 0px; 65 | transform: translateY(0px); 66 | } 67 | } 68 | 69 | @keyframes love2 { 70 | 30%,50% { 71 | height: 125px; 72 | transform: translateY(-60px); 73 | } 74 | 70%,100% { 75 | height: 0px; 76 | transform: translateY(0px); 77 | } 78 | } 79 | 80 | @keyframes love3 { 81 | 30%, 50% { 82 | height: 160px; 83 | transform: translateY(-75px); 84 | } 85 | 70%, 100% { 86 | height: 0px; 87 | transform: translateY(0px); 88 | } 89 | } 90 | 91 | @keyframes love4 { 92 | 30%, 50% { 93 | height: 180px; 94 | transform: translateY(-60px); 95 | } 96 | 70%, 100% { 97 | height: 0px; 98 | transform: translateY(0px); 99 | } 100 | } 101 | @keyframes love5 { 102 | 30%, 50% { 103 | height: 200px; 104 | transform: translateY(-45px); 105 | } 106 | 70%, 100% { 107 | height: 0px; 108 | transform: translateY(0px); 109 | } 110 | } -------------------------------------------------------------------------------- /docs/demo-06/demo-06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-06/demo-06.png -------------------------------------------------------------------------------- /docs/demo-06/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | demo-05 7 | 8 | 9 | 10 |
11 |
12 |
Login
13 |
14 | 15 | 16 |
Login
17 |
18 |
19 | Don't have account?Sign up 20 |
21 |
22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/demo-06/style.css: -------------------------------------------------------------------------------- 1 | *{ 2 | padding: 0; 3 | margin: 0; 4 | font-family: 'Open Sans Light'; 5 | letter-spacing: .05em; 6 | } 7 | 8 | html{ 9 | height: 100%; 10 | } 11 | 12 | body{ 13 | height: 100%; 14 | } 15 | 16 | .container{ 17 | height: 100%; 18 | background-image: linear-gradient(to right,#fbc2eb,#a6c1ee); 19 | } 20 | 21 | .login-wrapper{ 22 | background-color: #fff; 23 | width: 250px; 24 | height: 500px; 25 | border-radius: 15px; 26 | padding: 0 50px; 27 | position: relative; 28 | left: 50%; 29 | top: 50%; 30 | transform: translate(-50%,-50%); 31 | } 32 | 33 | .login-wrapper .header{ 34 | font-size: 30px; 35 | font-weight: bold; 36 | text-align: center; 37 | line-height: 200px; 38 | } 39 | 40 | .login-wrapper .form-warpper .input-item{ 41 | display: block; 42 | width: 100%; 43 | margin-bottom: 20px; 44 | border: 0; 45 | padding: 10px; 46 | border-bottom: 1px solid rgb(128,125,125); 47 | font-size: 15px; 48 | outline: none; 49 | } 50 | 51 | .login-wrapper .form-warpper .input-item::placeholder{ 52 | text-transform: uppercase; 53 | } 54 | 55 | .login-wrapper .form-warpper .btn{ 56 | text-align: center; 57 | padding: 10px; 58 | width: 100%; 59 | margin-top: 40px; 60 | background-image: linear-gradient(to right,#a6c1ee,#fbc2eb); 61 | color:#fff; 62 | } 63 | 64 | .login-wrapper .msg{ 65 | text-align: center; 66 | line-height: 80px; 67 | } 68 | .login-wrapper .msg a{ 69 | text-decoration-line: none; 70 | color: #a6c1ee; 71 | } 72 | 73 | 74 | -------------------------------------------------------------------------------- /docs/demo-07/demo-07.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-07/demo-07.gif -------------------------------------------------------------------------------- /docs/demo-07/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | demo-07 8 | 9 | 58 | 59 | 60 | 66 | 67 | -------------------------------------------------------------------------------- /docs/demo-08/demo-08.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-08/demo-08.gif -------------------------------------------------------------------------------- /docs/demo-08/img/after.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-08/img/after.png -------------------------------------------------------------------------------- /docs/demo-08/img/before.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-08/img/before.png -------------------------------------------------------------------------------- /docs/demo-08/img/letter_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-08/img/letter_bg.png -------------------------------------------------------------------------------- /docs/demo-08/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13-SendMessage 6 | 7 | 8 | 9 |
10 |

SEND A MESSAGE

11 |


12 |
13 |
14 |

HELLO

15 | 16 | 17 | 18 |

BEST,

19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 |
28 |
29 | 30 | -------------------------------------------------------------------------------- /docs/demo-08/style.css: -------------------------------------------------------------------------------- 1 | body, div, h1, h2, form, fieldset, input, textarea, footer, p{ 2 | margin: 0; 3 | padding: 0; 4 | border: 0; 5 | outline: none; 6 | } 7 | body{ 8 | background: #F5F5F5; 9 | color: gray; 10 | font-family: tahoma; 11 | } 12 | p{ 13 | font-family: tahoma; 14 | font-size: 24px; 15 | color: #757575; 16 | } 17 | #wrap{ 18 | width: 530px; 19 | margin: 20px auto 0; 20 | height: 1000px; 21 | } 22 | h1{ 23 | margin-bottom: 20px; 24 | text-align: center; 25 | font-size: 35px; 26 | font-family: tahoma; 27 | color: black; 28 | } 29 | #form-wrap{ 30 | overflow: hidden; 31 | height: 447px; 32 | position: relative; 33 | top: 0px; 34 | transition: all 1s ease-in-out .3s; 35 | } 36 | #form-wrap:before{ 37 | content: ""; 38 | position: absolute; 39 | bottom: 128px; 40 | left: 0px; 41 | background: url('img/before.png'); 42 | width: 530px; 43 | height: 317px; 44 | } 45 | #form-wrap:after{ 46 | content: ""; 47 | position: absolute; 48 | bottom: 0px; 49 | left: 0; 50 | background: url('img/after.png'); 51 | width: 530px; 52 | height: 259px; 53 | } 54 | #form-wrap.hide:after, 55 | #form-wrap.hide:before{ 56 | display: none; 57 | } 58 | #form-wrap:hover{ 59 | height: 777px; 60 | top: -200px; 61 | } 62 | form{ 63 | background: url('img/letter_bg.png'); 64 | position: relative; 65 | top: 200px; 66 | overflow: hidden; 67 | height: 200px; 68 | width: 400px; 69 | margin: 0px auto; 70 | padding: 20px; 71 | border: 1px solid white; 72 | border-right: 3px; 73 | transition: all 1s ease-in-out .3s; 74 | } 75 | #form-wrap:hover form{ 76 | height: 530px; 77 | } 78 | lable{ 79 | margin: 11px 20px 0 0; 80 | font-size: 15px; 81 | color: gray; 82 | text-transform: uppercase; 83 | } 84 | input[type=text], textarea{ 85 | font: 14px normal uppercase, arial, serif; 86 | color: dimgray; 87 | background: none; 88 | width: 380px; 89 | height: 37px; 90 | padding: 0px 10px; 91 | margin: 0 0 10px 0; 92 | border: 1px solid #BDBDBD; 93 | border-radius: 5px; 94 | } 95 | textarea{ 96 | height: 80px; 97 | padding-top: 14px; 98 | } 99 | textarea:focus, 100 | input[type=text]:focus{ 101 | background: url('img/letter_bg.png'); 102 | } 103 | #form-wrap input[type=submit]{ 104 | position: relative; 105 | font-family: tahoma; 106 | font-size: 24px; 107 | color: gray; 108 | width: 300px; 109 | text-align: center; 110 | opacity: 0; 111 | background: none; 112 | cursor: pointer; 113 | border-radius: 3px; 114 | transition: opacity 0.7s ease-in-out 0s; 115 | } 116 | #form-wrap:hover input[type=submit]{ 117 | z-index: 1; 118 | opacity: 1; 119 | transition: opacity 0.5s ease-in-out 1.3s; 120 | } -------------------------------------------------------------------------------- /docs/demo-09/demo-09.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/demo-09/demo-09.gif -------------------------------------------------------------------------------- /docs/demo-09/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | demo-09 8 | 9 | 10 |
11 |
12 | weijiew 13 |
14 | 15 | -------------------------------------------------------------------------------- /docs/demo-09/style.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | } 5 | body { 6 | width: 100%; 7 | height: 100vh; 8 | } 9 | .container { 10 | position: relative; 11 | width: 100%; 12 | height: 100vh; 13 | display: flex; 14 | justify-content: center; 15 | align-items: center; 16 | background-color: #000; 17 | border: 1px solid red; 18 | } 19 | .circle { 20 | display: flex; 21 | justify-content: center; 22 | align-items: center; 23 | position: absolute; 24 | width: 200px; 25 | height: 200px; 26 | border-radius: 50%; 27 | background-image: linear-gradient(0deg, 28 | rgb(47,102,255), 29 | rgb(153,64,255) 30%, 30 | rgb(238,55,255) 60%, 31 | rgb(255,0,76) 100%); 32 | animation: rotate 1s linear infinite; 33 | } 34 | .circle::before { 35 | content: ""; 36 | position: absolute; 37 | width: 200px; 38 | height: 200px; 39 | border-radius: 50%; 40 | background-image: linear-gradient(0deg, 41 | rgb(47,102,255), 42 | rgb(153,64,255) 30%, 43 | rgb(238,55,255) 60%, 44 | rgb(255,0,76) 100%); 45 | filter: blur(35px); 46 | } 47 | .circle::after { 48 | content: ""; 49 | position: absolute; 50 | width: 150px; 51 | height: 150px; 52 | border-radius: 50%; 53 | background: #000;} 54 | span { 55 | position: absolute; 56 | color: #fff; 57 | } 58 | @keyframes rotate { 59 | 0% { 60 | transform: rotate(0deg); 61 | } 62 | 100% { 63 | transform: rotate(360deg); 64 | } 65 | } -------------------------------------------------------------------------------- /docs/demo-10/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Note 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 |
15 | {{ list }} 16 | 17 |
18 | 19 |
总数: {{ lists.length }}
20 | 21 | 22 | 23 |
24 | 25 | 51 | 52 | -------------------------------------------------------------------------------- /docs/icos/demo-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-01.png -------------------------------------------------------------------------------- /docs/icos/demo-03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-03.png -------------------------------------------------------------------------------- /docs/icos/demo-04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-04.png -------------------------------------------------------------------------------- /docs/icos/demo-05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-05.png -------------------------------------------------------------------------------- /docs/icos/demo-06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-06.png -------------------------------------------------------------------------------- /docs/icos/demo-07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-07.png -------------------------------------------------------------------------------- /docs/icos/demo-08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-08.png -------------------------------------------------------------------------------- /docs/icos/demo-09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-09.png -------------------------------------------------------------------------------- /docs/icos/demo-10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-10.png -------------------------------------------------------------------------------- /docs/icos/demo-11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-11.png -------------------------------------------------------------------------------- /docs/icos/demo-12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-12.png -------------------------------------------------------------------------------- /docs/icos/demo-13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-13.png -------------------------------------------------------------------------------- /docs/icos/demo-14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-14.png -------------------------------------------------------------------------------- /docs/icos/demo-15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-15.png -------------------------------------------------------------------------------- /docs/icos/demo-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-16.png -------------------------------------------------------------------------------- /docs/icos/demo-17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-17.png -------------------------------------------------------------------------------- /docs/icos/demo-18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-18.png -------------------------------------------------------------------------------- /docs/icos/demo-19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-19.png -------------------------------------------------------------------------------- /docs/icos/demo-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-20.png -------------------------------------------------------------------------------- /docs/icos/demo-21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/docs/icos/demo-21.png -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | step 9 | 10 | 11 |
12 |
13 |
14 | 15 |
16 |

demo-01

17 |
18 | 19 |
20 |
21 | 22 |
23 |

demo-03

24 |
25 | 26 | 27 |
28 |
29 | 30 |
31 |

demo-04

32 |
33 | 34 |
35 |
36 | 37 |
38 |

demo-05

39 |
40 | 41 |
42 |
43 | 44 |
45 |

demo-06

46 |
47 |
48 |
49 | 50 |
51 |

demo-07

52 |
53 |
54 |
55 | 56 |
57 |

demo-08

58 |
59 | 60 |
61 |
62 | 63 |
64 |

demo-09

65 |
66 | 67 |
68 |
69 | 70 |
71 |

vue 记事本

72 |
73 |
74 | 75 | -------------------------------------------------------------------------------- /docs/style/style.css: -------------------------------------------------------------------------------- 1 | *{ 2 | margin: 0; 3 | padding: 0; 4 | font-size: "Open Sans",sans-serif; 5 | } 6 | body{ 7 | width: 100%; 8 | height: 100vh; 9 | display: flex; 10 | justify-content: center; 11 | align-items: center; 12 | background-color: #efeeee; 13 | } 14 | .container{ 15 | width: 700px; 16 | height: 600px; 17 | display: flex; 18 | justify-content: space-around; 19 | flex-wrap: wrap; 20 | align-items: center; 21 | } 22 | .container .box{ 23 | display: flex; 24 | justify-content: space-around; 25 | flex-direction: column; 26 | align-items: center; 27 | align-content: center; 28 | width: 100px; 29 | height: 140px; 30 | margin: 20px; 31 | } 32 | 33 | .container .title { 34 | width: 100px; 35 | height: 140px; 36 | margin: 20px; 37 | } 38 | .container .box .img{ 39 | width: 100px; 40 | height: 100px; 41 | box-shadow: 18px 18px 30px rgba(0, 0, 0, 0.1), 42 | -18px -18px 30px rgba(255, 255, 255, 1); 43 | border-radius: 20px; 44 | display: flex; 45 | align-items: center; 46 | justify-content: center; 47 | background-color: #efeeee; 48 | transition: box-shadow .2s ease-out; 49 | position: relative; 50 | } 51 | 52 | .container .box .img img{ 53 | width: 60px; 54 | transition: width 0.2s ease-out; 55 | } 56 | .container .box p{ 57 | color: slategrey; 58 | } 59 | .container .box .img:hover{ 60 | box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2), 61 | 0px 0px 0px rgba(255, 255, 255, 0.8), 62 | inset 18px 18px 30px rgba(0, 0, 0, 0.1), 63 | inset -18px -18px 30px rgba(255, 255, 255, 1); 64 | transition: box-shadow .2s ease-out; 65 | } 66 | .container .box .img:hover img{ 67 | width: 58px; 68 | transition: width 0.2s ease-out; 69 | } 70 | 71 | .box:hover { 72 | animation:rubberBand 1s; 73 | } 74 | .text:hover { 75 | animation:rubberBand 1s; 76 | } 77 | 78 | @keyframes rubberBand { 79 | 0% { 80 | transform: scale3d(1,1,1); 81 | } 82 | 35% { 83 | transform: scale3d(1.25,.75,1); 84 | } 85 | 45% { 86 | transform: scale3d(.75,1,1); 87 | } 88 | 60% { 89 | transform: scale3d(1.2,.8,1); 90 | } 91 | 75% { 92 | transform: scale3d(1.05,.95,1); 93 | } 94 | 100% { 95 | transform: scale3d(1,1,1); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /vue-study/1-note/README.md: -------------------------------------------------------------------------------- 1 | # vue 记事本开发 2 | 3 | 以下是要实现的功能: 4 | 5 | 记事本功能 6 | 1. 新增 7 | - 生成列表结构( v-for 数组) 8 | - 获取用户输入( v-model ) 9 | - 回车,新增数据( v-on.enter ) 10 | 2. 删除 11 | - v-on splice index 12 | 3. 统计 13 | -v-text 14 | 4. 清空 15 | -v-on 16 | 5. 隐藏 17 | -v-show -v-if 18 | 19 | 此项目参考自该视频,重点是功能实现,没有 CSS 所以点丑😂. 20 | 21 | > https://www.bilibili.com/video/BV1HE411e7vY?p=18 22 | 23 | ## 1.0 基础代码 24 | 25 | 首先编写 html 页面。 26 | 27 | ```html 28 | 29 | 30 | 31 | 32 | 33 | Document 34 | 35 | 36 | 37 | 38 | 39 | ``` 40 | 41 | 引入 vue ,为了避免代码重复,以下内容均在 body 标签中。 42 | 43 | ```html 44 | 45 | 53 | ``` 54 | 55 | ## 2.0 新增 56 | 57 | ### 2.1 显示数据 58 | 59 | 首先要将数据展示出来,采用 v-for 指令来实现数据渲染。 60 | 61 | ```html 62 |
63 |
64 | {{ list }} 65 |
66 |
67 | 68 | 69 | 79 | ``` 80 | 81 | ### 2.2 添加数据 82 | 83 | 首先需要一个文本框,向文本框中添加数据,然后再将数据在渲染出来。 84 | 85 | 代码如下: 86 | 87 | ```html 88 | 89 | ``` 90 | 91 | 其中 `v-model="temp"` 实现了数据的双向绑定,也就是输入的内容会保存在 temp 变量中,而该变量保存在 data 中。 92 | 93 | `@keyup.enter="add"` 则是一个响应,也就是点击键盘 enter 后会触发 add 方法。 @ 本质上是 v-on 指令的简便表示 94 | 95 | 以下是 js 部分的修改: 96 | 97 | ```js 98 | var a = new Vue({ 99 | el: '#app', 100 | data: { 101 | lists: ["a1","a2","a3","a4","a5","a6"], 102 | temp: "" 103 | }, 104 | methods: { 105 | add: function(){ 106 | this.lists.push(this.temp); 107 | this.temp = temp; 108 | } 109 | } 110 | }) 111 | ``` 112 | 113 | 此时就实现了新增功能 114 | 115 | ## 3.0 删除 116 | 117 | ### 3.1 设置删除按钮 118 | 119 | 120 | ```html 121 |
122 | {{ list }} 123 | 124 |
125 | ``` 126 | 127 | 其中 `@click="remove(index)"` 表示鼠标点击后会触发 remove() 方法, index 则是要删除元素的下标 . 128 | 129 | 实现对应方法: 130 | 131 | ```js 132 | remove: function(index){ 133 | this.lists.splice(index, 1); 134 | } 135 | ``` 136 | 137 | ## 4.0 统计和清空 138 | 139 | 统计其实很简单,一个方法就行. 140 | 141 | ```html 142 |
总数: {{ lists.length }}
143 | ``` 144 | 145 | 清空也很简单: 146 | 147 | ```html 148 | 149 | ``` 150 | 151 | 方法实现: 152 | 153 | ```js 154 | del: function(){ 155 | this.lists = []; 156 | } 157 | ``` 158 | 159 | 如果元素为空,那么删除所有的标签将不显示. 160 | 161 | 添加 v-show 即可,该指令通过修改标签的 display 来实现标签的显示与隐藏. 162 | 163 | ```html 164 | 165 | ``` 166 | 167 | v-if 也可实现该功能,但是由于直接操作 dom 元素导致消耗过大. 168 | 169 | v-if 如下: 170 | 171 | ```html 172 | 173 | ``` 174 | 175 | ## 5.0 总结 176 | 177 | 没有 CSS 哈,所以比较丑,学习学习. -------------------------------------------------------------------------------- /vue-study/1-note/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Note 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 |
15 | {{ list }} 16 | 17 |
18 | 19 |
总数: {{ lists.length }}
20 | 21 | 22 | 23 |
24 | 25 | 51 | 52 | -------------------------------------------------------------------------------- /vue-study/2-weather/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jieway/web-step/0ef2e938b34f512084ea4650fb23342932ea6cea/vue-study/2-weather/README.md -------------------------------------------------------------------------------- /vue-study/2-weather/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Document 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /vue-study/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Document 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 45 | 46 | --------------------------------------------------------------------------------