Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b323292b

Přidáno uživatelem Marek Lovčí před více než 4 roky(ů)

Merge branch 'develop'

Zobrazit rozdíly:

app/ArtefactCategory.php
1
<?php
2

  
3

  
4
namespace App;
5

  
6

  
7
use Illuminate\Database\Eloquent\Model;
8

  
9
class ArtefactCategory extends Model
10
{
11
    // Table Name
12
    protected $table = 'artefact_category';
13
    // Primary Key
14
    public $primaryKey = 'artefact_id';
15

  
16
    /**
17
     * Indicates if the model should be timestamped.
18
     *
19
     * @var bool
20
     */
21
    public $timestamps = false;
22
}
app/ArtefactUser.php
1
<?php
2

  
3

  
4
namespace App;
5

  
6

  
7
class ArtefactUser extends Model
8
{
9
    // Table Name
10
    protected $table = 'artefact_user';
11
    // Primary Key
12
    public $primaryKey = 'artefact_id';
13

  
14
    /**
15
     * Indicates if the model should be timestamped.
16
     *
17
     * @var bool
18
     */
19
    public $timestamps = false;
20
}
app/Http/Controllers/ArtefactController.php
3 3
namespace App\Http\Controllers;
4 4

  
5 5
use App\Artefact;
6
use App\ArtefactCategory;
7
use App\Category;
6 8
use Illuminate\Http\Request;
7 9
use Illuminate\Support\Facades\DB;
8 10

  
......
25 27
        return view('artefact.default', ['artefacts' => $artefacts]);
26 28
    }
27 29

  
30
    /**
31
     * Returns view of artefacts related to the chosen category
32
     *
33
     * @param $id       id of the category
34
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
35
     */
36
    public function showCategory($id)
37
    {
38
        $cateogryArtefacts = ArtefactCategory::where('category_id', $id)->get();
39
        if(count($cateogryArtefacts) > 0)
40
        {
41
            $artefacts = array();
42
            foreach($cateogryArtefacts as $ar)
43
            {
44
                array_push($artefacts, Artefact::where('id', $ar->artefact_id)->get());
45
            }
46
            return view('artefact.category', ['artefacts' => $artefacts]);
47
        }
48
        else
49
        {
50
            return view('artefact.category', ['artefacts' => array()]);
51
        }
52
    }
