Skip to content

Commit 37c299a

Browse files
committed
feat(web): add npl icon in app, styles, tooltip
1 parent e9a5795 commit 37c299a

File tree

6 files changed

+42
-9
lines changed

6 files changed

+42
-9
lines changed

apps/web/src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { SocketService } from './services/socket.service';
1616
import { DragDropModule } from '@angular/cdk/drag-drop';
1717
import { MatCardModule } from '@angular/material/card';
1818
import { MatIconModule } from '@angular/material/icon';
19+
import { MatTooltipModule } from '@angular/material/tooltip';
1920

2021
@NgModule({
2122
declarations: [
@@ -36,6 +37,7 @@ import { MatIconModule } from '@angular/material/icon';
3637
DragDropModule,
3738
MatCardModule,
3839
MatIconModule,
40+
MatTooltipModule,
3941
],
4042
providers: [PlotsService, SocketService],
4143
bootstrap: [AppComponent],

apps/web/src/app/components/app/app.component.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ mat-toolbar {
3232
width: 24px;
3333
height: 24px;
3434
}
35+
36+
.green {
37+
color: #00ff2a;
38+
}

apps/web/src/app/components/app/app.component.html

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
1-
<mat-toolbar color="primary">
1+
<mat-toolbar color="primary" class="mat-elevation-z4">
22
<span class="brand" routerLink="/">
3-
<button mat-flat-button color="primary">NodePlotLib</button>
3+
<button mat-button>
4+
<img
5+
src="./assets/nodeplotlib_64x64_transparent.png"
6+
alt="NodePlotLib Brand Icon"
7+
height="32px"
8+
width="32px"
9+
/>
10+
<span>
11+
<span class="green">N</span>ode<span class="green">P</span>lot<span
12+
class="green"
13+
>L</span
14+
>ib
15+
</span>
16+
</button>
417
</span>
518
<span class="info-icons">
6-
<button mat-icon-button routerLink="tutorial">
19+
<button mat-icon-button routerLink="tutorial" matTooltip="Tutorial">
720
<mat-icon>tips_and_updates</mat-icon>
821
</button>
9-
<a href="https://plotly.com/javascript/" target="_blank"
10-
><button mat-icon-button>
11-
<img src="/assets/plotly.svg" /></button
22+
<a href="https://plotly.com/javascript/" target="_blank" rel="noreferrer"
23+
><button mat-icon-button matTooltip="Plotly.js Documentation">
24+
<img src="/assets/plotly.svg" alt="Plotly.js Icon" /></button
1225
></a>
13-
<a href="https://github.com/ngfelixl/nodeplotlib" target="_blank"
26+
<a
27+
href="https://github.com/ngfelixl/nodeplotlib"
28+
target="_blank"
29+
rel="noreferrer"
1430
><button mat-icon-button>
15-
<img src="/assets/github-light-32px.png" /></button
31+
<img src="/assets/github-light-32px.png" alt="Github Icon" /></button
1632
></a>
1733
</span>
1834
</mat-toolbar>

apps/web/src/app/components/plots/plots.component.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
display: grid;
33
grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
44
grid-gap: 8px;
5-
margin: 8px;
5+
margin: 12px;
66
grid-template-rows: auto;
77
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:host {
2+
display: block;
3+
margin: 18px;
4+
}

apps/web/src/styles.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ body {
88
margin: 0;
99
font-family: Roboto, 'Helvetica Neue', sans-serif;
1010
}
11+
12+
.brand .mat-button-wrapper {
13+
display: flex;
14+
align-items: center;
15+
gap: 12px;
16+
font-size: 1.2em;
17+
}

0 commit comments

Comments
 (0)