Skip to content

Commit a156388

Browse files
committed
🚧 wip
1 parent 31f5042 commit a156388

File tree

5 files changed

+101
-16
lines changed

5 files changed

+101
-16
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Cpanel;
4+
5+
use App\Http\Controllers\Controller;
6+
use Illuminate\Http\Request;
7+
8+
class DashboardController extends Controller
9+
{
10+
public function home()
11+
{
12+
return view('cpanel.dashboard');
13+
}
14+
}

public/css/app.css

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4138,15 +4138,6 @@ select {
41384138
.left-0 {
41394139
left: 0px;
41404140
}
4141-
.top-5 {
4142-
top: 1.25rem;
4143-
}
4144-
.-right-1 {
4145-
right: -0.25rem;
4146-
}
4147-
.left-1 {
4148-
left: 0.25rem;
4149-
}
41504141
.-top-8 {
41514142
top: -2rem;
41524143
}
@@ -4156,6 +4147,15 @@ select {
41564147
.top-\[-50px\] {
41574148
top: -50px;
41584149
}
4150+
.top-5 {
4151+
top: 1.25rem;
4152+
}
4153+
.-right-1 {
4154+
right: -0.25rem;
4155+
}
4156+
.left-1 {
4157+
left: 0.25rem;
4158+
}
41594159
.-bottom-0\.5 {
41604160
bottom: -0.125rem;
41614161
}
@@ -4504,12 +4504,12 @@ select {
45044504
.h-4 {
45054505
height: 1rem;
45064506
}
4507-
.h-2 {
4508-
height: 0.5rem;
4509-
}
45104507
.h-\[120px\] {
45114508
height: 120px;
45124509
}
4510+
.h-2 {
4511+
height: 0.5rem;
4512+
}
45134513
.h-auto {
45144514
height: auto;
45154515
}
@@ -5058,6 +5058,9 @@ select {
50585058
.overflow-y-scroll {
50595059
overflow-y: scroll;
50605060
}
5061+
.scroll-smooth {
5062+
scroll-behavior: smooth;
5063+
}
50615064
.truncate {
50625065
overflow: hidden;
50635066
text-overflow: ellipsis;
@@ -5273,6 +5276,10 @@ select {
52735276
--tw-bg-opacity: 1;
52745277
background-color: rgb(16 185 129 / var(--tw-bg-opacity));
52755278
}
5279+
.bg-white {
5280+
--tw-bg-opacity: 1;
5281+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
5282+
}
52765283
.bg-skin-footer {
52775284
--tw-bg-opacity: 1;
52785285
background-color: rgba(var(--color-footer-fill), var(--tw-bg-opacity));
@@ -5336,10 +5343,6 @@ select {
53365343
--tw-bg-opacity: 1;
53375344
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
53385345
}
5339-
.bg-white {
5340-
--tw-bg-opacity: 1;
5341-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
5342-
}
53435346
.bg-secondary-50 {
53445347
--tw-bg-opacity: 1;
53455348
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
@@ -6870,6 +6873,11 @@ html {
68706873
border-color: rgb(185 28 28 / var(--tw-border-opacity));
68716874
}
68726875

6876+
.dark .dark\:bg-gray-900 {
6877+
--tw-bg-opacity: 1;
6878+
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
6879+
}
6880+
68736881
.dark .dark\:bg-secondary-800 {
68746882
--tw-bg-opacity: 1;
68756883
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@extends('layouts.cp')
2+
3+
@title('Tableau de bord')
4+
5+
@section('content')
6+
7+
<h1>Tableau de bord</h1>
8+
9+
@stop

resources/views/layouts/cp.blade.php

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<!-- CSRF Token -->
8+
<meta name="csrf-token" content="{{ csrf_token() }}">
9+
10+
<title>
11+
{{ isset($title) ? $title . ' | ' : '' }}
12+
{{ config('app.name') }}
13+
</title>
14+
<link rel="canonical" href="{{ $canonical ?? Request::url() }}" />
15+
16+
@include('layouts._og')
17+
<x-seo::meta />
18+
19+
<!-- Styles -->
20+
<link href="https://fonts.cdnfonts.com/css/operator-mono" rel="stylesheet">
21+
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
22+
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
23+
@livewireStyles
24+
25+
<script>
26+
window.csrfToken = {!! json_encode(['csrfToken' => csrf_token()]) !!};
27+
window.laravel = {
28+
...(window.laravel || {}),
29+
isModerator: {{ auth()->check() && auth()->user()->hasAnyRole('admin', 'moderator') ? 'true' : 'false' }},
30+
user: {{ auth()->check() ? auth()->id() : 'null' }},
31+
currentUser: {!! auth()->check() ? json_encode(auth()->user()->profile()) : 'null' !!}
32+
}
33+
</script>
34+
35+
<!-- Scripts -->
36+
<wireui:scripts />
37+
@livewireScripts
38+
<script src="{{ mix('js/app.js') }}" defer></script>
39+
40+
@include('layouts._favicons')
41+
</head>
42+
<body class="antialiased font-sans bg-white dark:bg-gray-900">
43+
44+
<div class="relative overflow-hidden min-h-full">
45+
@yield('content')
46+
</div>
47+
48+
<x-notifications z-index="z-50" />
49+
50+
@livewire('livewire-ui-modal')
51+
@stack('scripts')
52+
</body>
53+
</html>

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function withOpacity(variableName) {
1111
}
1212

1313
module.exports = {
14+
darkMode: 'class',
1415
presets: [
1516
require('./vendor/wireui/wireui/tailwind.config.js')
1617
],

0 commit comments

Comments
 (0)