Add quick selections in home page
This commit is contained in:
parent
53eda3a026
commit
dec5268b83
|
@ -8,13 +8,18 @@
|
|||
<div class="image-front-topbar mainPageSearchForm">
|
||||
<div class="uk-section">
|
||||
<div class="uk-container uk-container-large uk-flex uk-flex-center">
|
||||
<div class="uk-width-xlarge@l uk-width-large uk-child-width-1-1">
|
||||
<advanced-search-input [class.uk-hidden]="entities.disableSelect" (searchEmitter)="goTo(true)">
|
||||
<div [class.uk-invisible]="disableSelect" class="uk-width-xlarge@l uk-width-large uk-child-width-1-1">
|
||||
<advanced-search-input (searchEmitter)="goTo(true)">
|
||||
<entities-selection #entities [simpleView]="true" currentEntity="all" [selectedEntity]="selectedEntity"
|
||||
(selectionChange)="entityChanged($event)"
|
||||
(selectionChange)="entityChanged($event)" (disableSelectEmitter)="disableSelect = $event"
|
||||
[onChangeNavigate]="false"></entities-selection>
|
||||
<div input placeholder="Scholary works" [hint]="'Search in OpenAIRE'" [(value)]="keyword"></div>
|
||||
</advanced-search-input>
|
||||
<div *ngIf="selectedEntity === 'result' && !entities.input.focused" class="uk-dropdown uk-display-block uk-margin-top uk-width-auto">
|
||||
<div class="uk-padding-small">
|
||||
<quick-selections [resultTypes]="resultTypes" [quickFilter]="resultsQuickFilter"></quick-selections>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-margin-medium">
|
||||
|
|
|
@ -165,6 +165,7 @@ export class HomeComponent {
|
|||
"lcsh:Technology"*/
|
||||
];
|
||||
stringUtils = new StringUtils();
|
||||
disableSelect: boolean = true;
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private _router: Router,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 5f042433bef7fff734dcc776c750c99cdb70f00a
|
||||
Subproject commit ca4da850908f9ec045524982221745a11ada571d
|
|
@ -1,7 +1,7 @@
|
|||
:root {
|
||||
/*buttons*/
|
||||
--button-primary-background: var(--explore-color);
|
||||
--button-primary-background-image: linear-gradient(104deg, var(--explore-dark-color) 50%, var(--explore-light-color) 100%);
|
||||
--button-primary-background-image: linear-gradient(104deg, var(--explore-dark-color) 0%, var(--explore-light-color) 100%);
|
||||
|
||||
/*backgrounds*/
|
||||
--background-primary:var(--explore-color);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit c98b39a5a5d45e3f9676be11d38b78d881f9f8d5
|
||||
Subproject commit aa33ca719f7fc4f2e2a72cf590c36c1e2f46c241
|
Loading…
Reference in New Issue