Bläddra i källkod

Style services menu and legend

tags/v0.1.0
Immanuel Onyeka 3 år sedan
förälder
incheckning
bcd5a1d3d8
10 ändrade filer med 132 tillägg och 9 borttagningar
  1. +42
    -0
      app/Console/Commands/ResetTestUsers.php
  2. Binär
      public/images/panel-preview.png
  3. Binär
      resources/images/panel-preview.png
  4. +1
    -0
      resources/js/panel/orders.vue
  5. +3
    -2
      resources/js/panel/panel.vue
  6. +31
    -0
      resources/js/panel/services.vue
  7. +1
    -1
      resources/js/panel/settings.vue
  8. +1
    -1
      resources/js/register-area/register-area.vue
  9. +52
    -4
      resources/scss/main.scss
  10. +1
    -1
      resources/views/home.blade.php

+ 42
- 0
app/Console/Commands/ResetTestUsers.php Visa fil

@@ -0,0 +1,42 @@
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class ResetTestUsers extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'command:name';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';

/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}

/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
return 0;
}
}

Binär
public/images/panel-preview.png Visa fil

Before After
Width: 390  |  Height: 467  |  Size: 81 KiB

Binär
resources/images/panel-preview.png Visa fil

Before After
Width: 390  |  Height: 467  |  Size: 81 KiB

+ 1
- 0
resources/js/panel/orders.vue Visa fil

@@ -1,6 +1,7 @@
<template>
<div>
<section class="pending-pane">
<div class="actions"><a class="new-order" href="#orders/new-order">New</a><a class="new-order" href="#orders/new">Add credits</a></div>
<h4>Pending Orders</h4>
<ul>
<template v-bind:key='order.id' v-for="order in orders">


+ 3
- 2
resources/js/panel/panel.vue Visa fil

@@ -43,15 +43,16 @@
import Sidebar from './sidebar.vue'
import Settings from './settings.vue'
import PastOrders from './orders.vue'
import NewOrder from './services.vue'


export default {
components: {
Sidebar, Settings, PastOrders
Sidebar, Settings, PastOrders, NewOrder
},
data() {
return {active: window.location.hash, user: '',
token: '', orders: ''}
token: '', orders: '',}
},
methods: {},
}


+ 31
- 0
resources/js/panel/services.vue Visa fil

@@ -0,0 +1,31 @@
<template>
<div>
<div class="services-menu">
<button class="selected">Services</button>
<button>Credits</button>
<div class="menu-slider">
<div></div></div>
</div>
<div class="services-legend"><h5>Name</h5>
<h5>Price per 1000</h5><h5>Minimum</h5><h5>Maximum</h5></div>
<section class="services-pane youtube">
<h4>Youtube</h4>
</section>
<section class="services-pane instagram">
<h4>Instagram</h4>
</section>
<section class="services-pane twitter">
<h4>Twitter</h4>
</section>
</div>
</template>

<script>

export default {
data() {
return {}
},
props: ['orders']
}
</script>

+ 1
- 1
resources/js/panel/settings.vue Visa fil

@@ -43,7 +43,7 @@ function changeName() {
}).then(response => {
if (response.ok) {
pane.classList.add('completed')
info.textContent = 'Completed'
info.textContent = 'Verification link sent.'
} else {
pane.classList.add('error')
info.textContent = 'Error: ' + response.status


+ 1
- 1
resources/js/register-area/register-area.vue Visa fil

@@ -119,7 +119,7 @@

module.exports = {
data() {
return {active: 'register', token: ''}
return {active: 'register', token: '', errorMessage: ''}
},
methods: {
register,


+ 52
- 4
resources/scss/main.scss Visa fil

@@ -892,10 +892,17 @@ main.panel {
}

.actions {
// height: 2em;
.new-order {
background-color: vars.getColor('light-blue');
}
margin-bottom: 1em;
}
.actions a {
color: vars.getColor('brand-orange');
margin: 1em;
margin-bottom: 2em;
padding: 3px;
}

.actions a:hover {
color: vars.darkenColor('brand-orange');
}

.logout-pane {
@@ -958,5 +965,46 @@ main.panel {
.error span {
color: vars.getColor('red-alert');
}
}

.services-legend {
display: flex;
margin-top: 20px;
border-top: 1px solid darkgrey;
border-bottom: 1px solid darkgrey;
height: 2em;
background-color: rgb(239, 239, 239);
color: rgb(118, 118, 118);
h5 {
display: inline-block;
margin: auto;
text-align: center;
}
}

.services-menu {
display: flex;
justify-content: center;
flex-basis: 50%;
margin-top: 1em;
flex-flow: wrap;
gap: 10px;
button {
width: 25%;
font-size: 1.1rem;
background: none;
border: none;
color: grey;
}
.selected {
color: black;
}
}
.menu-slider {
width: 55%;
div {
// margin-left: auto;
width: 50%;
border-bottom: 2px solid black;
}
}

+ 1
- 1
resources/views/home.blade.php Visa fil

@@ -107,7 +107,7 @@
</section>
<section class='panel-infos'>
<h2>A User-Friendly Control Panel</h2>
<img class="panel-preview" src="/images/host-panel.webp" alt="panel-preview">
<img class="panel-preview" src="/images/panel-preview.png" alt="panel-preview">
<div class="panel-info">
<img src="./img/tap.svg" alt="">
<h3>Easy to Use</h3>


Laddar…
Avbryt
Spara