質問編集履歴
1
加筆
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,3 +7,435 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
![イメージ説明](54adf4caf702421a6aef77da1a9cebc7.png)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
---------
|
14
|
+
|
15
|
+
2/2追記
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
なんとなくは作れたんですが、コードレビューをお願いしたいです。
|
20
|
+
|
21
|
+
特にpxで指定している箇所があり、表示機器により、表示ずれが起きないかを
|
22
|
+
|
23
|
+
懸念しています。メディアクエリで分けて、それぞれのカテゴリ内では各オブジェクトの
|
24
|
+
|
25
|
+
大きさやフォントを相対指定する等、体系的な知見があればそれもお聞きしたいです。
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
![イメージ説明](b3e186082407bc5036e340f339fbdc48.png)
|
30
|
+
|
31
|
+
```vue
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<template>
|
36
|
+
|
37
|
+
<div class="pickcard">
|
38
|
+
|
39
|
+
<div class="pickcard__notify">
|
40
|
+
|
41
|
+
<span class="pickcard__notify__comment">{{notifyComment}}</span>
|
42
|
+
|
43
|
+
<span class="pickcard__notify__time">{{notifyTime}}</span>
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="pickcard__title">
|
48
|
+
|
49
|
+
<span class="pickcard__title__name">{{pickcardTitle}}</span>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<div class="pickcard__content">
|
54
|
+
|
55
|
+
<div class="pickcard_content_up">
|
56
|
+
|
57
|
+
<div class="pickcard__content__up__thumbnail">
|
58
|
+
|
59
|
+
<img :src="image_path()" class="article_thumbnail">
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<div>
|
64
|
+
|
65
|
+
<div class="pickcard__content__up__a">
|
66
|
+
|
67
|
+
<span class="pickcard__content__up__a__manname">
|
68
|
+
|
69
|
+
{{manName}}
|
70
|
+
|
71
|
+
</span>
|
72
|
+
|
73
|
+
<div class="button is-light pickcard__content__up__a__followerNum">
|
74
|
+
|
75
|
+
<span class="pickcard__content__up__a__followerNum__num">
|
76
|
+
|
77
|
+
{{followerNum}}
|
78
|
+
|
79
|
+
</span>
|
80
|
+
|
81
|
+
<div class="pickcard__content__up__a__followerNum__str">
|
82
|
+
|
83
|
+
フォロワー
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<div class="button is-light pickcard__content__up__a__followerNum">
|
90
|
+
|
91
|
+
<span class="pickcard__content__up__a__followerNum__num">
|
92
|
+
|
93
|
+
{{pickNum}}
|
94
|
+
|
95
|
+
</span>
|
96
|
+
|
97
|
+
<div class="pickcard__content__up__a__followerNum__str">
|
98
|
+
|
99
|
+
picks
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
<div class="pickcard__content__up__b">
|
110
|
+
|
111
|
+
{{shozoku}} 所属
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<div class="pickcard__under-element"></div>
|
120
|
+
|
121
|
+
<div class="pickcard__content__comment">{{pickComment}}</div>
|
122
|
+
|
123
|
+
<b-button type="is-danger" rounded outlined class="pickcard__content__like">
|
124
|
+
|
125
|
+
<font-awesome-icon icon="heart" />
|
126
|
+
|
127
|
+
{{likeNum}}
|
128
|
+
|
129
|
+
</b-button>
|
130
|
+
|
131
|
+
<div class="pickcard__under-element"></div>
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
</template>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<script>
|
144
|
+
|
145
|
+
export default{
|
146
|
+
|
147
|
+
name: "pickCard",
|
148
|
+
|
149
|
+
props: {
|
150
|
+
|
151
|
+
notifyComment: String,
|
152
|
+
|
153
|
+
notifyTime: String,
|
154
|
+
|
155
|
+
pickcardTitle: String,
|
156
|
+
|
157
|
+
pickcardDescription: String,
|
158
|
+
|
159
|
+
manName: String,
|
160
|
+
|
161
|
+
followerNum: String,
|
162
|
+
|
163
|
+
pickNum: String,
|
164
|
+
|
165
|
+
shozoku: String,
|
166
|
+
|
167
|
+
pickComment: String,
|
168
|
+
|
169
|
+
likeNum: String,
|
170
|
+
|
171
|
+
pickcardPicksNumber: String,
|
172
|
+
|
173
|
+
pickcardPvNumber: String
|
174
|
+
|
175
|
+
},
|
176
|
+
|
177
|
+
methods: {
|
178
|
+
|
179
|
+
image_path: function(){
|
180
|
+
|
181
|
+
return require ("../../assets/pickcard-thumbnail.png")
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
</script>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<style scoped lang="sass">
|
194
|
+
|
195
|
+
.pickcard
|
196
|
+
|
197
|
+
margin: 10px 10px 10px 10px;
|
198
|
+
|
199
|
+
&__under-element
|
200
|
+
|
201
|
+
clear: both;
|
202
|
+
|
203
|
+
&__notify
|
204
|
+
|
205
|
+
color: #868686;
|
206
|
+
|
207
|
+
font-size: 13px;
|
208
|
+
|
209
|
+
display: flex;
|
210
|
+
|
211
|
+
justify-content: space-between;
|
212
|
+
|
213
|
+
&__title
|
214
|
+
|
215
|
+
margin-top: 5px;
|
216
|
+
|
217
|
+
&__name
|
218
|
+
|
219
|
+
display: -webkit-box;
|
220
|
+
|
221
|
+
-webkit-box-orient: vertical;
|
222
|
+
|
223
|
+
-webkit-line-clamp: 2;
|
224
|
+
|
225
|
+
overflow: hidden;
|
226
|
+
|
227
|
+
font-size: 20px;
|
228
|
+
|
229
|
+
font-weight: bold;
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
&__content
|
234
|
+
|
235
|
+
border: solid 1px #707070;
|
236
|
+
|
237
|
+
border-radius: 5px;
|
238
|
+
|
239
|
+
padding: 10px 10px 10px 10px;
|
240
|
+
|
241
|
+
&__up
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
&__thumbnail
|
246
|
+
|
247
|
+
width: 11%;
|
248
|
+
|
249
|
+
float: left;
|
250
|
+
|
251
|
+
margin-right: 8px;
|
252
|
+
|
253
|
+
.article_thumbnail
|
254
|
+
|
255
|
+
border-radius: 50%;
|
256
|
+
|
257
|
+
width: 100%;
|
258
|
+
|
259
|
+
height: 100%;
|
260
|
+
|
261
|
+
max-height: 200px;
|
262
|
+
|
263
|
+
&__a
|
264
|
+
|
265
|
+
&__manname
|
266
|
+
|
267
|
+
font-family: Arial;
|
268
|
+
|
269
|
+
font-weight: bold;
|
270
|
+
|
271
|
+
font-size: 13px;
|
272
|
+
|
273
|
+
text-align: left;
|
274
|
+
|
275
|
+
color: #868686;
|
276
|
+
|
277
|
+
&__followerNum
|
278
|
+
|
279
|
+
height: 23px;
|
280
|
+
|
281
|
+
margin-top: 3px;
|
282
|
+
|
283
|
+
padding: 5px 5px 5px 5px;
|
284
|
+
|
285
|
+
pointer-events: none;
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
font-family: Arial;
|
290
|
+
|
291
|
+
font-size: 11px;
|
292
|
+
|
293
|
+
line-height: 24px;
|
294
|
+
|
295
|
+
text-align: left;
|
296
|
+
|
297
|
+
color: #363636;
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
&__num
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
font-family: Arial;
|
306
|
+
|
307
|
+
font-weight: bold;
|
308
|
+
|
309
|
+
font-size: 14px;
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
text-align: left;
|
314
|
+
|
315
|
+
color: #363636;
|
316
|
+
|
317
|
+
margin-right: 3px;
|
318
|
+
|
319
|
+
&__str
|
320
|
+
|
321
|
+
margin-top: 2px;
|
322
|
+
|
323
|
+
&__b
|
324
|
+
|
325
|
+
font-family: Arial;
|
326
|
+
|
327
|
+
font-weight: normal;
|
328
|
+
|
329
|
+
font-size: 11px;
|
330
|
+
|
331
|
+
text-align: left;
|
332
|
+
|
333
|
+
color: #868686;
|
334
|
+
|
335
|
+
&__comment
|
336
|
+
|
337
|
+
width: 265px;
|
338
|
+
|
339
|
+
height: 82px;
|
340
|
+
|
341
|
+
border-radius: 4px;
|
342
|
+
|
343
|
+
background: #feffe3;
|
344
|
+
|
345
|
+
border: 0.5px solid #c7cf7f;
|
346
|
+
|
347
|
+
padding: 5px 5px 5px 5px;
|
348
|
+
|
349
|
+
overflow: hidden;
|
350
|
+
|
351
|
+
display: -webkit-box;
|
352
|
+
|
353
|
+
-webkit-box-orient: vertical;
|
354
|
+
|
355
|
+
-webkit-line-clamp: 3;
|
356
|
+
|
357
|
+
float: left;
|
358
|
+
|
359
|
+
&__like
|
360
|
+
|
361
|
+
margin-top: 25px;
|
362
|
+
|
363
|
+
margin-left: 5px;
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
&__footerWrapper
|
368
|
+
|
369
|
+
&__footer
|
370
|
+
|
371
|
+
display: flex;
|
372
|
+
|
373
|
+
margin-top: 10px;
|
374
|
+
|
375
|
+
&__accessAnalysis
|
376
|
+
|
377
|
+
display: flex;
|
378
|
+
|
379
|
+
width: 75%;
|
380
|
+
|
381
|
+
pointer-events: none;
|
382
|
+
|
383
|
+
&__sumPicks
|
384
|
+
|
385
|
+
height: 23px;
|
386
|
+
|
387
|
+
padding: 5px;
|
388
|
+
|
389
|
+
opacity: 1;
|
390
|
+
|
391
|
+
color: #FF3860;
|
392
|
+
|
393
|
+
border-color: #FF3860;
|
394
|
+
|
395
|
+
.picksNumber
|
396
|
+
|
397
|
+
font-weight: bold;
|
398
|
+
|
399
|
+
padding-right: 5px;
|
400
|
+
|
401
|
+
&__sumPv
|
402
|
+
|
403
|
+
height: 23px;
|
404
|
+
|
405
|
+
opacity: 1;
|
406
|
+
|
407
|
+
margin-left: 10px;
|
408
|
+
|
409
|
+
.pvNumber
|
410
|
+
|
411
|
+
font-weight: bold;
|
412
|
+
|
413
|
+
padding-right: 3px;
|
414
|
+
|
415
|
+
&__pickButton
|
416
|
+
|
417
|
+
height: 36px;
|
418
|
+
|
419
|
+
width: 25%;
|
420
|
+
|
421
|
+
font-size: 16px;
|
422
|
+
|
423
|
+
background-color: #3273DC;
|
424
|
+
|
425
|
+
color: white;
|
426
|
+
|
427
|
+
padding-left: 10px;
|
428
|
+
|
429
|
+
margin-left: auto;
|
430
|
+
|
431
|
+
.pickIcon
|
432
|
+
|
433
|
+
margin-right: 8px;
|
434
|
+
|
435
|
+
</style>
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
```
|