-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dashboard layout and refactor some codes
- Loading branch information
1 parent
b8bf509
commit 5b75c2c
Showing
11 changed files
with
268 additions
and
98 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
@extends('layouts.app') | ||
|
||
@section('title') | ||
@yield('title') | ||
@endsection | ||
|
||
@section('layout') | ||
<div class="w-full flex"> | ||
<!-- Sidebar --> | ||
<div class="w-2/12 h-screen flex flex-col items-center py-12 sticky left-0"> | ||
<a href="/" class="px-3 mb-12"> | ||
<img src="{{asset('img/logo.PNG')}}" alt="Sqola" style="height: 45px;" class="mx-8"> | ||
</a> | ||
<a href="/" class="mx-3 px-10 py-2 text-white bg-blue-500 rounded-lg hover:bg-blue-700 mb-10"> Join a Course </a> | ||
<a href="/" class="my-2 py-2 w-full border-r-4 border-blue-500 font-medium"> | ||
<div class="mx-auto w-max"> | ||
<i class="fas fa-book-reader mr-2"></i> | ||
<span class="text-black">My Course</span> | ||
</div> | ||
</a> | ||
<a href="/" class="my-2 py-2 w-full text-gray-400 hover:text-gray-800 hover:bg-gray-100 font-medium"> | ||
<div class="mx-auto w-max"> | ||
<i class="fas fa-th-large mr-2"></i> | ||
<span>Categories</span> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
<div class="w-7/12 flex flex-col items-center py-12 px-20 bg-gray-200"> | ||
@yield('content') | ||
</div> | ||
|
||
<div class="w-3/12 flex flex-col items-center py-12"> | ||
<h1 class="font-bold text-xl uppercase text-center mb-16">Nama User</h1> | ||
|
||
<!-- Courses in Progress --> | ||
<div class="w-full mb-10"> | ||
<h1 class="text-lg font-semibold mb-4 px-8">Progress</h1> | ||
|
||
<!-- Courses List --> | ||
<div class="grid auto-rows-fr"> | ||
<a href="#" class="py-2 px-8 grid grid-cols-6 items-center h-max hover:bg-gray-100"> | ||
<div class="bg-blue-100 flex justify-center items-center rounded-lg col-span-1" style="height: 45px; width: 45px;"> | ||
<i class="fas fa-pencil-alt text-blue-500"></i> | ||
</div> | ||
<div class="flex flex-col justify-center h-full col-span-3 mx-2"> | ||
<p class="font-semibold">Reaksi Redoks</p> | ||
<p class="text-sm font-light text-gray-400">Kimia</p> | ||
</div> | ||
<div class="flex flex-col justify-center col-span-2"> | ||
<p class="text-sm font-light text-gray-400">x% to complete</p> | ||
<div class="relative inline-block w-full bg-blue-100 h-2 rounded-xl"> | ||
<div class="absolute inline-block bg-blue-500 h-2 rounded-xl" style="width: 75%"></div> | ||
</div> | ||
</div> | ||
</a> | ||
|
||
<a href="#" class="py-2 px-8 grid grid-cols-6 items-center h-max hover:bg-gray-100"> | ||
<div class="bg-red-100 flex justify-center items-center rounded-lg col-span-1" style="height: 45px; width: 45px;"> | ||
<i class="fas fa-pencil-alt text-red-500"></i> | ||
</div> | ||
<div class="flex flex-col justify-center h-full col-span-3 mx-2"> | ||
<p class="font-semibold">Persamaan Linear Kuadrat</p> | ||
<p class="text-sm font-light text-gray-400">Matematika</p> | ||
</div> | ||
<div class="flex flex-col justify-center col-span-2"> | ||
<p class="text-sm font-light text-gray-400">x% to complete</p> | ||
<div class="relative inline-block w-full bg-red-100 h-2 rounded-xl"> | ||
<div class="absolute inline-block bg-red-500 h-2 rounded-xl" style="width: 25%"></div> | ||
</div> | ||
</div> | ||
</a> | ||
|
||
<a href="#" class="py-2 px-8 grid grid-cols-6 items-center h-max hover:bg-gray-100"> | ||
<div class="bg-green-100 flex justify-center items-center rounded-lg col-span-1" style="height: 45px; width: 45px;"> | ||
<i class="fas fa-pencil-alt text-green-500"></i> | ||
</div> | ||
<div class="flex flex-col justify-center h-full col-span-3 mx-2"> | ||
<p class="font-semibold">Sistem Reproduksi</p> | ||
<p class="text-sm font-light text-gray-400">Biologi</p> | ||
</div> | ||
<div class="flex flex-col justify-center col-span-2"> | ||
<p class="text-sm font-light text-gray-400">x% to complete</p> | ||
<div class="relative inline-block w-full bg-green-100 h-2 rounded-xl"> | ||
<div class="absolute inline-block bg-green-500 h-2 rounded-xl" style="width: 50%"></div> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<!-- Last Question --> | ||
<div class="w-full mb-10"> | ||
<h1 class="text-lg font-semibold mb-4 px-8">Last Question</h1> | ||
|
||
<!-- Questions List --> | ||
<div class="grid auto-rows-fr"> | ||
<a href="#" class="py-2 px-8 grid grid-cols-6 items-center h-max hover:bg-gray-100"> | ||
<div class="bg-blue-100 flex justify-center items-center rounded-lg col-span-1" style="height: 45px; width: 45px;"> | ||
<i class="fas fa-pencil-alt text-blue-500"></i> | ||
</div> | ||
<div class="flex flex-col justify-center h-full col-span-5 ml-2"> | ||
<p class="font-semibold">Teori Atom</p> | ||
<p class="text-sm font-light text-gray-400">27 Oct 2020, Tuesday</p> | ||
</div> | ||
</a> | ||
|
||
<a href="#" class="py-2 px-8 grid grid-cols-6 items-center h-max hover:bg-gray-100"> | ||
<div class="bg-yellow-100 flex justify-center items-center rounded-lg col-span-1" style="height: 45px; width: 45px;"> | ||
<i class="fas fa-pencil-alt text-yellow-500"></i> | ||
</div> | ||
<div class="flex flex-col justify-center h-full col-span-5 ml-2"> | ||
<p class="font-semibold">GLBB</p> | ||
<p class="text-sm font-light text-gray-400">27 Oct 2020, Tuesday</p> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |
Oops, something went wrong.