Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #389 from atmire/Theme-for-item-pages
Preview release theme, extended for Configurable Entities
- Loading branch information
Showing
88 changed files
with
1,458 additions
and
177 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
16 changes: 16 additions & 0 deletions
16
src/app/+home-page/home-news/home-news.component.default.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,16 @@ | ||
@import '../../../styles/variables.scss'; | ||
|
||
:host { | ||
display: block; | ||
margin-top: -$content-spacing; | ||
margin-bottom: -$content-spacing; | ||
} | ||
|
||
.display-3 { | ||
word-break: break-word; | ||
} | ||
|
||
.dspace-logo { | ||
height: 110px; | ||
width: 110px; | ||
} |
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 |
---|---|---|
@@ -1,16 +1,2 @@ | ||
@import '../../../styles/variables.scss'; | ||
|
||
:host { | ||
display: block; | ||
margin-top: -$content-spacing; | ||
margin-bottom: -$content-spacing; | ||
} | ||
|
||
.display-3 { | ||
word-break: break-word; | ||
} | ||
|
||
.dspace-logo { | ||
height: 110px; | ||
width: 110px; | ||
} | ||
@import './home-news.component.default'; | ||
@import './themes/*.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
21 changes: 21 additions & 0 deletions
21
src/app/+home-page/home-news/themes/home-news.component.mantis.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,21 @@ | ||
<div class="jumbotron jumbotron-fluid"> | ||
<div class="d-flex flex-wrap"> | ||
<div> | ||
<h1 class="display-3">DSpace 7</h1> | ||
<p class="lead">DSpace is the world leading open source repository platform that enables | ||
organisations to:</p> | ||
</div> | ||
</div> | ||
<ul> | ||
<li>easily ingest documents, audio, video, datasets and their corresponding Dublin Core | ||
metadata | ||
</li> | ||
<li>open up this content to local and global audiences, thanks to the OAI-PMH interface and | ||
Google Scholar optimizations | ||
</li> | ||
<li>issue permanent urls and trustworthy identifiers, including optional integrations with | ||
handle.net and DataCite DOI | ||
</li> | ||
</ul> | ||
<p>Join an international community of <A HREF="https://wiki.duraspace.org/display/DSPACE/DSpace+Positioning" TARGET="_NEW">leading institutions using DSpace</A>.</p> | ||
</div> |
19 changes: 19 additions & 0 deletions
19
src/app/+home-page/home-news/themes/home-news.component.mantis.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,19 @@ | ||
@import '../../../../styles/variables.scss'; | ||
@import '../../../../styles/mixins.scss'; | ||
|
||
:host-context(.mantis) { | ||
$home-news-link-color: $green !default; | ||
$home-news-link-color: darken($home-news-link-color, 15%) !default; | ||
|
||
.jumbotron { | ||
background-color: transparent; | ||
} | ||
|
||
a { | ||
color: $home-news-link-color; | ||
|
||
@include hover { | ||
color: $home-news-link-color; | ||
} | ||
} | ||
} |
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,3 @@ | ||
:host { | ||
//color: red; | ||
} |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
@import '../../styles/variables.scss'; | ||
@import './home-page.component.default'; | ||
@import './themes/*.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
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,10 @@ | ||
<div class="background-image"> | ||
<div class="container"> | ||
<ds-home-news></ds-home-news> | ||
<ds-search-form class="d-block pb-3" [large]="true" [brandColor]="'success'"></ds-search-form> | ||
</div> | ||
<small class="credits">Photo by <a href="https://www.pexels.com/@inspiredimages">@inspiredimages</a></small> | ||
</div> | ||
<div class="container pt-3"> | ||
<ds-top-level-community-list></ds-top-level-community-list> | ||
</div> |
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,52 @@ | ||
@import '../../../styles/variables.scss'; | ||
|
||
:host-context(.mantis) { | ||
div.background-image { | ||
color: white; | ||
background-color: $info; | ||
position: relative; | ||
background-position-y: -200px; | ||
background-image: url('/assets/images/banner.jpg'); | ||
background-size: cover; | ||
@media screen and (max-width: map-get($grid-breakpoints, lg)) { | ||
background-position-y: 0; | ||
} | ||
|
||
.container { | ||
position: relative; | ||
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); | ||
&:before, &:after { | ||
content: ''; | ||
display: block; | ||
width: $banner-background-gradient-width; | ||
height: 100%; | ||
top: 0; | ||
position: absolute; | ||
} | ||
|
||
&:before { | ||
background: linear-gradient(to left, $banner-text-background, transparent); | ||
left: -$banner-background-gradient-width; | ||
|
||
} | ||
|
||
&:after { | ||
background: linear-gradient(to right, $banner-text-background, transparent); | ||
right: -$banner-background-gradient-width; | ||
} | ||
background-color: $banner-text-background; | ||
} | ||
|
||
|
||
small.credits { | ||
a { | ||
color: inherit; | ||
} | ||
opacity: 0.3; | ||
position: absolute; | ||
right: $spacer; | ||
bottom: 0; | ||
} | ||
|
||
} | ||
} |
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: 73 additions & 0 deletions
73
...app/+item-page/simple/item-types/journal-issue/themes/journal-issue.component.mantis.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,73 @@ | ||
<div class="top-item-page"> | ||
<div class="container"> | ||
<div class="row"> | ||
|
||
<div class="col-12 col-md-2 d-flex flex-md-column justify-content-between"> | ||
<ds-metadata-field-wrapper> | ||
<ds-thumbnail [thumbnail]="this.item.getThumbnail() | async"></ds-thumbnail> | ||
</ds-metadata-field-wrapper> | ||
<div> | ||
<a class="btn btn-secondary" | ||
[routerLink]="['/items/' + item.id + '/full']"> | ||
{{"item.page.link.full" | translate}} | ||
</a> | ||
</div> | ||
</div> | ||
<div class="col-12 col-md-10"> | ||
<h2 class="item-page-title-field"> | ||
{{'journalissue.page.titleprefix' | translate}} | ||
<ds-metadata-values | ||
[mdValues]="item?.allMetadata(['dc.title'])"></ds-metadata-values> | ||
</h2> | ||
<div class="row"> | ||
<div class="col-12 col-md-6"> | ||
<ds-generic-item-page-field [item]="item" | ||
[fields]="['journal.title']" | ||
[label]="'journalissue.page.journal-title'"> | ||
</ds-generic-item-page-field> | ||
<ds-generic-item-page-field [item]="item" | ||
[fields]="['journalissue.identifier.number']" | ||
[label]="'journalissue.page.number'"> | ||
</ds-generic-item-page-field> | ||
<ds-generic-item-page-field [item]="item" | ||
[fields]="['journal.identifier.issn']" | ||
[label]="'journalissue.page.journal-issn'"> | ||
</ds-generic-item-page-field> | ||
</div> | ||
<div class="col-12 col-md-6"> | ||
<ds-generic-item-page-field [item]="item" | ||
[fields]="['journalissue.issuedate']" | ||
[label]="'journalissue.page.issuedate'"> | ||
</ds-generic-item-page-field> | ||
<ds-generic-item-page-field [item]="item" | ||
[fields]="['journalissue.identifier.description']" | ||
[label]="'journalissue.page.description'"> | ||
</ds-generic-item-page-field> | ||
<ds-generic-item-page-field [item]="item" | ||
[fields]="['journalissue.identifier.keyword']" | ||
[label]="'journalissue.page.keyword'"> | ||
</ds-generic-item-page-field> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="relationships-item-page" *ngIf="(volumes$ | async) || (publications$ | async)"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12 col-md-4" *ngIf="volumes$ | async"> | ||
<ds-related-items | ||
[items]="volumes$ | async" | ||
[label]="'relationships.isSingleVolumeOf' | translate"> | ||
</ds-related-items> | ||
</div> | ||
<div class="col-12 col-md-4" *ngIf="publications$ | async"> | ||
<ds-related-items | ||
[items]="publications$ | async" | ||
[label]="'relationships.isPublicationOfJournalIssue' | translate"> | ||
</ds-related-items> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
30 changes: 30 additions & 0 deletions
30
...app/+item-page/simple/item-types/journal-issue/themes/journal-issue.component.mantis.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,30 @@ | ||
@import '../../../../../../styles/variables.scss'; | ||
|
||
:host { | ||
> * { | ||
display: block; | ||
padding-top: $content-spacing; | ||
padding-bottom: $content-spacing; | ||
} | ||
|
||
.top-item-page { | ||
background-color: $gray-100; | ||
margin-top: -$content-spacing; | ||
} | ||
|
||
.relationships-item-page { | ||
padding-bottom: $content-spacing - $spacer; | ||
} | ||
|
||
ds-metadata-field-wrapper { | ||
@media screen and (max-width: map-get($grid-breakpoints, md)) { | ||
flex: 1; | ||
padding-right: $spacer/2; | ||
} | ||
|
||
ds-thumbnail { | ||
display: block; | ||
max-width: $thumbnail-max-width; | ||
} | ||
} | ||
} |
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.