Skip to content

Commit

Permalink
Merge branch 'development' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
orkit committed Mar 21, 2024
2 parents 7e147c1 + 40f992c commit 7892356
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 8 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"src": "node_modules/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.woff2"
},
"resources/css/site.css": {
"file": "assets/site-ccef6fc8.css",
"file": "assets/site-7ae2871b.css",
"isEntry": true,
"src": "resources/css/site.css"
},
Expand Down
Binary file added public/images/su_logo_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions resources/views/footer/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
<!-- Grid -->
<div class="grid md:grid-cols-4 lg:grid-cols-5 gap-8 mb-10">
<div class="col-span-full lg:col-span-1">
<img class="h-24" src="{{asset('images/su_logo.png')}}" alt="Stockholms universitet">
<img class="h-24 block dark:hidden" src="{{asset('images/su_logo.png')}}" alt="Stockholms universitet">
<img class="h-24 hidden dark:block" src="{{asset('images/su_logo_dark.png')}}" alt="Stockholms universitet">
{{--}}
<a class="flex-none text-xl font-semibold dark:text-white dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600" href="#" aria-label="Brand">{{__("Stockholms University")}}</a>
{{--}}
<p class="mt-3 text-xs sm:text-sm text-gray-600 dark:text-gray-400">{{__("Department of Computer and Systems Sciences")}}</p>
<p class="mt-3 text-xs sm:text-sm text-gray-600 dark:text-gray-200">{{__("Department of Computer and Systems Sciences")}}</p>
</div>
<!-- End Col -->

Expand Down
4 changes: 2 additions & 2 deletions resources/views/livewire/roomstatus.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</a>
</div>
@endif
<p class="mb-2 text-sm font-semibold text-blue-600 dark:text-gray-200">{!! $page->title !!}</p>
<p class="mb-1 text-sm font-semibold text-blue-600 dark:text-gray-200">{!! $page->title !!}</p>

<div class="inline">
<p class="inline-flex mb-2 text-sm font-normal dark:text-gray-200">{{__("Projector")}} |</p>
Expand All @@ -22,7 +22,7 @@
</div>

<br>
<a href="#" class="inline-flex">
<a href="{{ config('app.url')}}{{$page->slug}}" class="inline-flex">
@if($page->projector == true )
<span class="bg-red-100 text-red-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-red-400 border border-red-400">{{__("Error")}}</span>
@elseif(!empty($page->projector_status))
Expand Down
4 changes: 2 additions & 2 deletions resources/views/navbar/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ class="md:hidden p-2 text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-
</div>
</div>
<!-- CLOSE -->
<div class="p-2 bg-white border-y">
<div class="p-2 bg-white border-y dark:bg-gray-900">
<div class="px-4 py-5 mx-auto space-y-6 2xl:max-w-7xl sm:flex sm:space-y-0 sm:space-x-10 sm:px-6 lg:px-8">
<div class="flow-root mx-auto">
<div x-on:click="openMobileMenu = false" class="flex items-center p-3 -m-3 text-sm text-gray-500 transition duration-150 ease-in-out hover:text-blue-500">
<div x-on:click="openMobileMenu = false" class="flex items-center p-3 -m-3 text-sm text-gray-500 transition duration-150 ease-in-out hover:text-blue-500 dark:text-white">
{{__("Close menu")}}
<span class="ml-3" aria-hidden="true">
<svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
Expand Down
39 changes: 39 additions & 0 deletions resources/views/rooms/partials/room.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<div class="space-y-5 md:space-y-8">
<div class="space-y-3">
<h2 class="text-2xl font-bold md:text-3xl dark:text-gray-200 dark:before:bg-gray-600"> {!! $page->title !!}</h2>
<br>
@if($page->projector === false and $page->recorder === false and $page->room ===false and empty($page->projector_status) and empty($page->recorder_status) and empty($page->room_status))
<p class="text-lg text-gray-800 dark:text-gray-200 dark:before:bg-gray-600">{!! $page->content !!}</p>
@endif

