-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f53221c
commit c021058
Showing
14 changed files
with
185 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 23 additions & 50 deletions
73
src/app/components/events/events-list/events-list-cards/events-list-cards.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/app/components/events/view-selection/view-selection.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<div class="view-selection"> | ||
<div class="style-button" (click)="selectView('cards')" placement="bottom-right" ngbTooltip="Vista grafica"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> | ||
<rect x="13" y="3" width="8" height="8" rx="1" fill="#3CBFA4"/> | ||
<rect x="2" y="3" width="8" height="8" rx="1" fill="#3CBFA4"/> | ||
<rect x="2" y="13" width="8" height="8" rx="1" fill="#3CBFA4"/> | ||
<rect x="13" y="13" width="8" height="8" rx="1" fill="#3CBFA4"/> | ||
</svg> | ||
</div> | ||
<div class="style-button" (click)="selectView('list')" placement="bottom-right" ngbTooltip="Vista tabellara"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> | ||
<path d="M8 6H21" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | ||
<path d="M8 12H21" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
<path d="M8 18H21" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
<path d="M3 6H3.01" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
<path d="M3 12H3.01" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
<path d="M3 18H3.01" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
<path d="M8 6H21" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | ||
<path d="M8 12H21" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
<path d="M8 18H21" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
<path d="M3 6H3.01" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
<path d="M3 12H3.01" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
<path d="M3 18H3.01" stroke="#1C2B33" stroke-width="2" stroke-linecap="round" | ||
stroke-linejoin="round"/> | ||
</svg> | ||
</div> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
src/app/components/events/view-selection/view-selection.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@import 'node_modules/bootstrap/scss/functions'; | ||
@import 'node_modules/bootstrap/scss/variables'; | ||
@import 'node_modules/bootstrap/scss/mixins'; | ||
|
||
.view-selection { | ||
display: flex; | ||
margin-left: 1rem; | ||
|
||
.style-button { | ||
margin-right: 0.5rem; | ||
cursor: pointer; | ||
} | ||
|
||
@include media-breakpoint-up(md) { | ||
margin-left: 0; | ||
margin-right: 2rem; | ||
|
||
> * { | ||
margin-right: 0; | ||
margin-left: 0.5rem; | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/app/components/events/view-selection/view-selection.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ViewSelectionComponent } from './view-selection.component'; | ||
|
||
describe('ViewSelectionComponent', () => { | ||
let component: ViewSelectionComponent; | ||
let fixture: ComponentFixture<ViewSelectionComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ViewSelectionComponent] | ||
}); | ||
fixture = TestBed.createComponent(ViewSelectionComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
17 changes: 17 additions & 0 deletions
17
src/app/components/events/view-selection/view-selection.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component } from '@angular/core'; | ||
import { EventsFilterService } from '../../../services/events-filter.service'; | ||
|
||
@Component({ | ||
selector: 'app-view-selection', | ||
templateUrl: './view-selection.component.html', | ||
styleUrls: ['./view-selection.component.scss'] | ||
}) | ||
export class ViewSelectionComponent { | ||
|
||
constructor(public eventsFilterService: EventsFilterService) { | ||
} | ||
|
||
selectView(view: 'cards' | 'list') { | ||
this.eventsFilterService.selectedView = view; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
} | ||
|
||
@include media-breakpoint-up(md) { | ||
height: 124px; | ||
height: 85px; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.