added sidebar mobile
This commit is contained in:
parent
84d148379d
commit
69368a1fee
8 changed files with 59 additions and 4 deletions
|
|
@ -7,3 +7,4 @@
|
|||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<app-sidebar-mobile></app-sidebar-mobile>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,15 @@ app-sidebar {
|
|||
width: 232px;
|
||||
height: 100%;
|
||||
background-color: var(--bgSidebar);
|
||||
overflow-y: none;
|
||||
}
|
||||
|
||||
app-sidebar-mobile {
|
||||
display: none;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
background-color: var(--bgSidebar);
|
||||
}
|
||||
|
||||
main {
|
||||
|
|
@ -35,10 +43,14 @@ app-header {
|
|||
.content {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
min-width: calc(100vw);
|
||||
width: 100vw;
|
||||
height: calc(100vh - 210px);
|
||||
padding: 32px 0 0 0;
|
||||
}
|
||||
app-sidebar {
|
||||
display: none;
|
||||
}
|
||||
app-sidebar-mobile {
|
||||
display: unset;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,11 +3,17 @@ import { Router, RouterOutlet } from '@angular/router';
|
|||
import { HeaderComponent } from './shared/components/header/header.component';
|
||||
import { SidebarComponent } from './shared/components/sidebar/sidebar.component';
|
||||
import { LanguageService } from './services/language.service';
|
||||
import { SidebarMobileComponent } from './shared/components/sidebar/sidebar-mobile/sidebar-mobile.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
standalone: true,
|
||||
imports: [RouterOutlet, HeaderComponent, SidebarComponent],
|
||||
imports: [
|
||||
RouterOutlet,
|
||||
HeaderComponent,
|
||||
SidebarComponent,
|
||||
SidebarMobileComponent,
|
||||
],
|
||||
templateUrl: './app.component.html',
|
||||
styleUrl: './app.component.scss',
|
||||
})
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
background-color: var(--white);
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
transform: scale(1.05);
|
||||
transform: scale(1.02);
|
||||
transition: 500ms ease-out;
|
||||
background-color: var(--dark-blue);
|
||||
.circle {
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
<p>sidebar-mobile works!</p>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { SidebarMobileComponent } from './sidebar-mobile.component';
|
||||
|
||||
describe('SidebarMobileComponent', () => {
|
||||
let component: SidebarMobileComponent;
|
||||
let fixture: ComponentFixture<SidebarMobileComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [SidebarMobileComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(SidebarMobileComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-sidebar-mobile',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
templateUrl: './sidebar-mobile.component.html',
|
||||
styleUrl: './sidebar-mobile.component.scss'
|
||||
})
|
||||
export class SidebarMobileComponent {
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue