-
Notifications
You must be signed in to change notification settings - Fork 380
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
Showing
5 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/themes/dspace/app/+home-page/home-news/home-news.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,26 @@ | ||
<div class="background-image"> | ||
<div class="container"> | ||
<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="_blank">leading institutions using DSpace</a>.</p> | ||
</div> | ||
</div> | ||
<small class="credits">Photo by <a href="https://www.pexels.com/@inspiredimages">@inspiredimages</a></small> | ||
</div> |
69 changes: 69 additions & 0 deletions
69
src/themes/dspace/app/+home-page/home-news/home-news.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,69 @@ | ||
:host { | ||
display: block; | ||
margin-top: calc(var(--ds-content-spacing) * -1); | ||
|
||
div.background-image { | ||
color: white; | ||
background-color: var(--bs-info); | ||
position: relative; | ||
background-position-y: -200px; | ||
background-image: url('/assets/dspace/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: var(--ds-banner-background-gradient-width); | ||
height: 100%; | ||
top: 0; | ||
position: absolute; | ||
} | ||
|
||
&:before { | ||
background: linear-gradient(to left, var(--ds-banner-text-background), transparent); | ||
left: calc(-1 * var(--ds-banner-background-gradient-width)); | ||
|
||
} | ||
|
||
&:after { | ||
background: linear-gradient(to right, var(--ds-banner-text-background), transparent); | ||
right: calc(-1 * var(--ds-banner-background-gradient-width)); | ||
} | ||
|
||
background-color: var(--ds-banner-text-background); | ||
} | ||
|
||
|
||
small.credits { | ||
a { | ||
color: inherit; | ||
} | ||
|
||
opacity: 0.3; | ||
position: absolute; | ||
right: var(--bs-spacer); | ||
bottom: 0; | ||
} | ||
} | ||
|
||
.jumbotron { | ||
background-color: transparent; | ||
} | ||
|
||
a { | ||
color: var(--ds-home-news-link-color); | ||
|
||
@include hover { | ||
color: var(--ds-home-news-link-hover-color); | ||
} | ||
} | ||
} | ||
|
||
|
14 changes: 14 additions & 0 deletions
14
src/themes/dspace/app/+home-page/home-news/home-news.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,14 @@ | ||
import { Component } from '@angular/core'; | ||
import { HomeNewsComponent as BaseComponent } from '../../../../../app/+home-page/home-news/home-news.component'; | ||
|
||
@Component({ | ||
selector: 'ds-home-news', | ||
styleUrls: ['./home-news.component.scss'], | ||
templateUrl: './home-news.component.html' | ||
}) | ||
|
||
/** | ||
* Component to render the news section on the home page | ||
*/ | ||
export class HomeNewsComponent extends BaseComponent {} | ||
|
File renamed without changes
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