Skip to content

Commit 9ae5c25

Browse files
committed
增加了四个菜蛋人格
1 parent 18473a6 commit 9ae5c25

15 files changed

+247
-12
lines changed

css/index.css

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/index.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/index.less

+38-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ body {
77
padding: 40px 0;
88
padding-top: @NavHeight + 40px;
99
margin-bottom: 30px;
10+
1011
h1 {
1112
text-align: center;
1213
line-height: 2em;
1314
}
15+
1416
p {
1517
text-align: center;
1618
line-height: 2em;
@@ -31,6 +33,7 @@ body {
3133
font-weight: bolder;
3234
color: #576071;
3335
}
36+
3437
// 输入区
3538
.input-area {
3639
height: 100px;
@@ -45,9 +48,11 @@ body {
4548
font-weight: bolder;
4649
margin: 0 5px;
4750
color: @gray;
51+
4852
&.agree {
4953
color: @green;
5054
}
55+
5156
&.disagree {
5257
color: @purple;
5358
}
@@ -61,6 +66,7 @@ body {
6166
height: 100px;
6267

6368
line-height: 100px;
69+
6470
button {
6571
min-width: 50px;
6672
min-height: 50px;
@@ -71,16 +77,20 @@ body {
7177
background-color: transparent;
7278
transition: all 0.1s;
7379
}
80+
7481
.activate {
7582
box-shadow: 0 0 10px;
7683
}
84+
7785
.button-0,
7886
.button-1,
7987
.button-2 {
8088
color: @green;
89+
8190
&:hover {
8291
background-color: @green;
8392
}
93+
8494
&.activate {
8595
background-color: @green;
8696
}
@@ -90,18 +100,23 @@ body {
90100
.button-5,
91101
.button-6 {
92102
color: @purple;
103+
93104
&:hover {
94105
background-color: @purple;
95106
}
107+
96108
&.activate {
97109
background-color: @purple;
98110
}
99111
}
112+
100113
.button-3 {
101114
color: @gray;
115+
102116
&:hover {
103117
background-color: @gray;
104118
}
119+
105120
&.activate {
106121
background-color: @gray;
107122
}
@@ -111,14 +126,17 @@ body {
111126
.button-6 {
112127
transform: scale(1);
113128
}
129+
114130
.button-1,
115131
.button-5 {
116132
transform: scale(0.85);
117133
}
134+
118135
.button-2,
119136
.button-4 {
120137
transform: scale(0.7);
121138
}
139+
122140
.button-3 {
123141
transform: scale(0.55);
124142
}
@@ -134,36 +152,46 @@ body {
134152
font-size: 30px;
135153
border-radius: 100px;
136154
}
155+
137156
article.result {
138157
color: #576071;
139158
width: 60%;
140159
margin: 0 auto;
160+
141161
h2,
142162
h4 {
143163
text-align: center;
144164
line-height: 2em;
145165
}
166+
146167
h3 {
147168
line-height: 2em;
148169
}
170+
149171
p {
150172
margin-bottom: 2em;
151173
}
174+
152175
.range-area {
153176
text-align: center;
177+
154178
p {
155179
line-height: 1.5em;
156180
margin: 0;
181+
157182
span {
158183
font-weight: bolder;
184+
159185
&.left {
160186
color: @purple;
161187
}
188+
162189
&.right {
163190
color: @green;
164191
}
165192
}
166193
}
194+
167195
div {
168196
height: 1em;
169197
width: 25%;
@@ -172,6 +200,7 @@ body {
172200
text-align: left;
173201
overflow: hidden;
174202
background: black;
203+
175204
span {
176205
height: 1em;
177206
display: block;
@@ -181,15 +210,19 @@ body {
181210
&.left {
182211
background-color: @purple;
183212
}
213+
184214
&.right {
185215
background-color: @green;
186216
}
187217
}
188218
}
189219
}
220+
190221
.final,
191-
.potential {
222+
.potential,
223+
.easter-egg {
192224
width: 100%;
225+
193226
img {
194227
display: block;
195228
width: 200px;
@@ -207,6 +240,7 @@ body {
207240
p {
208241
padding: 0 5px;
209242
}
243+
210244
.input-area {
211245
.buttons {
212246
button {
@@ -220,13 +254,15 @@ body {
220254
}
221255
}
222256
}
257+
223258
@media (min-width: @phone) and (max-width: @tablet) {
224259
body {
225260
main {
226261
section {
227262
p {
228263
padding: 0 5px;
229264
}
265+
230266
.input-area {
231267
.buttons {
232268
button {
@@ -240,6 +276,7 @@ body {
240276
}
241277
}
242278
}
279+
243280
@media (min-width: @tablet) and (max-width: @desktop) {
244281
// 平板样式
245282
body {

css/personalitys.css

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/personalitys.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/personalitys.less

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ body {
4141
background-color: rgb(215, 203, 178);
4242
color: #8d681a;
4343
}
44+
&.EasterEgg {
45+
background-color: rgb(215, 178, 178);
46+
color: #aa3535;
47+
}
4448
.person-card {
4549
display: inline-block;
4650
margin: 20px;

img/BugHunter.png

354 KB
Loading

img/EfficiencyMaster.png

337 KB
Loading

img/Hacker.png

330 KB
Loading

img/LazyCoder.png

383 KB
Loading

index.html

+18
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,24 @@ <h3>劣势</h3>
119119
<h3>建议</h3>
120120
<p class="recommendation"></p>
121121
</div>
122+
123+
<h2>你的彩蛋人格</h2>
124+
<div class="easter-egg">
125+
<h2 class="tag"></h2>
126+
<h2 class="name"></h2>
127+
<img src="" alt="人格图片" />
128+
<h3>彩蛋人格介绍</h3>
129+
<p class="describe"></p>
130+
<h3>格言</h3>
131+
<p class="motto"></p>
132+
<h3>优势</h3>
133+
<p class="advantage"></p>
134+
<h3>劣势</h3>
135+
<p class="inferiority"></p>
136+
<h3>建议</h3>
137+
<p class="recommendation"></p>
138+
</div>
139+
122140
</article>
123141
<footer class="attention">
124142
<h3>注意事项</h3>

0 commit comments

Comments
 (0)