53

  
28 54
    /**
29 55
     * Returns view of single artefact given by its id.
30 56
     *
......
34 60
    public function view($id)
35 61
    {
36 62
        $artefact = Artefact::find($id);
63
        $artefact['likes'] = Artefact::find($id)->users()->count();
37 64

  
38 65
        return view('artefact.view', ['artefact' => $artefact]);
39 66
    }
app/Http/Controllers/CategoriesController.php
14 14
        $this->middleware('auth');
15 15
    }
16 16

  
17
    public function calculateClusters($categoriesCount)
18
    {
19
        if(isset($categoriesCount))
20
        {
21
            $min = PHP_INT_MAX;
22
            $max = PHP_INT_MIN;
23
            foreach($categoriesCount as $category)
24
            {
25
                $c = count($category);
26
                if($c < $min)
27
                {
28
                    $min = $c;
29
                }
30

  
31
                if($c > $max)
32
                {
33
                    $max = $c;
34
                }
35
            }
36
            $center = $min + (($max - $min)/2);
37
            return array($min, $center, $max);
38
        }
39
        else
40
        {
41
            return null;
42
        }
43
    }
44

  
45 17
    /**
46 18
     * Display a listing of the resource.
47 19
     *
......
53 25
        {
54 26
            $userId = Auth::user()->id;
55 27

  
56
            $categoryNames = Category::all();
28
            $categoryNames = Category::orderBy('id')->get();
57 29
            $countCategory = count($categoryNames);
58
            $categories = array();
59
            for($i = 1; $i <= $countCategory;$i++)
60
            {
61
                array_push($categories, Category::find($i)->artefacts()->get());
62
            }
63
            $clusters = $this->calculateClusters($categories);
64

  
65
            $categorySizes = array();
66
            if(isset($clusters))
67
            {
68
                foreach($categories as $category)
69
                {
70
                    $c = count($category);
71
                    $type1 = abs($clusters['0'] - $c);
72
                    $type2 = abs($clusters['1'] - $c);
73
                    $type3 = abs($clusters['2'] - $c);
74

  
75
                    if($type1 <= $type2 && $type1 <= $type3)
76
                    {
77
                        array_push($categorySizes, 1);
78
                    }
79
                    else if($type2 <= $type1 && $type2 <= $type3)
80
                    {
81
                        array_push($categorySizes, 2);
82
                    }
83
                    else
84
                    {
85
                        array_push($categorySizes, 3);
86
                    }
87
                }
88
            }
89 30

  
90 31
            $data = array(
91 32
                'title' => 'Categories',
92 33
                'user' => User::find($userId),
93 34
                'count' => $countCategory,
94
                'categories' => $categories,
95
                'categorySizes' => $categorySizes,
96 35
                'categoryNames' => $categoryNames
97 36
            );
98 37
            return view('categories.index') -> with($data);
app/Http/Controllers/FavoriteMetadataController.php
9 9

  
10 10
class FavoriteMetadataController extends Controller
11 11
{
12
    const ORDER_COLUMN = 'page';
13

  
12 14
    public function __construct()
13 15
    {
14 16
        $this->middleware('auth');
......
16 18

  
17 19
    public function index()
18 20
    {
19
        $metadata = User::find(Auth::id())->likesMetadata()->get();
21
        $metadata = User::find(Auth::id())->likesMetadata()->orderBy(self::ORDER_COLUMN)->get();
22
        foreach($metadata as $item)
23
        {
24
            $item['artefact'] = Metadata::find($item->id)->artefact()->first();
25
        }
20 26

  
21 27
        return view('favmetadata.index', ['metadata' => $metadata]);
22 28
    }
public/css/app.css
1
@import url(https://fonts.googleapis.com/css?family=Nunito);@import url(https://db.onlinewebfonts.com/c/2090551770be22b09600a40b0b4673b7?family=Avenir+Medium);@import url(https://db.onlinewebfonts.com/c/275de2221d9f0c4c9257d17f5a1e4006?family=Avenir+Black);@import url(https://db.onlinewebfonts.com/c/1a045963159927274c92b0444fb83c17?family=Avenir);@charset "UTF-8";
1
@import url(https://fonts.googleapis.com/css?family=Nunito);@import url(https://fonts.googleapis.com/css2?family=Nunito:wght@600&display=swap);@import url(https://fonts.googleapis.com/css2?family=Nunito:wght@900&display=swap);@charset "UTF-8";
2 2

  
3 3
/*!
4 4
 * Bootstrap v4.4.1 (https://getbootstrap.com/)
......
34 34
  --breakpoint-md: 768px;
35 35
  --breakpoint-lg: 992px;
36 36
  --breakpoint-xl: 1200px;
37
  --font-family-sans-serif: "Nunito", sans-serif;
37
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
38 38
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
39 39
}
40 40

  
......
66 66

  
67 67
body {
68 68
  margin: 0;
69
  font-family: "Nunito", sans-serif;
69
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
70 70
  font-size: 0.9rem;
71 71
  font-weight: 400;
72 72
  line-height: 1.6;
......
6376 6376
  z-index: 1070;
6377 6377
  display: block;
6378 6378
  margin: 0;
6379
  font-family: "Nunito", sans-serif;
6379
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
6380 6380
  font-style: normal;
6381 6381
  font-weight: 400;
6382 6382
  line-height: 1.6;
......
6501 6501
  z-index: 1060;
6502 6502
  display: block;
6503 6503
  max-width: 276px;
6504
  font-family: "Nunito", sans-serif;
6504
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
6505 6505
  font-style: normal;
6506 6506
  font-weight: 400;
6507 6507
  line-height: 1.6;
......
10882 10882
  }
10883 10883
}
10884 10884

  
10885
@font-face {
10886
  font-family: "Avenir Black LINK";
10887
  src: url("//db.onlinewebfonts.com/t/275de2221d9f0c4c9257d17f5a1e4006.eot");
10888
  src: url("//db.onlinewebfonts.com/t/275de2221d9f0c4c9257d17f5a1e4006.eot?#iefix") format("embedded-opentype"), url("//db.onlinewebfonts.com/t/275de2221d9f0c4c9257d17f5a1e4006.woff2") format("woff2"), url("//db.onlinewebfonts.com/t/275de2221d9f0c4c9257d17f5a1e4006.woff") format("woff"), url("//db.onlinewebfonts.com/t/275de2221d9f0c4c9257d17f5a1e4006.ttf") format("truetype"), url("//db.onlinewebfonts.com/t/275de2221d9f0c4c9257d17f5a1e4006.svg#Avenir Black") format("svg");
10889
}
10890

  
10891
@font-face {
10892
  font-family: "Avenir Roman LINK";
10893
  src: url("//db.onlinewebfonts.com/t/1a045963159927274c92b0444fb83c17.eot");
10894
  src: url("//db.onlinewebfonts.com/t/1a045963159927274c92b0444fb83c17.eot?#iefix") format("embedded-opentype"), url("//db.onlinewebfonts.com/t/1a045963159927274c92b0444fb83c17.woff2") format("woff2"), url("//db.onlinewebfonts.com/t/1a045963159927274c92b0444fb83c17.woff") format("woff"), url("//db.onlinewebfonts.com/t/1a045963159927274c92b0444fb83c17.ttf") format("truetype"), url("//db.onlinewebfonts.com/t/1a045963159927274c92b0444fb83c17.svg#Avenir") format("svg");
10895
}
10896

  
10897
@font-face {
10898
  font-family: "Avenir Medium LINK";
10899
  src: url("//db.onlinewebfonts.com/t/0983e84d4a1963e075b5ae8ca12e2a4f.eot");
10900
  src: url("//db.onlinewebfonts.com/t/0983e84d4a1963e075b5ae8ca12e2a4f.eot?#iefix") format("embedded-opentype"), url("//db.onlinewebfonts.com/t/0983e84d4a1963e075b5ae8ca12e2a4f.woff2") format("woff2"), url("//db.onlinewebfonts.com/t/0983e84d4a1963e075b5ae8ca12e2a4f.woff") format("woff"), url("//db.onlinewebfonts.com/t/0983e84d4a1963e075b5ae8ca12e2a4f.ttf") format("truetype"), url("//db.onlinewebfonts.com/t/0983e84d4a1963e075b5ae8ca12e2a4f.svg#Avenir Medium") format("svg");
10901
}
10902

  
10903 10885
body {
10904 10886
  background-color: #272727;
10887
  font-family: Nunito;
10888
  /*.form-control:focus {
10889
      background-color: $theme-color-five;
10890
      margin-top: -1px;
10891
      border-top-color: $theme-color-five;
10892
      border-left-color: $theme-color-five;
10893
      border-right-color: $theme-color-five;
10894
      border-bottom-color: 0.5pt $theme-color-one;
10895
      color: $theme-color-one;
10896
      box-shadow: none;
10897
      font-size: 8pt;
10898
  }*/
10899
  /*footer {
10900
      background: $theme-color-four;
10901
      color: $theme-color-five;
10902
      display: block;
10903
      height: 50px;
10904
      position: fixed;
10905
      left: 0;
10906
      bottom: 0;
10907
      width: 100%;
10908
  }*/
10905 10909
}
10906 10910

  
10907 10911
body .head-title h1 {
10908 10912
  color: #ffffff;
10909
  font-family: Avenir;
10913
  font-weight: 400;
10910 10914
  font-size: 60pt;
10911
  font-weight: bold;
10912 10915
  letter-spacing: 3px;
10913 10916
}
10914 10917

  
......
10952 10955
  bottom: auto;
