Skip to content

Commit 349d509

Browse files
committed
style(lesy-pilot-ui): redesign pilot dashboard
1 parent 780b03b commit 349d509

23 files changed

+225
-106
lines changed

packages/misc/pilot-ui/src/app/components/command/command.template.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<div class=" bg-white rounded-xl border border-gray-400 overflow-hidden">
1+
<div class="bg-white overflow-hidden">
22
<div class="flex p-6 items-center">
3-
<i class="ri-fire-fill text-4xl mr-4 text-vio-100"></i>
3+
<i class="ri-terminal-box-fill text-4xl mr-4 text-violet"></i>
44
<div class="flex-grow leading-tight">
55
<h1
6-
class="text-capitalize font-bold text-vio-700 text-3xl flex items-center font-display"
6+
class="text-capitalize font-bold text-violet text-3xl flex items-center font-display"
77
>
88
{{ command.name }}
99
<ng-container *ngIf="command.main">
@@ -21,7 +21,7 @@
2121
</div>
2222
<div class="flex">
2323
<i
24-
class="ri-terminal-window-fill text-2xl mr-3 text-gray-700 cursor-pointer hover:text-violet"
24+
class="ri-terminal-window-fill text-2xl mr-3 text-gray-700 cursor-pointer hover:text-violet"
2525
(click)="toggleConsole()"
2626
[tooltip]="'Toggle console panel'"
2727
></i>

packages/misc/pilot-ui/src/app/components/console/console.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class="w-full shadow-2xl subpixel-antialiased rounded h-full border-black mx-auto"
44
>
55
<div
6-
class="flex items-center h-6 rounded-t bg-gray-100 border-b border-gray-500 text-center text-black fixed w-full"
6+
class="flex items-center h-6 bg-gray-100 border-b border-gray-500 text-center text-black fixed w-full"
77
id="headerTerminal"
88
>
99
<div