<!-- Projector -->
@if($page->projector)
<span class="bg-red-100 text-red-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-red-400 border border-red-400">{{__("Projector")}}</span>
<p class="text-lg text-gray-800 dark:text-gray-200 dark:before:bg-gray-600">{{__("There is a malfunction with the projector")}}</p>
<br>
@elseif(!empty($page->projector_status))
<span class="bg-yellow-100 text-yellow-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-yellow-400 border border-yellow-400">{{__("Projector")}}</span>
<p class="text-lg text-gray-800 dark:text-gray-200 dark:before:bg-gray-600">{!! $page->projector_status !!}</p>
<br>
@endif
<!-- Recorder -->
@if($page->recorder)
<span class="bg-red-100 text-red-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-red-400 border border-red-400">{{__("Recorder")}}</span>
<p class="text-lg text-gray-800 dark:text-gray-200 dark:before:bg-gray-600">{{__("There is a malfunction with the recorder")}}</p>
<br>
@elseif(!empty($page->recorder_status))
<span class="bg-yellow-100 text-yellow-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-yellow-400 border border-yellow-400">{{__("Recorder")}}</span>
<p class="text-lg text-gray-800 dark:text-gray-200 dark:before:bg-gray-600">{!! $page->recorder_status !!}</p>
<br>
@endif
<!-- Room -->
@if($page->room)
<span class="bg-red-100 text-red-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-red-400 border border-red-400">{{__("Room")}}</span>
<p class="text-lg text-gray-800 dark:text-gray-200 dark:before:bg-gray-600">{{__("There is a malfunction with the room")}}</p>
@elseif(!empty($page->room_status))
<span class="bg-yellow-100 text-yellow-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-yellow-400 border border-yellow-400">{{__("Room")}}</span>
<p class="text-lg text-gray-800 dark:text-gray-200 dark:before:bg-gray-600">{!! $page->room_status !!}</p>
@endif

</div>
</div>
40 changes: 40 additions & 0 deletions resources/views/rooms/show.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@extends('layouts.app')
@include('dsvheader')
@include('navbar.navbar')
<!-- News -->
<div class="py-8 px-4 mx-auto max-w-2xl lg:py-16">
<div class="max-w-2xl">
<div class="flex justify-between items-center mb-6">
<div class="flex w-full sm:items-center gap-x-5 sm:gap-x-3">
<div class="grow">
<div class="flex justify-between items-center gap-x-2">
<div>
<div class="inline-block">
<div class="sm:mb-1 block text-start">
<span class="text-xs text-gray-800 dark:text-gray-200">
Reported by: {!! $page->author->name ?? 'DMC' !!}
</span>
</div>
</div>
<ul class="text-xs text-gray-500">
<li class="inline-block relative pe-6 last:pe-0 last-of-type:before:hidden before:absolute before:top-1/2 before:end-2
before:-translate-y-1/2 before:w-1 before:h-1 before:bg-gray-300 before:rounded-full dark:text-gray-400 dark:before:bg-gray-600">
{!! $page->date !!}
</li>
<li class="inline-block relative pe-6 last:pe-0 last-of-type:before:hidden before:absolute before:top-1/2 before:end-2 before:-translate-y-1/2
before:w-1 before:h-1 before:bg-gray-300 before:rounded-full dark:text-gray-400 dark:before:bg-gray-600">
<span class="bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300">{{$page->collection}}</span>
</li>
</ul>
</div>

</div>
</div>
</div>
</div>
<!-- Content -->
@nocache('rooms.partials.room')
<!-- End Content -->
</div>
</div>
@include('layouts.darktoggler')
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = {
suprimary: '#002f5f',
sudepartment: '#33587f',
susecondary: '#acdee6',
sublue: '#0f6cbf'
},
},
},
Expand Down

0 comments on commit 7892356

Please sign in to comment.