Skip to content

Commit

Permalink
Adding some admin boxes to Wave
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed Apr 1, 2021
1 parent 38e3554 commit fa8b5a0
Show file tree
Hide file tree
Showing 13 changed files with 547 additions and 8 deletions.
13 changes: 7 additions & 6 deletions resources/views/themes/tailwind/partials/demo-header.blade.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<div class="relative bottom-0 left-0 z-30 hidden w-full h-16 md:block bg-gradient-to-r from-wave-500 via-wave-600 to-purple-500">
<div class="flex items-center justify-between w-full h-full px-3 mx-auto max-w-7xl">
<div class="relative flex items-center">
<div class="flex items-center text-sm text-blue-200">
<p class="hidden font-medium text-blue-100 xl:block">This is a demo of <a href="https://devdojo.com/wave">Wave.</a></p>
<p class="ml-1 font-normal">You can deploy your own copy by clicking the Deploy to DigitalOcean button</p>
<a href="https://devdojo.com/wave" target="_blank" class="flex items-center text-sm text-blue-200 hover:underline">
<span class="hidden font-medium text-blue-100 xl:block">This is a demo of Wave.</span>
<span class="ml-1 font-normal">The self-hosted Software as a Service Starter Kit</span>
<svg class="w-5 h-5 ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"></path></svg>
</div>
</a>
</div>

<div class="w-auto">
<a href="https://cloud.digitalocean.com/apps/new?repo=https://github.com/thedevdojo/wave/tree/main" target="_blank" class="text-white underline">
<img src="https://www.deploytodo.com/do-btn-white.svg" class="w-auto h-8">
<a href="https://github.com/thedevdojo/wave" target="_blank" class="flex items-center h-8 px-3 text-sm font-medium text-white border border-white rounded-md cursor-pointer">
<svg class="w-7 h-8 h-full pr-1 pr-2.5 border-r text-white" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg>
<span class="py-1.5 pl-2.5">View On Github</span>
</a>
</div>
</div>
Expand Down
482 changes: 482 additions & 0 deletions resources/views/vendor/voyager/index.blade.php

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions resources/views/vendor/voyager/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
@endif
<style>
body {
background-image:url('{{ Voyager::image( Voyager::setting("admin.bg_image"), voyager_asset("images/bg.jpg") ) }}');
background-color: {{ Voyager::setting("admin.bg_color", "#FFFFFF" ) }};
background:#000000;
}
body.login .login-sidebar {
border-top:0px;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified storage/app/public/settings/March2020/u7EDIzZ1aBFm63xgATzW.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions wave/resources/views/admin-boxes.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
@if(setting('digital-ocean.enabled'))

@endif

<div class="clearfix container-fluid row" style="position:relative; top:10px;">
<div class="col-xs-12 col-sm-6 col-md-4">
<div class="bg-green-400 panel widget center bgimage" style="border-radius:6px; position:relative; overflow:hidden; background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);">
<div style="width:100%; height:40px; display:flex; position:relative; z-index:20; justify-content: start; color:#fff;">
<img src="{{ Storage::url('/settings/April2021/deploy-to-do.png') }}" style="width:40px; height:40px;">
<div class="relative" style="margin-left:14px; text-align:left;">
<p style="color:#ffffff; display:block; margin:0px; font-weight:500; font-size:17px; line-height:17px; margin-top:3px; margin-bottom:4px;">Deploy to DO</p>
<p style="display:block; color:#dce9fe; text-align:left; line-height:14px; margin:0px;">Deploy your SAAS to DigitalOcean</p>
</div>
<a href="{{ url('admin/do') }}" style="cursor:pointer; justify-self:end; margin-left:auto; background:#fff; color:#4801FF; font-weight:500; padding:10px 20px; border-radius:4px;">
Deploy Now
</a>
</div>
<img src="{{ Storage::url('/settings/April2021/digital-ocean.png') }}" style="width:130px; z-index:10; height:auto; top:10px; right:140px; opacity:30%; position:absolute;">
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-4">
<div class="bg-green-400 panel widget center bgimage" style="border-radius:6px; position:relative; overflow:hidden; background-image: linear-gradient(to right, #b8cbb8 0%, #b8cbb8 0%, #b465da 0%, #cf6cc9 33%, #ee609c 66%, #ee609c 100%);">
<div style="width:100%; height:40px; display:flex; position:relative; z-index:20; justify-content: start; color:#fff;">
<img src="{{ Storage::url('/settings/April2021/play-icon.png') }}" style="width:40px; height:40px;">
<div class="relative" style="margin-left:14px; text-align:left;">
<p style="color:#ffffff; display:block; margin:0px; font-weight:500; font-size:17px; line-height:17px; margin-top:3px; margin-bottom:4px;">Watch & Learn</p>
<p style="display:block; text-align:left; line-height:14px; margin:0px;">Screencasts to help you learn Wave.</p>
</div>
<a href="https://devdojo.com/course/wave" target="_blank" style="cursor:pointer; justify-self:end; margin-left:auto; background:#fff; color:#ee445d; font-weight:500; padding:10px 20px; border-radius:4px;">
Watch Now
</a>
</div>
<img src="{{ Storage::url('/settings/April2021/popcorn-soda-icon.png') }}" style="width:80px; z-index:10; height:auto; bottom:-30px; right:5px; position:absolute;">
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-4">
<div class="bg-green-400 panel widget center bgimage" style="border-radius:6px; position:relative; overflow:hidden; background-image: url('{{ Storage::url('/settings/April2021/tails-bg.png') }}'); background-size:cover;">
<div style="width:100%; height:40px; display:flex; position:relative; z-index:20; justify-content: start; color:#fff;">
<img src="{{ Storage::url('/settings/April2021/tails-icon.png') }}" style="width:40px; height:40px;">
<div class="relative" style="margin-left:14px; text-align:left;">
<p style="color:#ffffff; display:block; margin:0px; font-weight:500; font-size:17px; line-height:17px; margin-top:3px; margin-bottom:4px;">Create a Landing Page</p>
<p style="display:block; text-align:left; color:#dce9fe; line-height:14px; margin:0px;">Drag'n Drop Tailwind Page Creator</p>
</div>
<a href="https://devdojo.com/tails" target="_blank" style="cursor:pointer; justify-self:end; margin-left:auto; background:#fff; color:#4801FF; font-weight:500; padding:10px 20px; border-radius:4px;">
Create Now
</a>
</div>
</div>
</div>


</div>
1 change: 1 addition & 0 deletions wave/resources/views/do.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rad man
4 changes: 4 additions & 0 deletions wave/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@
Route::view('cancelled', 'theme::cancelled')->name('wave.cancelled');
Route::post('switch-plans', '\Wave\Http\Controllers\SubscriptionController@switchPlans')->name('wave.switch-plans');
});

Route::group(['middleware' => 'admin.user'], function(){
Route::view('admin/do', 'wave::do');
});

0 comments on commit fa8b5a0

Please sign in to comment.