packages/misc/pilot-ui/src/app/components/footer/footer.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export class FooterComponent {
2727

2828
@Select((state) => {
2929
const position = state.common.consolePosition;
30-
if (position === "vertical") return "ri-layout-bottom-line";
31-
else return "ri-layout-right-line";
30+
if (position === "vertical") return "ri-layout-right-line";
31+
else return "ri-layout-bottom-line";
3232
})
3333
consolePositionClassName$: Observable<any>;
3434

packages/misc/pilot-ui/src/app/components/header/header.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class HeaderComponent implements OnInit {
1414
ngOnInit() {
1515
this.menuItems = [
1616
{ name: "Home", path: "/", icon: "ri-home-4-line" },
17-
{ name: "Projects", path: "/projects", icon: "ri-folder-line" },
17+
{ name: "Workspace", path: "/projects", icon: "ri-folder-line" },
1818
{ name: "Run", path: "/run", icon: "ri-terminal-line" },
1919
{ name: "Config", path: "/config", icon: "ri-settings-5-line" },
2020
{ name: "Help", path: "/help", icon: "ri-questionnaire-line" },

packages/misc/pilot-ui/src/app/components/header/header.template.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<nav
2-
class="bg-white flex border-bottom-2 border-b border-gray-300 mb-5"
2+
class="bg-white flex border-bottom-2 border-b border-gray-300"
33
*ngIf="webConfig$ | async as config"
44
>
55
<div class="container mx-auto" *ngIf="config.pilot">
6-
<div class="flex flex-wrap items-center">
6+
<div class="flex flex-wrap items-center px-6 py-4">
77
<div class="w-full sm:w-1/3 flex items-center p-5 sm:p-0 justify-start">
88
<i class="ri-dashboard-line mr-3 text-xl text-violet"></i>
99
<a class="font-semibold text-gray-700" href="#"
@@ -22,14 +22,14 @@
2222
*ngFor="let menuItem of menuItems"
2323
routerLinkActive="active"
2424
[routerLinkActiveOptions]="{ exact: true }"
25-
class="px-3 border-r border-gray-300 w-full sm:w-20 flex justify-center"
25+
class="px-4"
2626
>
2727
<a
28-
class="group block py-2 hover:no-underline hover:text-violet items-center text-xs text-gray-500 uppercase w-full sm:w-auto text-center"
28+
class="group flex justify-center py-2 hover:no-underline hover:text-violet items-center text-gray-600 w-full sm:w-auto text-center"
2929
[routerLink]="menuItem.path"
3030
>
3131
<i
32-
class="{{menuItem.icon+' mr-1 text-xl text-gray-900 group-hover:text-vio-500 block text-center'}}"
32+
class="{{menuItem.icon+' leading-4 mr-1 text-lg text-gray-500 group-hover:text-vio-500 text-center'}}"
3333
></i>
3434
{{menuItem.name}}</a
3535
>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Component, Input, OnInit } from "@angular/core";
2+
3+
@Component({
4+
selector: "pilot-heading",
5+
templateUrl: "./heading.template.html",
6+
})
7+
export class HeadingComponent {
8+
@Input() h1: string;
9+
@Input() p: string;
10+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="my-10 text-center">
2+
<h1 class="font-display text-violet text-3xl">{{h1}}</h1>
3+
<p class="text-base text-gray-600">{{p}}</p>
4+
</div>

packages/misc/pilot-ui/src/app/components/sidemenu/sidemenu.template.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="mb-4 mx-10" *ngFor="let group of commandGroups">
1+
<div class="my-4 mx-2" *ngFor="let group of commandGroups">
22
<h6 class="uppercase text-gray-500 font-semibold mb-3 text-sm ml-10">
33
{{ group[0] }}
44
</h6>
@@ -15,9 +15,9 @@ <h6 class="uppercase text-gray-500 font-semibold mb-3 text-sm ml-10">
1515

1616
<ng-template #nodeTemplateRef let-command>
1717
<div
18-
class="group flex items-center px-3 py-3 border-b border-gray-300 cursor-pointer hover:bg-gray-300 rounded-lg outline-none"
18+
class="group flex items-center px-3 py-3 cursor-pointer hover:bg-gray-300 rounded-lg outline-none"
1919
routerLink="/commands/{{ createPath(command) }}"
20-
routerLinkActive="highlight bg-violet shadow-lg highlight-hover:bg-violet"
20+
routerLinkActive="highlight bg-violet highlight-hover:bg-violet"
2121
>
2222
<i
2323
class="ri-play-fill mr-3 group-hover:text-gray-700 highlight:text-yellow-400 highlight-hover:text-yellow-400 text-gray-500"

packages/misc/pilot-ui/src/app/modules/query/components/form/form.template.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
class="d-flex flex-column"
55
id="pilotForm"
66
>
7-
<div
8-
class="bg-white rounded-xl border border-gray-400 mt-5 p-6 highlight:border-transparent highlight:mt-0"
9-
*ngIf="questions.length > 0"
10-
>
7+
<div class="bg-white mt-5 p-6 highlight:mt-0" *ngIf="questions.length > 0">
118
<h5 class="mb-6 text-lg text-gray-800 font-medium highlight:hidden">
129
Arguments
1310
</h5>
@@ -25,7 +22,7 @@ <h5 class="mb-6 text-lg text-gray-800 font-medium highlight:hidden">
2522

2623
<button
2724
type="submit"
28-
class="flex mx-auto bg-green-500 py-4 px-6 mt-6 rounded text-white font-semibold shadow-lg focus:shadow-none disabled:opacity-50 focus:outline-none highlight:mt-0"
25+
class="flex mx-auto bg-green-500 py-3 px-6 mt-6 rounded-lg text-white font-semibold shadow-lg focus:shadow-none disabled:opacity-50 focus:outline-none highlight:mt-0"
2926
[disabled]="!form.valid"
3027
>
3128
<i class="ri-send-plane-2-line mr-2"></i> Run command

packages/misc/pilot-ui/src/app/modules/query/components/input/input.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
>
1010
<div [ngSwitch]="question.controlType">
1111
<div
12-
class="flex flex-wrap items-stretch w-full mb-4 relative focus-within:border-vio-500 border border-gray-500 bg-gray-100 rounded-md"
12+
class="flex flex-wrap items-stretch w-full mb-4 relative focus-within:border-gray-600 border border-gray-400 bg-gray-100 rounded-md"
1313
*ngSwitchCase="'textbox'"
1414
>
1515
<div class="flex">

0 commit comments

Comments
 (0)