Skip to content

Commit 782d401

Browse files
committed
Improve UI and fix build/lint issues
1 parent 03db749 commit 782d401

File tree

6 files changed

+894
-404
lines changed

6 files changed

+894
-404
lines changed

src/app/app.component.css

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
:host {
2+
display: flex;
3+
flex-direction: column;
4+
height: 100vh;
5+
overflow: hidden;
6+
}
7+
18
.navbar {
29
position: sticky;
310
top: 0;
@@ -7,7 +14,14 @@
714
align-items: center;
815
height: 64px;
916
transition: all 0.25s ease;
17+
flex-shrink: 0;
1018
}
19+
20+
.sidenav-container {
21+
flex: 1;
22+
overflow: hidden;
23+
}
24+
1125
.logo {
1226
display: flex;
1327
align-items: center;
@@ -16,6 +30,7 @@
1630
margin-left: -4px;
1731
height: 100%;
1832
}
33+
1934
.logo-icon {
2035
transform: scale(0.95);
2136
transform-origin: left center;
@@ -35,35 +50,37 @@
3550
margin-top: 4px;
3651
gap: 3px;
3752
}
53+
3854
.tag-title {
3955
font-size: 0.85em;
4056
font-weight: 500;
4157
line-height: 1;
4258
letter-spacing: 0.04em;
4359
}
60+
4461
.tag-subtitle {
4562
font-size: 0.65em;
4663
margin-top: 0;
4764
letter-spacing: 0.08em;
4865
opacity: 0.6;
4966
}
50-
.github-fork-ribbon::before {
51-
background-color: #333;
52-
}
67+
5368
.menu-btn {
5469
margin-right: 4px;
5570
transition: all 0.2s ease;
5671
}
72+
5773
.menu-btn:hover {
5874
background: rgba(0,0,0,0.04);
5975
transform: scale(1.05);
6076
}
61-
.spacer {
62-
flex: 1 1 auto;
63-
}
77+
6478
.content {
6579
padding: 24px;
6680
animation: fadeSlide 1s ease;
81+
height: 100%;
82+
box-sizing: border-box;
83+
overflow-y: auto;
6784
}
6885
@keyframes fadeSlide {
6986
from {
@@ -85,9 +102,6 @@
85102
.tag-subtitle {
86103
font-size: 11px;
87104
}
88-
.github-fork-ribbon {
89-
display: none;
90-
}
91105
.logo,
92106
.logo-icon {
93107
opacity: 0;

src/app/app.component.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@
1616
</div>
1717
<div class="dummy"></div>
1818
</div>
19-
<span class="spacer"></span>
20-
<a
21-
target="_blank"
22-
class="github-fork-ribbon"
23-
href="https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel"
24-
data-ribbon="Fork me on GitHub"
25-
title="Fork me on GitHub">
26-
Fork me on GitHub
27-
</a>
2819
</mat-toolbar>
2920
<mat-sidenav-container class="sidenav-container">
3021
<mat-sidenav mode="side" opened class="sidenav" [style.width]="sidenavWidth">

src/app/app.component.spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,4 @@ describe('AppComponent', () => {
5252
it('should create the app', () => {
5353
expect(app).toBeTruthy();
5454
});
55-
56-
it('check for fork me on github ribbon generation', () => {
57-
const compiled = fixture.nativeElement as HTMLElement;
58-
const githubLink = compiled.querySelector('.github-fork-ribbon');
59-
expect(githubLink).not.toBeNull();
60-
expect(githubLink?.textContent?.trim()).toBe('Fork me on GitHub');
61-
});
6255
});

0 commit comments

Comments
 (0)