浏览代码

Style services menu and legend

tags/v0.1.0
父节点
当前提交
bcd5a1d3d8
共有 10 个文件被更改,包括 132 次插入9 次删除
  1. +42
    -0
      app/Console/Commands/ResetTestUsers.php
  2. 二进制
      public/images/panel-preview.png
  3. 二进制
      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 查看文件

@@ -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;
}
}

二进制
public/images/panel-preview.png 查看文件

之前 之后
宽度: 390  |  高度: 467  |  大小: 81 KiB

二进制
resources/images/panel-preview.png 查看文件

之前 之后
宽度: 390  |  高度: 467  |  大小: 81 KiB

+ 1
- 0
resources/js/panel/orders.vue 查看文件

@@ -1,6 +1,7 @@
<template> <template>
<div> <div>
<section class="pending-pane"> <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> <h4>Pending Orders</h4>
<ul> <ul>
<template v-bind:key='order.id' v-for="order in orders"> <template v-bind:key='order.id' v-for="order in orders">


+ 3
- 2
resources/js/panel/panel.vue 查看文件

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




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


+ 31
- 0
resources/js/panel/services.vue 查看文件

@@ -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 查看文件

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


+ 1
- 1
resources/js/register-area/register-area.vue 查看文件

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


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


+ 52
- 4
resources/scss/main.scss 查看文件

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


.actions { .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 { .logout-pane {
@@ -958,5 +965,46 @@ main.panel {
.error span { .error span {
color: vars.getColor('red-alert'); 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 查看文件

@@ -107,7 +107,7 @@
</section> </section>
<section class='panel-infos'> <section class='panel-infos'>
<h2>A User-Friendly Control Panel</h2> <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"> <div class="panel-info">
<img src="./img/tap.svg" alt=""> <img src="./img/tap.svg" alt="">
<h3>Easy to Use</h3> <h3>Easy to Use</h3>


正在加载...
取消
保存