10953 10956
  transform: translateY(-50%);
10954 10957
  background-color: rgba(239, 218, 179, 0.5);
10955
  /*h2 {
10956
      font-family: Avenir Black;
10957
      font-size: 11pt;
10958
      letter-spacing: 3pt;
10959
      color: $white;
10960

  
10961
  }*/
10962 10958
}
10963 10959

  
10964 10960
body .carousel .carousel-caption p {
......
10967 10963
}
10968 10964

  
10969 10965
body .text {
10970
  font-family: Avenir Roman;
10966
  font-weight: 400;
10971 10967
  font-size: 8pt;
10972 10968
  line-height: 9pt;
10973 10969
}
10974 10970

  
10975 10971
body .text2 {
10976
  font-family: Avenir Medium;
10972
  font-weight: 600;
10977 10973
  font-size: 8pt;
10978 10974
}
10979 10975

  
10980 10976
body .kaplicky {
10981 10977
  color: #ffffff;
10982 10978
  font-size: 11pt;
10983
  font-family: Avenir Black;
10979
  font-weight: 900;
10984 10980
  letter-spacing: 3pt;
10985 10981
}
10986 10982

  
10987 10983
body .text-author {
10988
  font-family: Avenir Roman;
10984
  font-weight: 400;
10989 10985
  font-size: 7pt;
10990 10986
  color: #ead4b0;
10991 10987
}
10992 10988

  
10993 10989
body .text-number {
10994
  font-family: Avenir Medium;
10990
  font-weight: 600;
10995 10991
  font-size: 5pt;
10996 10992
  color: #ead4b0;
10997 10993
}
10998 10994

  
10999 10995
body .text-headline {
11000
  font-family: Avenir Medium;
10996
  font-weight: 600;
11001 10997
  font-size: 12pt;
11002 10998
  color: #ead4b0;
11003 10999
}
11004 11000

  
11005 11001
body .text-page {
11006
  font-family: Avenir Medium;
11002
  font-weight: 600;
11007 11003
  font-size: 7pt;
11008 11004
}
11009 11005

  
11006
body .black {
11007
  color: #272727;
11008
}
11009

  
11010
body .white {
11011
  color: #ffffff;
11012
}
11013

  
11014
body .colored {
11015
  color: #ead4b0;
11016
}
11017

  
11010 11018
body .auth .card {
11011 11019
  border: none;
11012 11020
  text-align: center;
......
11022 11030
body .auth .form-control {
11023 11031
  padding: 0px;
11024 11032
  height: 17pt;
11033
  border-radius: 0%;
11025 11034
}
11026 11035

  
11027 11036
body .card-body {
11028 11037
  background-color: #272727;
11029
  font-family: Avenir Roman;
11038
  font-weight: 400;
11030 11039
  color: #ead4b0;
11031 11040
}
11032 11041

  
......
11042 11051
  font-size: 8pt;
11043 11052
}
11044 11053

  
11045
body .form-control:focus {
11054
body .form-control:active,
11055
body .form-control:focus,
11056
body .form-control:visited {
11046 11057
  background-color: #272727;
11047 11058
  margin-top: -1px;
11048 11059
  border-top-color: #272727;
......
11051 11062
  border-bottom-color: 0.5pt #ffffff;
11052 11063
  color: #ffffff;
11053 11064
  box-shadow: none;
11054
  font-size: 8pt;
11065
}
11066

  
11067
body .form-control.is-invalid {
11068
  box-shadow: none;
11069
  border-color: #ead4b0;
11070
  background-image: none;
11071
}
11072

  
11073
body .form-control.is-invalid:active,
11074
body .form-control.is-invalid:focus,
11075
body .form-control.is-invalid:visited {
11076
  box-shadow: none;
11077
  border-color: #ead4b0;
11055 11078
}
11056 11079

  
11057 11080
body .button-square {
......
11062 11085
  border-radius: 0;
11063 11086
  width: 6.5rem;
11064 11087
  height: 2rem;
11065
  font-family: Avenir Roman;
11088
  font-weight: 400;
11066 11089
}
11067 11090

  
11068 11091
body .button-square:active,
......
11072 11095
  box-shadow: none;
11073 11096
}
11074 11097

  
11098
body .pin-left:before {
11099
  content: "";
11100
  position: relative;
11101
  height: 0.35433rem;
11102
  width: 0.35433rem;
11103
  background-color: #ffffff;
11104
  border-radius: 50%;
11105
  display: inline-block;
11106
  top: -0.35433rem;
11107
  left: -0.2rem;
11108
}
11109

  
11110
body .pin-left {
11111
  border-left: 0.5pt solid #ead4b0;
11112
  display: inline-block;
11113
  margin: 10rem 50px 0px -5rem;
11114
  position: fixed;
11115
  top: 0;
11116
  bottom: 0;
11117
  text-align: left;
11118
  width: 100%;
11119
}
11120

  
11121
body .pin-left .text {
11122
  margin-left: 0.5rem;
11123
}
11124

  
11125
body .pin-left p {
11126
  margin-top: 0pt;
11127
  margin-bottom: 0pt;
11128
}
11129

  
11130
body li {
11131
  list-style-type: none;
11132
}
11133

  
11075 11134
body .button-image {
11076 11135
  background-color: transparent;
11077 11136
  border-color: transparent;
......
11089 11148
  background-repeat: no-repeat;
11090 11149
}
11091 11150

  
11092
body .artefacts-area h5 {
11151
body .artefacts-area h5,
11152
body .artefact-area h5 {
11093 11153
  color: #ddd1b9;
11094
  font-family: "Avenir Medium LINK";
11154
  font-weight: 600;
11095 11155
  line-height: 20pt;
11096 11156
  font-size: 21pt;
11097 11157
}
11098 11158

  
11099
body .artefacts-area h6 {
11159
body .artefacts-area h6,
11160
body .artefact-area h6 {
11100 11161
  color: #ddd1b9;
11101 11162
  font-size: 14pt;
11102
  font-weight: lighter;
11103
  font-family: "Avenir Roman LINK";
11163
  font-weight: 400;
11104 11164
}
11105 11165

  
11106
body .artefacts-area img {
11166
body .artefacts-area img,
11167
body .artefact-area img {
11107 11168
  border: transparent;
11108 11169
  border-radius: 1px;
11109 11170
}
11110 11171

  
11111
body .artefacts-area .card {
11172
body .artefacts-area .card,
11173
body .artefact-area .card {
11112 11174
  margin: 10px;
11113 11175
  border: none !important;
11114 11176
}
11115 11177

  
11116
body .artefacts-area .left_panel_info {
11178
body .artefacts-area .left_panel_info,
11179
body .artefact-area .left_panel_info {
11117 11180
  margin-top: 15px;
11118 11181
  margin-left: -10px;
11119 11182
  max-width: 250px;
11120 11183
}
11121 11184

  
11122
body .artefacts-area .right_panel_info {
11185
body .artefacts-area .right_panel_info,
11186
body .artefact-area .right_panel_info {
11123 11187
  margin-top: 15px;
11124 11188
  margin-right: -15px;
11125 11189
}
11126 11190

  
11127
body .artefacts-area .card-cus-bottom {
11191
body .artefacts-area .card-cus-bottom,
11192
body .artefact-area .card-cus-bottom {
11128 11193
  background-color: #272727;
11129 11194
}
11130 11195

  
11131
body .artefacts-area .inter_info:before {
11196
body .artefacts-area .inter_info:before,
11197
body .artefact-area .inter_info:before {
11132 11198
  background-image: url(/images/Button_Info_50.png?cf6e509b9294d4138459f1846c7effdf);
11133 11199
  width: 60px;
11134 11200
  height: 60px;
11135 11201
}
11136 11202

  
11137
body .artefacts-area .inter_like {
11203
body .artefacts-area .inter_like,
11204
body .artefact-area .inter_like {
11138 11205
  display: none;
11139 11206
}
11140 11207

  
11141
body .artefacts-area .inter_like:before {
11208
body .artefacts-area .inter_like:before,
11209
body .artefact-area .inter_like:before {
11142 11210
  background-image: url(/images/Hearth_Empty_50.png?d969cd4d381634ef975e503608b3ab48);
11143 11211
  width: 60px;
11144 11212
  height: 60px;
11145 11213
}
11146 11214

  
11147
body .artefacts-area .inter_like_filled:before {
11215
body .artefacts-area .inter_like_filled:before,
11216
body .artefact-area .inter_like_filled:before {
11148 11217
  background-image: url(/images/Hearth_Filled_50.png?77bb26c3aba063c00aba1a2f07059d71);
11149 11218
  width: 60px;
11150 11219
  height: 60px;
......
11152 11221

  
11153 11222
body .artefacts-area .inter_info,
11154 11223
body .artefacts-area .inter_like,
11155
body .artefacts-area .inter_like_filled {
11224
body .artefacts-area .inter_like_filled,
11225
body .artefact-area .inter_info,
11226
body .artefact-area .inter_like,
11227
body .artefact-area .inter_like_filled {
11156 11228
  padding: 0;
11157 11229
}
11158 11230

  
......
11164 11236
body .artefacts-area .inter_like:hover,
11165 11237
body .artefacts-area .inter_like_filled:focus,
11166 11238
body .artefacts-area .inter_like_filled:active,
11167
body .artefacts-area .inter_like_filled:hover {
11239
body .artefacts-area .inter_like_filled:hover,
11240
body .artefact-area .inter_info:focus,
11241
body .artefact-area .inter_info:active,
11242
body .artefact-area .inter_info:hover,
11243
body .artefact-area .inter_like:focus,
11244
body .artefact-area .inter_like:active,
11245
body .artefact-area .inter_like:hover,
11246
body .artefact-area .inter_like_filled:focus,
11247
body .artefact-area .inter_like_filled:active,
11248
body .artefact-area .inter_like_filled:hover {
11168 11249
  background-color: transparent !important;
11169 11250
  border-color: transparent !important;
11170 11251
  outline: none !important;
11171 11252
  box-shadow: none !important;
11172 11253
}
11173 11254

  
11174
body .monButton:before {
11175
  background-image: url(/images/Button_Arrow_Small.png?a8cfe4b884bf46d3f59113e2a5fb1c4c);
11255
body .artefact-area .card-cus-bottom .left_panel_info,
11256
body .artefact-area .card-cus-bottom .right_panel_info {
11257
  margin: 0.9375rem 0 0 0;
11176 11258
}
11177 11259

  
11178
body .monButton:hover {
11179
  background-color: transparent;
11180
  border-color: #ead4b0;
11260
body .artefact-area .card-cus-bottom .right_panel_info .float-right {
11261
  margin-right: -0.35rem;
11181 11262
}
11182 11263

  
11183
body .monButton:focus {
11184
  background-color: transparent;
11185
  border-color: #ead4b0;
11186
  outline: none !important;
11187
  box-shadow: none !important;
11264
body .artefact-area .artefact-name {
11265
  font-weight: 600;
11266
  font-size: 8pt;
11267
  line-height: 10pt;
11268
  margin-bottom: 0;
11269
}
11270

  
11271
body .artefact-area .artefact-author {
11272
  font-size: 7pt;
11273
  line-height: 8pt;
11274
}
11275

  
11276
body .artefact-area .inter_like {
11277
  display: block;
11278
}
11279

  
11280
body .artefact-area .inter_like:before {
11281
  background-image: url(/images/Hearth_Empty_Small.png?252b4c7a69920aa18f2fc75a93aaa90a);
11282
  width: 25px;
11283
  height: 19px;
11284
}
11285

  
11286
body .artefact-area .inter_info {
11287
  padding-right: 1rem;
11288
}
11289

  
11290
body .artefact-area .inter_info:before {
11291
  background-image: url(/images/Button_Info_Small.png?9bc35ac07e9ec5a6b75d9af964e80512);
11292
  width: 29px;
11293
  height: 29px;
11294
}
11295

  
11296
body .artefact-area .artefact-likes {
11297
  font-weight: 600;
11298
  font-size: 5pt;
11299
  padding-right: 0.25rem;
11300
}
11301

  
11302
body .metadata-area h2 {
11303
  font-weight: 600;
11304
  font-size: 12pt;
11305
}
11306

  
11307
body .metadata-area .arrow-down {
11308
  position: fixed;
11309
  top: 0.25rem;
11310
  right: 0;
11311
  margin: 2rem;
11312
  width: 0;
11313
  height: 0;
11314
  border-left: 0.59055rem solid transparent;
11315
  border-right: 0.59055rem solid transparent;
11316
  border-top: 0.59055rem solid #ddd1b9;
11317
}
11318

  
11319
body .metadata-area .pin-horizontal {
11320
  color: #ddd1b9;
11321
  border-bottom: 0.042rem solid #ddd1b9;
11322
  display: inline-block;
11323
  margin: 3.35rem 3.125rem 0 0;
11324
}
11325

  
11326
body .metadata-area .pin-horizontal:before {
11327
  content: "";
11328
  background-color: #ddd1b9;
11329
  position: relative;
11330
  height: 0.5rem;
11331
  width: 0.5rem;
11332
  border-radius: 50%;
11333
  display: inline-block;
11334
  top: 1.5rem;
11335
  left: 50vw;
11188 11336
}
11189 11337

  
11190
body .monButton:active {
11338
body .metadata-area .pin-horizontal .metadata {
11339
  position: relative;
11340
  display: flex;
11341
  align-items: baseline;
11342
}
11343

  
11344
body .metadata-area .pin-horizontal .metadata span {
11345
  font-weight: 600;
11346
}
11347

  
11348
body .metadata-area .pin-horizontal .metadata .arrow-down {
11349
  position: relative;
11350
  top: 0;
11351
  right: 0;
11352
  width: 0;
11353
  height: 0;
11354
  border-left: 0.25rem solid transparent;
11355
  border-right: 0.25rem solid transparent;
11356
  border-top: 0.25rem solid #ddd1b9;
11357
  margin: 0 0.5rem 0 0.5rem;
11358
}
11359

  
11360
body .metadata-area .white-pin {
11361
  color: #ffffff;
11362
  border-bottom: 0.042rem solid #ffffff;
11363
}
11364

  
11365
body .metadata-area .white-pin:before {
11366
  content: "";
11367
  background-color: #ffffff;
11368
}
11369

  
11370
body .metadata-area .white-pin .metadata .arrow-down {
11371
  border-top: 0.25rem solid #ffffff;
11372
}
11373

  
11374
body .metadata-area .metadata-text {
11375
  font-size: 8pt;
11376
  color: #ffffff;
11377
  padding-top: 10px;
11378
  padding-left: 25px;
11379
  padding-right: 25px;
11380
}
11381

  
11382
body .metadata-area .metadata-text .artefact-info {
11383
  color: #ddd1b9;
11384
  margin-top: 10px;
11385
}
11386

  
11387
body .metadata-area .metadata-text .artefact-info .artefact-name {
11388
  font-weight: 600;
11389
  font-size: 8pt;
11390
}
11391

  
11392
body .metadata-area .metadata-text .artefact-info .artefact-author {
11393
  font-weight: 400;
11394
  font-size: 7pt;
11395
}
11396

  
11397
body .metadata-area .metadata-text .artefact-info .inter_like_filled:before {
11398
  background-image: url(/images/Hearth_Filled_50.png?77bb26c3aba063c00aba1a2f07059d71);
11399
  width: 50px;
11400
  height: 50px;
11401
}
11402

  
11403
body .metadata-area .metadata-text .artefact-info .inter_like_filled:hover,
11404
body .metadata-area .metadata-text .artefact-info .inter_like_filled:focus,
11405
body .metadata-area .metadata-text .artefact-info .inter_like_filled:active {
11191 11406
  background-color: transparent !important;
11192 11407
  border-color: transparent !important;
11193 11408
  outline: none !important;
......
11212 11427
  color: #ead4b0;
11213 11428
  outline: none !important;
11214 11429
  box-shadow: none !important;
11215
  font-family: Avenir Medium;
11430
  font-weight: 600;
11216 11431
}
11217 11432

  
11218 11433
body .content .btn-categories:active {
......
11223 11438
  color: #272727;
11224 11439
}
11225 11440

  
11226
body .content .btn-sm,
11227
body .content .btn-group-sm > .btn {
11228
  width: 120px;
11229
  height: 120px;
11441
body .cat-col-md-2 {
11442
  margin: 2%;
11230 11443
}
11231 11444

  
11232
body .content .btn-dm {
11233
  width: 240px;
11234
  height: 240px;
11445
body .btn.btn-dark.cat-tile {
11446
  border-color: #ead4b0;
11447
  border-radius: 0;
11448
  border-style: solid;
11449
  border-width: 2px;
11450
  color: #ead4b0;
11451
  background-color: #272727;
11452
  text-align: center;
11453
  outline: none !important;
11454
  box-shadow: none !important;
11455
  font-size: 8mm;
11456
  word-wrap: break-word;
11457
  height: 40mm;
11458
  width: 100%;
11235 11459
}
11236 11460

  
11237
body .content .btn-xl {
11238
  width: 360px;
11239
  height: 360px;
11461
body .btn.btn-dark.cat-tile:active,
11462
body .btn.btn-dark.cat-tile:focus {
11463
  background-color: #efdab3;
11464
  border-color: #ead4b0;
11465
  outline: none !important;
11466
  box-shadow: none !important;
11467
  color: #272727;
11468
}
11469

  
11470
body .category-h2 {
11471
  color: #ead4b0;
11472
}
11473

  
11474
.arrow {
11475
  position: absolute;
11476
  width: 0;
11477
  height: 0;
11478
  margin: 2rem;
11479
  cursor: pointer;
11480
  border: 0.59055rem solid transparent;
11481
}
11482

  
11483
.arrow-left {
11484
  margin-left: 80%;
11485
  border-right: 0.59055rem solid #272727;
11486
  background-color: #ead4b0 !important;
11487
}
11488

  
11489
.arrow-right {
11490
  border-left: 0.59055rem solid #ead4b0;
11491
  position: fixed;
11492
  z-index: 1;
11493
  top: 0;
11494
  left: 0;
11495
}
11496

  
11497
.sidenav {
11498
  height: 100%;
11499
  width: 0;
11500
  width: 250px;
11501
  position: fixed;
11502
  z-index: 1;
11503
  top: 0;
11504
  left: 0;
11505
  background-color: #ead4b0;
11506
  overflow-x: hidden;
11507
  transition: 0.5s;
11508
}
11509

  
11510
.sidenav a {
11511
  text-decoration: none;
11512
  color: #272727;
11513
  display: block;
11514
  transition: 0.3s;
11515
}
11516

  
11517
.sidenav a:hover {
11518
  color: #ead4b0;
11519
  background-color: #ffffff;
11520
}
11521

  
11522
@media screen and (max-height: 450px) {
11523
  .sidenav a {
11524
    font-size: 18px;
11525
  }
11526
}
11527

  
11528
@media (max-width: 990px) {
11529
  body {
11530
    /*.pin-left {
11531
        margin-left: -15rem;
11532
        margin-top: 11rem;
11533
    }*/
11534
  }
11535
}
11536

  
11537
@media (max-width: 770px) {
11538
  body .pin-left {
11539
    margin-left: -33vw;
11540
    margin-top: 12rem;
11541
  }
11240 11542
}
11241 11543

  
11242 11544
@media only screen and (max-width: 540px) {
11545
  .sidenav {
11546
    width: 0;
11547
  }
11548

  
11243 11549
  .head-title.text-center h1 {
11244
    font-size: 45pt;
11550
    font-size: 23pt;
11551
    padding-top: 50pt;
11552
    white-space: nowrap;
11245 11553
  }
11246 11554

  
11247 11555
  .btn-circle.rounded-circle.btn-sm,
public/js/app.js
37052 37052
/*! no static exports found */
37053 37053
/***/ (function(module, exports, __webpack_require__) {
37054 37054

  
37055
__webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js");
37055
__webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js"); // Center metadata page text
37056

  
37057

  
37058
$(document).ready(function () {
37059
  var display_width = $(window).width();
37060
  $(".metadata").each(function () {
37061
    var metadata = $(this);
37062
    var width = metadata.width();
37063
    metadata.css("margin-left", display_width / 2 - width);
37064
  });
37065
});
37056 37066

  
37057 37067
/***/ }),
37058 37068

  
resources/js/app.js
1 1
require('./bootstrap');
2

  
3
// Center metadata page text
4
$(document).ready(function () {
5
    let display_width = $(window).width();
6

  
7
    $(".metadata").each(function() {
8
        let metadata = $(this);
9
        let width = metadata.width();
10

  
11
        metadata.css("margin-left", (display_width / 2)  - width);
12
    });
13

  
14
});
resources/sass/_custom.scss
59 59
            bottom: auto;
60 60
            transform: translateY(-50%);
61 61
            background-color:  rgba(239, 218, 179, 0.5);
62

  
63
            p {
64
                font-size: 8pt;
65
                color: $theme-color-five;
66
            }
67 62
        }
68 63
    }
69 64

  
......
138 133

  
139 134
        .col-form-label{
140 135
            text-align: left;
141
            padding-top: 0px;
142
            padding-bottom: 0px;
136
            padding-top: 0;
137
            padding-bottom: 0;
143 138
        }
144 139
        .form-control{
145
            padding: 0px;
140
            padding: 0;
146 141
            height: 17pt;
147
            border-radius: 0%;
142
            border-radius: 0;
148 143
        }
149 144
    }
150 145

  
......
152 147
    	background-color: $theme-color-five;
153 148
    	font-weight: $font-weight-one;
154 149
    	color: $theme-color-four;
155

  
156 150
	}
157 151

  
158 152
	.form-control {
......
188 182
        }
189 183
    }
190 184

  
191
    /*.form-control:focus {
192
        background-color: $theme-color-five;
193
        margin-top: -1px;
194
        border-top-color: $theme-color-five;
195
        border-left-color: $theme-color-five;
196
        border-right-color: $theme-color-five;
197
        border-bottom-color: 0.5pt $theme-color-one;
198
        color: $theme-color-one;
199
        box-shadow: none;
200
        font-size: 8pt;
201
    }*/
202

  
203 185
    .button-square {
204 186
        font-size: 8pt;
205 187
        background-color: $theme-color-five;
......
227 209
        display: inline-block;
228 210
        top: -0.35433rem;
229 211
        left: -0.2rem;
230

  
231 212
    }
232 213

  
233 214
    .pin-left {
234 215
        border-left: .5pt solid $theme-color-four;
235 216
        display: inline-block;
236
        //margin: 50px;
237
        //margin-bottom: 0pt;
238 217
        margin: 10rem 50px 0px -5rem;
239
        //min-height: 75vh;
240
        //height: auto;
241 218
        position: fixed;
242 219
        top: 0;
243 220
        bottom: 0;
244 221
        text-align: left;
245 222
        width: 100%;
246 223
        .text{
247
            //padding-top: 5rem;//0.35433rem;
248
            //margin-top: 5rem;
249
            //top: 5rem;
250 224
            margin-left: 0.5rem;
251 225
        }
252 226
        p{
253
            margin-top: 0pt;
254
            margin-bottom: 0pt;
227
            margin-top: 0;
228
            margin-bottom: 0;
255 229
        }
256 230
    }
257 231

  
258
    footer {
259
        background: $theme-color-four;
260
        color: $theme-color-five;
261
        display: block;
262
        height: 50px;
263
        position: fixed;
264
        left: 0;
265
        bottom: 0;
266
        width: 100%;
232
    li{
233
        list-style-type: none;
267 234
    }
268 235

  
269 236
    .button-image {
......
283 250
        }
284 251
    }
285 252

  
286
    .artefacts-area {
253
    .artefacts-area, .artefact-area {
287 254

  
288 255
        h5 {
289 256
            color: $theme-color-two;
......
360 327
        }
361 328
    }
362 329

  
363
    .monButton {
364 330

  
365
        &:before {
366
            background-image : url(../images/Button_Arrow_Small.png);
367
            //height: 0.9685rem;
368
            //width: 0.59055rem;
331
    .artefact-area {
332

  
333
        .card-cus-bottom {
334
            .left_panel_info, .right_panel_info {
335
                margin: 0.9375rem 0 0 0;
336
            }
337

  
338
            .right_panel_info {
339
                .float-right {
340
                    margin-right: -0.35rem;
341
                }
342
            }
369 343
        }
370 344

  
371
        &:hover {
372
            background-color: transparent;
373
            border-color: $theme-color-four;
345
        .artefact-name {
346
            font-weight: $font-weight-two;
347
            font-size: 8pt;
348
            line-height: 10pt;
349
            margin-bottom: 0;
374 350
        }
375 351

  
376
        &:focus {
377
            background-color: transparent;
378
            border-color: $theme-color-four;
379
            outline: none !important;
380
            box-shadow: none !important;
352
        .artefact-author {
353
            font-size: 7pt;
354
            line-height: 8pt;
381 355
        }
382 356

  
383
        &:active {
384
            background-color: transparent !important;
385
            border-color: transparent !important;
386
            outline: none !important;
387
            box-shadow: none !important;
357
        .inter_like {
358
            display: block;
359

  
360
            &:before {
361
                background-image: url(../images/interface/Hearth_Empty_Small.png);
362
                width: 25px;
363
                height: 19px;
364
            }
365
        }
366

  
367
        .inter_info {
368

  
369
            padding-right: 1rem;
370
            &:before {
371
                background-image: url(../images/interface/Button_Info_Small.png);
372
                width: 29px;
373
                height: 29px;
374
            }
375
        }
376

  
377
        .artefact-likes {
378
            font-weight: $font-weight-two;
379
            font-size: 5pt;
380
            padding-right: 0.25rem;
381
        }
382
    }
383

  
384
    // Metadata area
385
    .metadata-area {
386

  
387
        h2 {
388
            font-weight: $font-weight-two;
389
            font-size: 12pt;
390
        }
391

  
392
        .arrow-down {
393
            position: fixed;
394
            top: 0.25rem;
395
            right: 0;
396
            margin: 2rem;
397
            width: 0;
398
            height: 0;
399
            border-left: 0.59055rem solid transparent;
400
            border-right: 0.59055rem solid transparent;
401
            border-top: 0.59055rem solid $theme-color-two;
402
        }
403

  
404
        .pin-horizontal {
405
            color: $theme-color-two;
406
            border-bottom: .042rem solid $theme-color-two;
407
            display: inline-block;
408
            margin: 3.35rem 3.125rem 0 0;
409

  
410
            &:before {
411
                content: '';
412
                background-color: $theme-color-two;
413
                position: relative;
414
                height: .5rem;
415
                width: .5rem;
416
                border-radius: 50%;
417
                display: inline-block;
418
                top: 1.5rem;
419
                left: 50vw;
420
            }
421

  
422
            .metadata {
423
                position: relative;
424
                display: flex;
425
                align-items: baseline;
426

  
427
                span {
428
                    font-weight: $font-weight-two;
429
                }
430

  
431
                .arrow-down {
432
                    position: relative;
433
                    top: 0;
434
                    right: 0;
435
                    width: 0;
436
                    height: 0;
437
                    border-left: 0.25rem solid transparent;
438
                    border-right: 0.25rem solid transparent;
439
                    border-top: 0.25rem solid $theme-color-two;
440
                    margin: 0 0.5rem 0 0.5rem;
441
                }
442
            }
443
        }
444

  
445
        .white-pin {
446
            color: $theme-color-one;
447
            border-bottom: .042rem solid $theme-color-one;
448

  
449
            &:before {
450
                content: '';
451
                background-color: $theme-color-one;
452
            }
453

  
454
            .metadata {
455
                .arrow-down {
456
                    border-top: 0.25rem solid $theme-color-one;
457
                }
458
            }
459
        }
460

  
461
        .metadata-text {
462
            font-size: 8pt;
463
            color: $theme-color-one;
464
            padding-top: 10px;
465
            padding-left: 25px;
466
            padding-right: 25px;
467

  
468
            .artefact-info {
469
                color: $theme-color-two;
470
                margin-top: 10px;
471

  
472
                .artefact-name {
473
                    font-weight: $font-weight-two;
474
                    font-size: 8pt;
475
                }
476

  
477
                .artefact-author {
478
                    font-weight: $font-weight-one;
479
                    font-size: 7pt;
480
                }
481

  
482
                .inter_like_filled {
483

  
484
                    &:before {
485
                        background-image : url(../images/interface/Hearth_Filled_50.png);
486
                        width: 50px;
487
                        height: 50px;
488
                    }
489

  
490
                    &:hover, &:focus, &:active {
491
                        background-color: transparent !important;
492
                        border-color: transparent !important;
493
                        outline: none !important;
494
                        box-shadow: none !important;
495
                    }
496
                }
497
            }
388 498
        }
389 499
    }
390 500

  
391
    .content {
501
    /*.content {
392 502
        position: relative;
393 503

  
394 504
        //Circle style button
395
            //Toto možná nebude zcela optimální pro ostatní circle buttony. Nehodící se propagujte do btn-categories.
396 505
        .btn-circle.rounded-circle {
397 506
            padding: 6px 0px;
398 507
            font-size: 16px;
......
418 527
                color:$theme-color-five;
419 528
            }
420 529
        }
530
    }*/
421 531

  
422
        .btn-sm
423
        {
424
            width: 120px;
425
            height: 120px;
426
        }
427
        .btn-dm
428
        {
429
            width: 240px;
430
            height: 240px;
431
        }
432
        .btn-xl
532

  
533

  
534
    //CATEGORIES - ROW BLOCK
535
    .cat-col-md-2
536
    {
537
        margin: 2%;
538
    }
539

  
540
    //CATEGORIES - TILES
541
    .btn.btn-dark.cat-tile
542
    {
543
        //STYLING
544
        border-color: $theme-color-four;
545
        border-radius: 0;
546
        border-style: solid;
547
        border-width: 2px;
548
        color: $theme-color-four;
549
        background-color: $theme-color-five;
550
        text-align: center;
551
        outline: none !important;
552
        box-shadow: none !important;
553

  
554
        //FONT
555
        font-size: 8mm;
556
        word-wrap: break-word;
557

  
558
        //SPACING
559
        height: 40mm;
560
        width: 100%;
561

  
562
        &:active, &:focus
433 563
        {
434
            width: 360px;
435
            height: 360px;
564
            background-color: $theme-color-three;
565
            border-color: $theme-color-four;
566
            outline: none !important;
567
            box-shadow: none !important;
568
            color: $theme-color-five;
436 569
        }
570
    }
437 571

  
572
    //CATEGORY/{id} -h2 title NO ARTEFACTS
573
    .category-h2
574
    {
575
        color: $theme-color-four;
438 576
    }
439 577
}
440 578

  
......
465 603

  
466 604
.sidenav {
467 605
    height: 100%;
468
    width: 0;
606
    //width: 0;
607
    width: 250px;
469 608
    position: fixed;
470 609
    z-index: 1;
471 610
    top: 0;
......
488 627
}
489 628

  
490 629
@media screen and (max-height: 450px) {
491
    //.sidenav {padding-top: 15px;}
492 630
    .sidenav a {font-size: 18px;}
493 631
}
494 632

  
495
@media (max-width: 990px) {
496
    body {
497
        /*.pin-left {
498
            margin-left: -15rem;
499
            margin-top: 11rem;
500
        }*/
501
    }
502
}
633
@media (max-width: 990px) {}//Ponecháno pro případ, že se bude měnit login
503 634

  
504 635
@media (max-width: 770px) {
505 636
    body {
......
513 644

  
514 645
@media only screen and (max-width: 540px)
515 646
{
647
    .sidenav{
648
        width: 0;
649
    }
516 650
    .head-title.text-center h1
517 651
    {
518
        font-size: 45pt;
652
        font-size: 23pt;
653
        padding-top: 50pt;
654
        white-space: nowrap;
655

  
519 656
    }
520 657

  
521
    .btn-circle.rounded-circle.btn-sm
658
    /*.btn-circle.rounded-circle.btn-sm
522 659
    {
523 660
        width: 90px;
524 661
        height: 90px;
......
534 671
    {
535 672
        width: 180px;
536 673
        height: 180px;
537
    }
674
    }*/
538 675

  
539 676
    body{
540 677
        .carousel {
resources/views/artefact/category.blade.php
1
@extends('layouts.app')
2

  
3
@section('title', 'Artefacts')
4

  
5
@section('breadcrumb')
6
    <li class="breadcrumb-item"><a href="{{ url('/') }}">Home</a></li>
7
    <li class="breadcrumb-item active" aria-current="page">Artefacts</li>
8
@endsection
9

  
10

  
11
@section('content')
12
    <div class="container">
13
        <div class="jumbotron mt-5">
14
            <div class="text-center">
15
                <h1>Artefact list</h1>
16
                <p>
17
                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
18
                    Mauris dolor felis, sagittis at, luctus sed, aliquam non, tellus.
19
                    Fusce tellus odio, dapibus id fermentum quis, suscipit id erat.
20
                    Morbi scelerisque luctus velit. Vivamus porttitor turpis ac leo.
21
                    Morbi scelerisque luctus velit.
22
                    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
23
                </p>
24
            </div>
25
        </div>
26

  
27
        @if (count($artefacts) === 0)
28
            <div class="text-center category-h2">
29
                <h2>Currently no artefacts available.</h2>
30
            </div>
31
        @else
32
            @foreach($artefacts as $artefact)
33
                <div class="artefacts-area mb-5">
34
                    <div class="card">
35
                        <svg class="bd-placeholder-img card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Image cap"><title>Placeholder</title><rect width="100%" height="100%" fill="#868e96"></rect><text x="45%" y="50%" fill="#dee2e6" dy=".3em">Artefact image</text></svg>
36
                        <div class="card-body">
37
                            <h5 class="card-title"><a href="{{ url('/artefact/' . $artefact[0]->id) }}">{{$artefact[0]->name}}</a> - {{$artefact[0]->author}}</h5>
38
                            <h6 class="card-subtitle mb-2 text-muted">{{$artefact[0]->year}}, {{$artefact[0]->pages}} pages</h6>
39
                            <p class="card-text">
40
                                Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
41
                                Mauris dolor felis, sagittis at, luctus sed, aliquam non, tellus.
42
                                Fusce tellus odio, dapibus id fermentum quis, suscipit id erat.
43
                                Morbi scelerisque luctus velit. Vivamus porttitor turpis ac leo.
44
                                Morbi scelerisque luctus velit.
45
                                Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
46
                            </p>
47
                        </div>
48
                    </div>
49
                </div>
50
            @endforeach
51
        @endif
52
    </div>
53

  
54
@endsection
... Rozdílový soubor je zkrácen, protože jeho délka přesahuje max. limit.

Také k dispozici: Unified diff