-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ux: fix chips link on homepage, redesigned about page
- Loading branch information
Showing
9 changed files
with
214 additions
and
128 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
:host { | ||
display: block; | ||
/* Ensure grid columns stretch to fill available space */ | ||
.container { | ||
display: flex; | ||
justify-content: center; | ||
flex-wrap: wrap; | ||
margin-left: 3em; | ||
margin-right: 2em; | ||
} | ||
|
||
h2 { | ||
font-size: 20px; | ||
font-weight: 500; | ||
letter-spacing: 0.005em; | ||
margin-bottom: 0; | ||
margin-top: 0.83em; | ||
::ng-deep .p-panel-header { | ||
background-color: black; | ||
border-color: black; | ||
color: #ffffff; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
hr { | ||
-moz-box-sizing: content-box; | ||
-webkit-box-sizing: content-box; | ||
box-sizing: content-box; | ||
height: 0; | ||
border: 1px solid #666; | ||
padding-bottom: -1px; | ||
margin: 1.25rem 0; | ||
::ng-deep .p-panel-header a { | ||
color: #ffffff; | ||
} | ||
|
||
.labelAbout { | ||
font-size: xx-large; | ||
float: left; | ||
display: block; | ||
::ng-deep .p-panel-content { | ||
border-color: black; | ||
background-color: #ffffff; | ||
color: black; | ||
} | ||
|
||
.breadCrumb { | ||
color: #4b4b4b; | ||
.anchor-button { | ||
border: 1px solid white; /* Set border color to black */ | ||
color: white; /* Set text color to black */ | ||
text-decoration: none; /* Remove underline */ | ||
margin-right: 10px; | ||
text-align: left; | ||
background-color: black; /* Set background color */ | ||
} | ||
|
||
.breadCrumbFirstElement { | ||
color: #fff; | ||
} | ||
|
||
:host ::ng-deep .breadcrumb { | ||
background-color: #153971; | ||
.anchor-button:hover { | ||
background-color: #93c5fd; | ||
border-color: black; /* Optional: Set border color on hover */ | ||
color: black; | ||
} | ||
|
||
.breadCrumb-item { | ||
color: #fff; | ||
font-weight: 300; | ||
::ng-deep .p-breadcrumb { | ||
background-color: black; | ||
border-color: white; | ||
color: white; | ||
} | ||
|
||
.main-image{ | ||
width:50%; | ||
margin: 1em 0em 0em 0em; | ||
min-width: 200px; | ||
::host ::ng-deep .p-image-action { | ||
flex: 0 0 20%; | ||
} |
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,61 +1,129 @@ | ||
<!-- Top banner --> | ||
<div class="top-banner" [ngStyle]="{ 'background-image': 'url(' + imageURL + ')'}"> | ||
<div class="container inner-top-banner"> | ||
<span style="font-size: xx-large;"> | ||
<i class="faa faa-info-circle faa-lg" style="padding-right: .5em;"></i><label id='title'>About NIST | ||
Data</label> | ||
</span> | ||
<ol class="breadcrumb" style="float: right;"> | ||
<li class="active breadcrumb-item"><span style="color: #fff; font-weight:normal; cursor: pointer;" | ||
(click)="commonService.goHome()">Home</span></li> | ||
<li class="breadcrumb-item">About</li> | ||
<li class="breadcrumb-item">NIST Data</li> | ||
</ol> | ||
</div> | ||
</div> | ||
<div | ||
style=" | ||
background-color: white; | ||
margin-left: -0.5em; | ||
margin-right: -0.5em; | ||
padding: 2em; | ||
" | ||
> | ||
<p-panel> | ||
<ng-template pTemplate="header" class="header-container"> | ||
<i | ||
class="faa faa-info-circle faa-lg icon-padding" | ||
style="margin-right: 10px" | ||
></i> | ||
<a target="_blank" pButton size="small" class="anchor-button"> | ||
<label id="title">About NIST Data</label> | ||
</a> | ||
</ng-template> | ||
<ng-template pTemplate="icons"> | ||
<p-breadcrumb | ||
aria-colcount="anchor-button" | ||
[model]="breadcrumbItems" | ||
></p-breadcrumb> | ||
</ng-template> | ||
|
||
<div class="result-details" style="display: flex; align-items: flex-start"> | ||
<div> | ||
<p-image | ||
src="./assets/images/AboutNIST-wordcloud_D.jpg" | ||
alt="AboutNIST" | ||
[preview]="true" | ||
style="margin-right: 1em" | ||
width="250" | ||
></p-image> | ||
</div> | ||
|
||
<!-- Text body --> | ||
<div class="text-body" style="padding: 0px;"> | ||
<div class="container"> | ||
<div style="clear: both; border: 1px solid white;"> | ||
<img HSPACE=”50” VSPACE=”0” align=right class="main-image" | ||
src="./assets/images/AboutNIST-wordcloud_D.jpg" alt="AboutNIST"> | ||
<div class="adv-step"> | ||
This National Institute of Standards and Technology (NIST) <b>Science Data Portal</b> provides a | ||
user-friendly discovery and exploration tool for publicly available datasets at NIST. These data | ||
products are generated as part of the NIST mission, spanning multiple | ||
disciplines of scientific, engineering and technology research. NIST's publicly available data | ||
sets showcase its commitment to providing accurate, well-curated measurements of physical | ||
properties, exemplified by the <a href="https://www.nist.gov/srd" target="_blank" rel="noopener" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'Standard Reference Data program')"> | ||
Standard Reference Data program</a>, as well as its commitment to advancing basic research. | ||
</div> | ||
<div class="adv-step"> | ||
For <a | ||
href="https://www.nist.gov/topics/data/public-access-nist-research/copyright-fair-use-and-licensing-statements-srd-data-and" | ||
target="_blank" rel="noopener" (click)="gaService.gaTrackEvent('outbound', $event, 'Fair Use')"><b>Fair | ||
Use</b></a> of these data, please include citation in your works including the Digital | ||
Object | ||
Identifier (DOI). NIST DOIs are registered with the <a href="https://www.datacite.org" | ||
target="_blank" rel="noopener" (click)="gaService.gaTrackEvent('outbound', $event, 'DataCite')">DataCite | ||
organization</a> and provide globally unique persistent identifiers. The DOI also serves as | ||
a direct link to data <i>homepages</i> giving access to the full research publication | ||
description and underlying datasets. | ||
</div> | ||
<hr> | ||
<div class="adv-step"> | ||
This portal is designed with <a href="https://www.go-fair.org/fair-principles/" target="_blank" | ||
rel="noopener" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'FAIR Data')"> FAIR principles</a> and | ||
best practice for <a href="https://strategy.data.gov/" target="_blank" rel="noopener" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'FDS')">Federal Data Strategy</a> (See | ||
<a href="#/policy" target="_blank" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'Policy')">Policy page</a> for more | ||
details). This portal and related software is hosted in the USNISTGOV organization <a | ||
href="https://github.com/usnistgov/oar-developer" target="_blank" rel="noopener" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'OAR Github')">github repository</a> as | ||
an open source solution. | ||
</div> | ||
<div style="flex: 1"> | ||
<div class="has-text-black"> | ||
This National Institute of Standards and Technology (NIST) | ||
<b>Science Data Portal</b> provides a user-friendly discovery and | ||
exploration tool for publicly available datasets at NIST. These data | ||
products are generated as part of the NIST mission, spanning multiple | ||
disciplines of scientific, engineering and technology research. NIST's | ||
publicly available data sets showcase its commitment to providing | ||
accurate, well-curated measurements of physical properties, | ||
exemplified by the | ||
<a | ||
href="https://www.nist.gov/srd" | ||
target="_blank" | ||
rel="noopener" | ||
(click)=" | ||
gaService.gaTrackEvent( | ||
'outbound', | ||
$event, | ||
'Standard Reference Data program' | ||
) | ||
" | ||
> | ||
Standard Reference Data program </a | ||
>, as well as its commitment to advancing basic research. | ||
</div> | ||
<div class="adv-step"> | ||
For | ||
<a | ||
href="https://www.nist.gov/topics/data/public-access-nist-research/copyright-fair-use-and-licensing-statements-srd-data-and" | ||
target="_blank" | ||
rel="noopener" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'Fair Use')" | ||
> | ||
<b>Fair Use</b> | ||
</a> | ||
of these data, please include citation in your works including the | ||
Digital Object Identifier (DOI). NIST DOIs are registered with the | ||
<a | ||
href="https://www.datacite.org" | ||
target="_blank" | ||
rel="noopener" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'DataCite')" | ||
> | ||
DataCite organization | ||
</a> | ||
and provide globally unique persistent identifiers. The DOI also | ||
serves as a direct link to data <i>homepages</i> giving access to the | ||
full research publication description and underlying datasets. | ||
</div> | ||
<hr /> | ||
<div class="adv-step"> | ||
This portal is designed with | ||
<a | ||
href="https://www.go-fair.org/fair-principles/" | ||
target="_blank" | ||
rel="noopener" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'FAIR Data')" | ||
> | ||
FAIR principles | ||
</a> | ||
and best practice for | ||
<a | ||
href="https://strategy.data.gov/" | ||
target="_blank" | ||
rel="noopener" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'FDS')" | ||
> | ||
Federal Data Strategy | ||
</a> | ||
(See | ||
<a | ||
href="#/policy" | ||
target="_blank" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'Policy')" | ||
> | ||
Policy page | ||
</a> | ||
for more details). This portal and related software is hosted in the | ||
USNISTGOV organization | ||
<a | ||
href="https://github.com/usnistgov/oar-developer" | ||
target="_blank" | ||
rel="noopener" | ||
(click)="gaService.gaTrackEvent('outbound', $event, 'OAR Github')" | ||
> | ||
github repository | ||
</a> | ||
as an open source solution. | ||
</div> | ||
</div> | ||
</div> | ||
</p-panel> | ||
</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 |
---|---|---|
@@ -1,27 +1,31 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { GoogleAnalyticsService } from '../shared/ga-service/google-analytics.service'; | ||
import { CommonService } from '../shared/common/common.service'; | ||
import { AppConfig, Config } from '../shared/config-service/config.service'; | ||
import { Component, OnInit } from "@angular/core"; | ||
import { GoogleAnalyticsService } from "../shared/ga-service/google-analytics.service"; | ||
import { CommonService } from "../shared/common/common.service"; | ||
import { AppConfig, Config } from "../shared/config-service/config.service"; | ||
import { MenuItem } from "primeng/api"; | ||
|
||
@Component({ | ||
selector: 'sdp-about', | ||
templateUrl: './about.component.html', | ||
styleUrls: ['./about.component.css'] | ||
selector: "sdp-about", | ||
templateUrl: "./about.component.html", | ||
styleUrls: ["./about.component.css"], | ||
}) | ||
export class AboutComponent implements OnInit { | ||
imageURL: string; | ||
|
||
constructor(public gaService: GoogleAnalyticsService, | ||
private appConfig: AppConfig, | ||
public commonService: CommonService) | ||
{ } | ||
breadcrumbItems: MenuItem[]; | ||
constructor( | ||
public gaService: GoogleAnalyticsService, | ||
private appConfig: AppConfig, | ||
public commonService: CommonService | ||
) {} | ||
|
||
ngOnInit() { | ||
this.appConfig.getConfig().subscribe( | ||
(conf) => { | ||
this.imageURL = conf.SDPAPI + 'assets/images/sdp-background.jpg'; | ||
} | ||
); | ||
this.appConfig.getConfig().subscribe((conf) => { | ||
this.imageURL = conf.SDPAPI + "assets/images/sdp-background.jpg"; | ||
}); | ||
this.breadcrumbItems = [ | ||
{ label: "Home", command: () => this.commonService.goHome() }, | ||
{ label: "About" }, | ||
{ label: "NIST Data" }, | ||
]; | ||
} | ||
|
||
} |
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
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.