Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
recycledbeans committed May 15, 2020
0 parents commit b93ea5e
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/.idea
/vendor
/node_modules
package-lock.json
composer.phar
composer.lock
phpunit.xml
.phpunit.result.cache
.DS_Store
Thumbs.db
29 changes: 29 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "devpartners/vip",
"description": "A Laravel Nova theme.",
"keywords": [
"laravel",
"nova"
],
"license": "MIT",
"require": {
"php": ">=7.1.0"
},
"autoload": {
"psr-4": {
"Devpartners\\Vip\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Devpartners\\Vip\\ThemeServiceProvider"
]
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
48 changes: 48 additions & 0 deletions resources/css/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
:root {
--primary: #3182ce;
--primary-dark: #3182ce;
--primary-70: #2C75B9;
--primary-50: #1D4E7C;
--primary-30: #163B5D;
--primary-10: #0F273E;
--logo: #0F273E;
--sidebar-icon: #fff;
--red: #F56565;
}

#nova {
background-image: url('/img/hero.jpg');
background-repeat: no-repeat;
background-size: cover;
}

.content {
background-color: rgba(238, 238, 238, 0.95)
}

.btn-default,
.form-input,
.card {
border-radius: 0.15rem;
}

.bg-grad-sidebar {
background-image: -webkit-gradient(
linear,
left bottom,
left top,
from(rgba(56, 161, 105, 0.9)),
to(rgba(49, 130, 206, 0.9))
);

background-image: linear-gradient(0deg, rgba(56, 161, 105, 0.9) 0%, rgba(49, 151, 149, 0.9) 50%, rgba(49, 130, 206, 0.9) 100%);
}

.table td {
height: 2.8rem;
}

table.w-full td img {
border-radius: 0 !important;
width: auto !important;
}
32 changes: 32 additions & 0 deletions src/ThemeServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

namespace Devpartners\Vip;

use Laravel\Nova\Nova;
use Laravel\Nova\Events\ServingNova;
use Illuminate\Support\ServiceProvider;

class ThemeServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Nova::serving(function (ServingNova $event) {
Nova::style('vip', __DIR__.'/../resources/css/theme.css');
});
}

/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}

0 comments on commit b93ea5e

Please sign in to comment.