Skip to content

Commit fad9e2d

Browse files
committed
Teams Page UI Update
1 parent 527d1fa commit fad9e2d

5 files changed

Lines changed: 84 additions & 17 deletions

File tree

src/app/app-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const routes: Routes = [
1414
{ path: 'task-description', component: TaskDescriptionComponent },
1515
{ path: 'mapping', component: MappingComponent },
1616
{ path: 'usage', component: UsageComponent },
17-
{ path: 'about', component: AboutUsComponent },
1817
{ path: 'teams', component: Teams },
18+
{ path: 'about', component: AboutUsComponent },
1919
];
2020

2121
@NgModule({
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
h2 {
2+
color: #000000;
3+
text-align: center;
4+
font-weight: 800;
5+
font-size: 2em;
6+
margin: 1em 1em;
7+
}
8+
h3 {
9+
color: #000000;
10+
text-align: center;
11+
font-weight: 500;
12+
font-size: 1.2em;
13+
font-style: italic;
14+
margin: 1em 1em;
15+
}
16+
.team-list {
17+
width: 70%;
18+
overflow-x: auto;
19+
white-space: nowrap;
20+
padding: 20px;
21+
margin: 0 auto;
22+
}
23+
24+
.team-list ul {
25+
list-style-type: none;
26+
padding: 0;
27+
margin: 0;
28+
display: flex; /* Use flex layout */
29+
}
30+
31+
.team-list ul li {
32+
flex: 0 0 150px; /* Set a fixed width */
33+
height: 100px;
34+
background-color: #66bb6a;
35+
border-radius: 10px;
36+
margin-right: 20px;
37+
display: flex; /* Use flex layout */
38+
justify-content: center; /* Center horizontally */
39+
align-items: center; /* Center vertically */
40+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
41+
font-size: 16px;
42+
font-weight: bold;
43+
}
Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,45 @@
11
<div id="team-section">
2-
<div id="individual-teams">
3-
<h2>Teams</h2>
2+
<h2>Team List</h2>
3+
<div class="team-list">
44
<ul>
5-
<li>A</li>
6-
<li>B</li>
7-
<li>C</li>
5+
<li *ngFor="let team of teamList">{{ team }}</li>
86
</ul>
97
</div>
10-
<div id="groups-teams">
11-
<h2>Team Groups</h2>
12-
<h4>AB</h4>
8+
<h2>Team Group</h2>
9+
<h3>Group 123</h3>
10+
<div class="team-list">
1311
<ul>
14-
<li>A</li>
15-
<li>B</li>
12+
<li>Team 1</li>
13+
<li>Team 2</li>
14+
<li>Team 3</li>
1615
</ul>
17-
<h4>BC</h4>
16+
</div>
17+
<h3>Group 123</h3>
18+
<div class="team-list">
19+
<ul>
20+
<li>Team 1</li>
21+
<li>Team 2</li>
22+
<li>Team 3</li>
23+
<li>Team 1</li>
24+
<li>Team 2</li>
25+
<li>Team 3</li>
26+
<li>Team 1</li>
27+
<li>Team 2</li>
28+
<li>Team 3</li>
29+
<li>Team 1</li>
30+
<li>Team 2</li>
31+
<li>Team 3</li>
32+
<li>Team 1</li>
33+
<li>Team 2</li>
34+
<li>Team 3</li>
35+
</ul>
36+
</div>
37+
<h3>Group 123</h3>
38+
<div class="team-list">
1839
<ul>
19-
<li>B</li>
20-
<li>C</li>
40+
<li>Team 1</li>
41+
<li>Team 2</li>
42+
<li>Team 3</li>
2143
</ul>
2244
</div>
2345
</div>

src/app/component/teams/teams.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import * as yaml from 'js-yaml';
44

55
@Component({
66
selector: 'app-teams',
7-
templateUrl: './Teams.component.html',
8-
styleUrls: ['./Teams.component.css'],
7+
templateUrl: './teams.component.html',
8+
styleUrls: ['./teams.component.css'],
99
})
1010
export class Teams implements OnInit {
1111
YamlObject: any;
12-
teamList: string[] = [];
12+
teamList: any;
1313
teamGroups: any;
1414

1515
constructor(private yaml: ymlService) {}

src/app/material/material.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ import { MatExpansionModule } from '@angular/material/expansion';
1212
import { MatCardModule } from '@angular/material/card';
1313
import { MatCheckboxModule } from '@angular/material/checkbox';
1414
import { MatButtonToggleModule } from '@angular/material/button-toggle';
15+
import { CommonModule } from '@angular/common';
1516

1617
const MaterialComponents = [
18+
CommonModule,
1719
MatSidenavModule,
1820
MatButtonModule,
1921
MatIconModule,

0 commit comments

Comments
 (0)