Skip to content

Commit 4ec762b

Browse files
committed
remove sub-foders
1 parent 1d8b56b commit 4ec762b

File tree

3 files changed

+57
-14
lines changed

3 files changed

+57
-14
lines changed

time-tracker/src/app/app.module.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,17 @@ import { NgModule } from '@angular/core';
44
import { AppRoutingModule } from './app-routing.module';
55
import { AppComponent } from './app.component';
66
import { NavbarComponent } from './components/shared/navbar/navbar.component';
7-
import { TimeclockComponent } from './components/shared/clock/timeclock/timeclock.component';
8-
import { UserOptionsComponent } from './components/shared/user/user-options/user-options.component';
9-
import { SidebarOptionsComponent } from './components/shared/sidebar/sidebar-options/sidebar-options.component';
10-
import { ClockComponent } from './components/shared/clock/clock.component';
11-
import { SidebarComponent } from './components/shared/sidebar/sidebar.component';
127
import { UserComponent } from './components/shared/user/user.component';
8+
import { SidebarComponent } from './components/shared/sidebar/sidebar.component';
9+
import { ClockComponent } from './components/shared/clock/clock.component';
1310

1411
@NgModule({
1512
declarations: [
1613
AppComponent,
1714
NavbarComponent,
18-
TimeclockComponent,
19-
UserOptionsComponent,
20-
SidebarOptionsComponent,
21-
ClockComponent,
22-
SidebarComponent,
2315
UserComponent,
16+
SidebarComponent,
17+
ClockComponent,
2418
],
2519
imports: [
2620
BrowserModule,
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
body {
2+
overflow-x: hidden;
3+
}
4+
5+
#sidebar-wrapper {
6+
min-height: 100vh;
7+
margin-left: -15rem;
8+
-webkit-transition: margin .25s ease-out;
9+
-moz-transition: margin .25s ease-out;
10+
-o-transition: margin .25s ease-out;
11+
transition: margin .25s ease-out;
12+
}
13+
14+
#sidebar-wrapper .sidebar-heading {
15+
padding: 0.875rem 1.25rem;
16+
font-size: 1.2rem;
17+
}
18+
19+
#sidebar-wrapper .list-group {
20+
width: 15rem;
21+
}
22+
23+
#page-content-wrapper {
24+
min-width: 100vw;
25+
}
26+
27+
#wrapper.toggled #sidebar-wrapper {
28+
margin-left: 0;
29+
}
30+
31+
@media (min-width: 768px) {
32+
#sidebar-wrapper {
33+
margin-left: 0;
34+
}
35+
#page-content-wrapper {
36+
min-width: 0;
37+
width: 100%;
38+
}
39+
#wrapper.toggled #sidebar-wrapper {
40+
margin-left: -15rem;
41+
}
42+
}
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
<div class="d-flex" id="wrapper">
22

3+
<!-- Sidebar -->
34
<div class="bg-light border-right" id="sidebar-wrapper">
45
<div class="list-group list-group-flush">
56
<a href="#" class="list-group-item list-group-item-action bg-light"><i class="fas fa-flag"></i> Getting Started</a>
67
<a href="#" class="list-group-item list-group-item-action bg-light"><i class="far fa-clock"></i> Time Clock</a>
78
<a href="#" class="list-group-item list-group-item-action bg-light"><i class="far fa-list-alt"></i> Time Entries</a>
89
<a href="#" class="list-group-item list-group-item-action bg-light"><i class="far fa-paper-plane"></i> Time Off</a>
910
<a href="#" class="list-group-item list-group-item-action bg-light"><i class="fas fa-chart-pie"></i> Reports</a>
11+
1012
</div>
1113
</div>
14+
<!-- /#sidebar-wrapper -->
1215

16+
<!-- Page Content -->
1317
<div id="page-content-wrapper">
14-
1518
<div class="container-fluid">
16-
<h1 class="mt-4">Content</h1>
17-
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Voluptatibus sequi voluptates quasi laudantium vel hic quam rem consectetur cupiditate officia delectus totam sapiente, excepturi error? Eos, laudantium voluptatem. Amet, eum?.</p>
19+
<h1 class="mt-4">Simple Sidebar</h1>
20+
<p>The starting state of the menu will appear collapsed on smaller screens, and will appear non-collapsed on larger screens. When toggled using the button below, the menu will change.</p>
21+
<p>Make sure to keep all page content within the <code>#page-content-wrapper</code>. The top navbar is optional, and just for demonstration. Just create an element with the <code>#menu-toggle</code> ID which will toggle the menu when clicked.</p>
1822
</div>
23+
</div>
24+
<!-- /#page-content-wrapper -->
1925

20-
</div>
26+
</div>
27+
<!-- /#wrapper -->

0 commit comments

Comments
 (0)