Skip to content

Commit 8dabbbe

Browse files
committed
feat: add Control component with styles and integrate into header
1 parent e584fc8 commit 8dabbbe

13 files changed

+33
-19
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.control label {
2+
display: block;
3+
font-size: 0.8rem;
4+
font-weight: bold;
5+
margin-bottom: 0.15rem;
6+
color: #4f4b53;
7+
}
8+
9+
.control input,
10+
.control textarea {
11+
width: 100%;
12+
padding: 0.5rem;
13+
border: 1px solid #ccc;
14+
border-radius: 4px;
15+
font: inherit;
16+
font-size: 0.9rem;
17+
color: #4f4b53;
18+
}
19+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>control works!</p>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-control',
5+
standalone: true,
6+
imports: [],
7+
templateUrl: './control.component.html',
8+
styleUrl: './control.component.css'
9+
})
10+
export class ControlComponent {
11+
12+
}

06-cmp-deep-dive/01-starting-project/src/app/header/header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<a href="/">Management</a>
1313
</li>
1414
<li>
15-
<app-button buttonTitle="Logout"></app-button>
15+
<app-button buttonTitle="Logout"/>
1616
</li>
1717
</ul>
1818
</nav>

06-cmp-deep-dive/cmp-style-files/button.component.css

Whitespace-only changes.

06-cmp-deep-dive/cmp-style-files/control.component.css

Lines changed: 0 additions & 18 deletions
This file was deleted.

06-cmp-deep-dive/cmp-style-files/dashboard-item.component.css

Whitespace-only changes.

06-cmp-deep-dive/cmp-style-files/header.component.css

Whitespace-only changes.

06-cmp-deep-dive/cmp-style-files/new-ticket.component.css

Whitespace-only changes.

06-cmp-deep-dive/cmp-style-files/server-status.component.css

Whitespace-only changes.

0 commit comments

Comments
 (0)