Skip to content

Commit 9eaca59

Browse files
committed
feat: add section bar
1 parent eee7df4 commit 9eaca59

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

src/CoinyProject.Client/src/app/section-bar/section-bar.component.css

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div class="container mx-auto px-4 py-6">
2+
<!-- Main Content Wrapper -->
3+
4+
<div class="bg-pastel-red-light shadow-md rounded-lg p-4">
5+
<h3 class="text-lg font-bold mb-4">Колекціонування</h3>
6+
<h4 class="text-md font-bold mb-2">Нумізматика</h4>
7+
<ul class="space-y-2">
8+
<li><a href="#" class="text-blue-500 hover:underline">Золоті, платинові і паладієві монети</a></li>
9+
<li><a href="#" class="text-blue-500 hover:underline">Монети Київської Русі</a></li>
10+
<li><a href="#" class="text-blue-500 hover:underline">Монети Російської Імперії</a></li>
11+
<li><a href="#" class="text-blue-500 hover:underline">Монети Польщі</a></li>
12+
<li><a href="#" class="text-blue-500 hover:underline">Монети України</a></li>
13+
<li><a href="#" class="text-blue-500 hover:underline">Монети незалежних Держав Азії</a></li>
14+
<li><a href="#" class="text-blue-500 hover:underline">Монети античних держав</a></li>
15+
</ul>
16+
</div>
17+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import { Component } from '@angular/core';
2+
import {NgForOf} from "@angular/common";
3+
4+
@Component({
5+
selector: 'app-section-bar',
6+
standalone: true,
7+
imports: [
8+
NgForOf
9+
],
10+
templateUrl: './section-bar.component.html',
11+
styleUrl: './section-bar.component.css'
12+
})
13+
export class SectionBarComponent {
14+
sections = [
15+
{
16+
id: 1,
17+
name: 'Dashboard',
18+
description: 'Overview of system metrics and status.',
19+
},
20+
{
21+
id: 2,
22+
name: 'User Management',
23+
description: 'Manage users, roles, and permissions.',
24+
},
25+
{
26+
id: 3,
27+
name: 'Settings',
28+
description: 'Configure system settings and preferences.',
29+
},
30+
{
31+
id: 4,
32+
name: 'Reports',
33+
description: 'View and generate system reports.',
34+
},
35+
{
36+
id: 5,
37+
name: 'Notifications',
38+
description: 'Manage alerts and notification settings.',
39+
},
40+
// Додайте інші розділи
41+
];
42+
43+
navigateToSection(section: any) {
44+
// Логіка для навігації до відповідного розділу
45+
console.log('Navigating to section:', section.name);
46+
// Наприклад, можна реалізувати навігацію за допомогою Angular Router:
47+
// this.router.navigate([`/section/${section.id}`]);
48+
}
49+
}

0 commit comments

Comments
 (0)