Revize b4965c0b
Přidáno uživatelem Jiří Noháč před téměř 5 roky(ů)
resources/sass/_custom.scss | ||
---|---|---|
297 | 297 |
} |
298 | 298 |
} |
299 | 299 |
|
300 |
.fav-cat-mybooks{ |
|
301 |
color:$theme-color-two; |
|
302 |
text-align: center; |
|
303 |
font-size: 1.9rem; |
|
304 |
} |
|
305 |
|
|
306 |
.fav-cat-nofav{ |
|
307 |
text-align: center; |
|
308 |
color:$theme-color-three; |
|
309 |
background-color: $theme-color-five; |
|
310 |
border-color: $theme-color-three; |
|
311 |
} |
|
312 |
|
|
300 | 313 |
.artefacts-area, .artefact-area { |
301 | 314 |
|
302 | 315 |
h5 { |
303 | 316 |
color: $theme-color-two; |
304 |
font-weight: $font-weight-two; |
|
305 |
line-height: 20pt; |
|
306 |
font-size: 21pt; |
|
317 |
//font-weight: $font-weight-two; |
|
318 |
text-overflow: ellipsis; |
|
319 |
overflow: hidden; |
|
320 |
white-space: nowrap; |
|
321 |
line-height: 0.9rem; |
|
322 |
font-size: 1.1rem; |
|
307 | 323 |
} |
308 | 324 |
|
309 | 325 |
h6 { |
310 | 326 |
color: $theme-color-two; |
311 |
font-size: 14pt;
|
|
327 |
font-size: 0.9rem;
|
|
312 | 328 |
//font-weight: lighter; |
313 | 329 |
font-weight: $font-weight-one; |
314 | 330 |
} |
... | ... | |
325 | 341 |
|
326 | 342 |
.left_panel_info { |
327 | 343 |
margin-top: 15px; |
328 |
margin-left: -10px; |
|
329 |
max-width: 250px; |
|
344 |
max-width: 70%;//250px |
|
330 | 345 |
} |
331 | 346 |
|
332 | 347 |
.right_panel_info { |
333 | 348 |
margin-top: 15px; |
334 |
margin-right: -15px; |
|
349 |
} |
|
350 |
|
|
351 |
.likes_text{ |
|
352 |
text-align: center; |
|
335 | 353 |
} |
336 | 354 |
|
337 | 355 |
.card-cus-bottom { |
338 | 356 |
background-color: $theme-color-five; |
357 |
padding-right: 0; |
|
358 |
padding-left: 0; |
|
339 | 359 |
} |
340 | 360 |
|
341 | 361 |
.inter_info { |
342 | 362 |
&:before { |
343 |
background-image: url(../images/interface/Button_Info_50.png); |
|
344 |
width: 60px; |
|
345 |
height: 60px; |
|
363 |
//background-image: url(../images/interface/Button_Info_50.png); |
|
364 |
background-image: url(../images/interface/Button_Info.svg); |
|
365 |
//width: 60px; |
|
366 |
//height: 60px; |
|
367 |
width:8vw; |
|
368 |
height:8vw; |
|
346 | 369 |
} |
347 | 370 |
} |
348 | 371 |
|
... | ... | |
350 | 373 |
display: none; |
351 | 374 |
|
352 | 375 |
&:before { |
353 |
background-image: url(../images/interface/Hearth_Empty_50.png); |
|
354 |
width: 60px; |
|
355 |
height: 60px; |
|
376 |
//background-image: url(../images/interface/Hearth_Empty_50.png); |
|
377 |
background-image: url(../images/interface/Heart_Empty.svg); |
|
378 |
//width: 60px; |
|
379 |
//height: 60px; |
|
380 |
width:8vw; |
|
381 |
height:8vw; |
|
356 | 382 |
} |
357 | 383 |
} |
358 | 384 |
|
359 | 385 |
.inter_like_filled { |
360 | 386 |
&:before { |
361 |
background-image: url(../images/interface/Hearth_Filled_50.png); |
|
362 |
width: 60px; |
|
363 |
height: 60px; |
|
387 |
//background-image: url(../images/interface/Hearth_Filled_50.png); |
|
388 |
background-image: url(../images/interface/Heart_Filled.svg); |
|
389 |
//width: 60px; |
|
390 |
//height: 60px; |
|
391 |
width:8vw; |
|
392 |
height:8vw; |
|
364 | 393 |
} |
365 | 394 |
} |
366 | 395 |
|
... | ... | |
411 | 440 |
background-image: url(../images/interface/Heart_Empty.svg); |
412 | 441 |
width: 1.563rem; |
413 | 442 |
height: 1.25rem; |
443 |
|
|
414 | 444 |
} |
415 | 445 |
} |
416 | 446 |
|
resources/views/favartefacts/index.blade.php | ||
---|---|---|
4 | 4 |
|
5 | 5 |
@section('content') |
6 | 6 |
<div class="container"> |
7 |
{{--<p>The id of the user is {{$user->id}}</p>--}} |
|
8 | 7 |
@if(isset($artefacts)) |
9 | 8 |
@if(count($artefacts) >= 1) |
9 |
<div class="fav-cat-mybooks"> |
|
10 |
<h1>My books</h1> |
|
11 |
</div> |
|
10 | 12 |
@foreach($artefacts as $artefact) |
11 | 13 |
<div class="artefacts-area mb-5"> |
12 | 14 |
<div class="card"> |
... | ... | |
15 | 17 |
<img class="card-img-top" src="{{asset('images/artefacts/book_cover_01.jpg')}}" width="100%" height=auto> |
16 | 18 |
</a> |
17 | 19 |
<div class="container card-cus-bottom"> |
18 |
<div class="flex-row row-list">
|
|
19 |
<div class="col-xs-2 float-left left_panel_info">
|
|
20 |
<div class="d-flex flex-row row-list">{{--<div class="flex-row row-list">--}}
|
|
21 |
<div class="p-1 flex-fill bd-highlight left_panel_info">{{--<div class="col-xs-2 float-left left_panel_info">--}}
|
|
20 | 22 |
<h5 class="card-title ">{{$artefact->name}}</h5> |
21 | 23 |
<h6 class="card-title">{{$artefact->author}}</h6> |
22 | 24 |
</div> |
23 |
<div class="col-xs-2 float-right right_panel_info"> |
|
24 |
<div class="float-left"> |
|
25 |
<button id="info_butt_{{$artefact->id}}" type="button" class="btn btn-primary button-image inter_info"></button> |
|
26 |
</div> |
|
27 |
<div class="float-right text-center"> |
|
28 |
<button id="like_butt_{{$artefact->id}}" onclick="myFunction({{$artefact->id}}, 1)" type="button" class="btn btn-primary button-image inter_like"></button> |
|
29 |
<button id="like_butt2_{{$artefact->id}}" onclick="myFunction({{$artefact->id}}, 0)" type="button" class="btn btn-primary button-image inter_like_filled"></button> |
|
30 |
<span class="likes_text"> |
|
31 |
<h6>{{$artefact->likes}}</h6> |
|
32 |
</span> |
|
25 |
<div class="p-1 flex-fill bd-highlight float-right">{{--<div class="col-xs-2 float-right right_panel_info">--}} |
|
26 |
<div class="text-right right_panel_info">{{--<div class="float-right text-center">--}} |
|
27 |
<div class="float-left"> |
|
28 |
<button id="info_butt_{{$artefact->id}}" type="button" class="btn btn-primary float-left button-image inter_info"></button> |
|
29 |
</div> |
|
30 |
<div class="fav-cat-likes-t float-right"> |
|
31 |
<form method="POST" action="{{ url('/artefact/like/' . $artefact->id) }}"> |
|
32 |
@csrf |
|
33 |
<button id="like_butt_{{$artefact->id}}" onclick="myFunction({{$artefact->id}}, 1)" type="submit" class="btn btn-primary button-image inter_like"></button> |
|
34 |
</form> |
|
35 |
<form method="POST" action="{{ url('/artefact/unlike/' . $artefact->id) }}"> |
|
36 |
@csrf |
|
37 |
<button id="like_butt2_{{$artefact->id}}" onclick="myFunction({{$artefact->id}}, 0)" type="submit" class="btn btn-primary button-image inter_like_filled"></button> |
|
38 |
</form> |
|
39 |
<span class="likes_text"> |
|
40 |
<h6>{{$artefact->likes}}</h6> |
|
41 |
</span> |
|
42 |
</div> |
|
33 | 43 |
</div> |
34 | 44 |
</div> |
35 | 45 |
</div> |
... | ... | |
39 | 49 |
@endforeach |
40 | 50 |
@else |
41 | 51 |
<ul class="list-group"> |
42 |
<li class="list-group-item"> |
|
52 |
<li class="list-group-item fav-cat-nofav">
|
|
43 | 53 |
<h3>No favorites were added!</h3> |
44 | 54 |
</li> |
45 | 55 |
</ul> |
routes/web.php | ||
---|---|---|
17 | 17 |
|
18 | 18 |
Route::get('/artefact', 'ArtefactController@default'); |
19 | 19 |
Route::get('/artefact/{id}', 'ArtefactController@view'); |
20 |
Route::get('/artefact/like/{id}', 'ArtefactController@like');
|
|
21 |
Route::get('/artefact/unlike/{id}', 'ArtefactController@unlike');
|
|
20 |
Route::post('/artefact/like/{id}', 'ArtefactController@like');
|
|
21 |
Route::post('/artefact/unlike/{id}', 'ArtefactController@unlike');
|
|
22 | 22 |
Route::get('/category/{id}', 'ArtefactController@showCategory'); |
23 | 23 |
Route::get('/detail/like/{id}', 'DetailsController@like'); |
24 | 24 |
Route::get('/detail/unlike/{id}', 'DetailsController@unlike'); |
Také k dispozici: Unified diff
Issue #7998 @5h
Pridana funkcionalita odebirani polozek v favartefacts. Panel s hlaskou o chybejicich polozkach k uzivateli byl upraven, aby sedel do tematiky stranky a take byl posunut nize podle nahlasene chyby. Dale pridan nadpis My books vcetne upravy textu a ikon, aby sedeli vzdy na spravne pozici podle velikosti zobrazovane plochy uzivatele.