diff --git a/public/assets/css/front/location.css b/public/assets/css/front/location.css index 4ce4bf3..f0689e0 100644 --- a/public/assets/css/front/location.css +++ b/public/assets/css/front/location.css @@ -14,8 +14,43 @@ section[role="location"] img { vertical-align: top; } +div.location-rating { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 10px; + width: 98%; + font-weight: 500; + font-size: 0.8em; + color: var(--secondary); +} + +div.location-rating > div { + border-radius: 3px; + color: var(--primary); + padding: 5px 5px 0; +} + +div.location-rating > div:nth-child(1) { + background: var(--secondary); +} + +div.location-rating > div:nth-child(2) { + background: var(--silence); +} + +div.location-rating > div:nth-child(3) { + background: var(--suspend); +} + +div.location-rating > div > span { + position: relative; + top: 6px; + float: right; + width: 80%; + text-align: center; +} + .rating-icon { - width: 45px; - top: 10px; + width: 35px; position: relative; } diff --git a/public/assets/css/global/typography.css b/public/assets/css/global/typography.css index 0ee2281..e18cfa6 100644 --- a/public/assets/css/global/typography.css +++ b/public/assets/css/global/typography.css @@ -63,6 +63,6 @@ h2 { } h3 { - font-size: 1.5em; - font-weight: 300; + font-size: 1em; + font-weight: 500; } diff --git a/public/assets/images/global/heat.svg b/public/assets/images/global/heat.svg new file mode 100644 index 0000000..2903c6d --- /dev/null +++ b/public/assets/images/global/heat.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/resources/views/front/location.blade.php b/resources/views/front/location.blade.php index 5ce19fe..6c8a785 100644 --- a/resources/views/front/location.blade.php +++ b/resources/views/front/location.blade.php @@ -6,25 +6,40 @@ @parent
-

{{$title}}

Description

{{$location->description}}
-

Screens

+

References

+

Images

@if($images != null) @foreach($images as $image) @endforeach @endif -
- Total Actions: {{$actions}}/{{$sources_count}}
- - Suspended: {{$location->block_count}} + @php + $action = $location->block_count + $location->silence_count; + $rating = ($action / $sources_count)*100; + @endphp +

Links

+
+
+ + RATING: {{$rating}}% +
+
+ + SILENCED: {{$location->silence_count}} +
+
+ + SUSPENDED: {{$location->block_count}} +
+
- - Silenced: {{$location->silence_count}} -

- Total Actions represent the number of actions, silences or suspensions, that have been taken against an instance by Current Sources + + +
+ Heat Rating is the percentage of Current Sources that have taken action against an instance. The higher the number of Sources that have silenced and/or suspended an instance, the higher the Heat Rating.
UPDATED : {{$updated}}