[Trunk|Admin]: Wellcome page: Change view of cards base on connect home page.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@56753 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-07-24 13:04:27 +00:00
parent f6f86634ce
commit 3f6975b71f
1 changed files with 59 additions and 50 deletions

View File

@ -10,63 +10,72 @@ import {HelperFunctions} from '../../openaireLibrary/utils/HelperFunctions.class
@Component({
selector: 'wellcome',
template: `
<div class="image-front-topbar wellcomePage uk-background-norepeat uk-background-cover uk-background-top-center uk-section uk-padding-remove-bottom" uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;:false}" tm-header-transparent="light" tm-header-transparent-placeholder=""
uk-height-viewport="offset-top: true">
<div *ngIf="communities.length == 0" class="uk-container uk-container-large uk-section uk-margin-large-top">
<div class="uk-width-2-5@m uk-width-1-1@s">
<h1 class="font-41">A <b>Science Gateway</b> to the future of your <b>Community</b></h1>
<div class="uk-text-large">Turn Open Science into Practice. It takes your open and linked research outcomes. A service
customized to your needs.
</div>
</div>
<div class="uk-width-1-1 uk-inline uk-margin-large-top uk-margin-large-bottom">
<a class="uk-button portal-button" href="https://beta.connect.openaire.eu/about"> LEARN
HOW</a>
</div>
<div
class="image-front-topbar wellcomePage uk-background-norepeat uk-background-cover uk-background-top-center uk-section uk-padding-remove-bottom"
uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;:false}"
tm-header-transparent="light" tm-header-transparent-placeholder=""
uk-height-viewport="offset-top: true">
<div *ngIf="communities.length == 0" class="uk-container uk-container-large uk-section uk-margin-large-top">
<div class="uk-width-2-5@m uk-width-1-1@s">
<h1 class="font-41">A <b>Science Gateway</b> to the future of your <b>Community</b></h1>
<div class="uk-text-large">Turn Open Science into Practice. It takes your open and linked research outcomes. A service
customized to your needs.
</div>
<div *ngIf="communities.length > 0" class="uk-container uk-container-large uk-section">
<div class="uk-container">
<div class="uk-grid-match uk-grid-small uk-child-width-1-4@m uk-child-width-1-2@s uk-child-width-1-1@xs
uk-text-center uk-margin-large-top" uk-grid>
<div *ngFor="let community of communities;">
<div class="uk-padding-small uk-height-max-medium uk-card uk-card-default communityCard">
<div class="uk-container" *ngIf="community">
<div class="uk-card-media-top uk-margin-top uk-padding-small">
<a [queryParams]="{communityId: community.communityId}" routerLinkActive="router-link-active"
routerLink="/dashboard">
<div style="" class="uk-position-relative uk-align-center communitiesImageBox">
<div class="communitiesImageBox uk-position-relative uk-align-center">
<img *ngIf= "community.logoUrl != null && community.logoUrl != '' " src="{{community.logoUrl}}" alt="{{(community.title)?community.title:community.shortTitle}} logo" class="uk-position-center">
<span *ngIf= "community.logoUrl == null || community.logoUrl == '' "class="uk-icon uk-position-center">
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none" stroke="#000" stroke-width="1.1" cx="7.7" cy="8.6" r="3.5"></circle> <path fill="none" stroke="#000" stroke-width="1.1" d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3"></path> <path fill="none" stroke="#000" stroke-width="1.1" d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"></path></svg>
</span>
</div>
</div>
<div class="uk-margin-medium-top">
<div class="uk-text-center">
<p class="uk-text-small uk-text-bold uk-margin-small uk-margin-small-top community-title">
<a>
<span class="uk-text-small uk-margin-small" *ngIf="community.title">
{{community.title}}
</span>
<span class="uk-text-small uk-margin-small" *ngIf="!community.title && community.shortTitle">
{{community.shortTitle}}
</span>
</a>
</p>
</div>
</div>
</a>
</div>
</div>
</div>
<div class="uk-width-1-1 uk-inline uk-margin-large-top uk-margin-large-bottom">
<a class="uk-button portal-button" href="https://beta.connect.openaire.eu/about"> LEARN
HOW</a>
</div>
</div>
<div *ngIf="communities.length > 0" class="uk-container uk-container-large uk-section">
<div class="uk-container">
<div class="uk-grid-match uk-grid-small uk-child-width-1-4@m uk-child-width-1-2@s uk-child-width-1-1@xs
uk-text-center uk-margin-large-top" uk-grid uk-height-match="div > div > .uk-card-media-top">
<div *ngFor="let community of communities;">
<div class="uk-padding-small uk-card uk-card-small uk-card-default communityCard">
<div class="uk-container uk-text-small" *ngIf="community">
<div class="uk-card-media-top uk-padding uk-padding-remove-vertical target uk-flex uk-flex-center uk-flex-middle">
<a [queryParams]="{communityId: community.communityId}" routerLinkActive="router-link-active"
routerLink="/dashboard">
<div>
<img *ngIf="community.logoUrl != null && community.logoUrl != '' " src="{{community.logoUrl}}"
alt="{{(community.title)?community.title:community.shortTitle}} logo">
<span *ngIf="community.logoUrl == null || community.logoUrl == '' " class="uk-icon">
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none"
stroke="#000"
stroke-width="1.1"
cx="7.7"
cy="8.6"
r="3.5"></circle> <path
fill="none" stroke="#000" stroke-width="1.1"
d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3"></path> <path fill="none"
stroke="#000"
stroke-width="1.1"
d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"></path></svg>
</span>
</div>
</a>
</div>
<div class="uk-card-body uk-padding-remove-horizontal uk-padding-remove-top uk-margin-small-top target">
<a [queryParams]="{communityId: community.communityId}" routerLinkActive="router-link-active"
routerLink="/dashboard">
<div class="uk-text-center uk-text-bold">
<span class="uk-text-small uk-margin-small" *ngIf="community.title">
{{community.title}}
</span>
<span class="uk-text-small uk-margin-small" *ngIf="!community.title && community.shortTitle">
{{community.shortTitle}}
</span>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`
})