Skip to content

Commit

Permalink
Add imagery and arrange content on Plus page
Browse files Browse the repository at this point in the history
Relates to issue #14 and #2
  • Loading branch information
robyngit committed Mar 25, 2020
1 parent e161215 commit 5fae79c
Show file tree
Hide file tree
Showing 20 changed files with 161 additions and 135 deletions.
190 changes: 90 additions & 100 deletions content/plus/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,108 +40,52 @@ page_sections:
readily customized way to communicate your science, your team, your data, and
related data from within the DataONE network.
blocks:
- template: columns
num_cols: 2
columns:
- template: image
src: "/uploads/portal-data-page.png"
alttext: Portals from DataONE Plus
title: DataONE Plus portals page
type: float
- template: features-list
features:
- template: feature-simple
icon:
template: icon
size: small
style: secondary-subtle
name: checkmark
text: Create a catalog of your team's data that spans the DataONE network
headline: All of your data in one place
- template: feature-simple
icon:
template: icon
size: small
style: secondary-subtle
name: checkmark
text: Configure search fields specific to your science topics
headline: Customized search filters
headline_link: "/features/custom-search"
- template: feature-simple
icon:
template: icon
size: small
style: secondary-subtle
name: checkmark
text: Pick datasets, add and reorder pages, and upload images in minutes
headline: Easy online editor
headline_link: "/features/portal-editor"
- template: feature-detailed
image:
template: image
type: default
type: tilt-left
src: uploads/dataset-collection.png
alttext: Dataset collection
title: Dataset collection
type: right
button:
template: button
html_tag: a
type_attr: button
type: internal page
color: secondary
internal_link: []
icon:
template: icon
size: large
style: default
event:
title: DataONE Event
headline: All of your data in one place
text: Create a catalog of your team's data that spans the DataONE network
- template: feature-detailed
image:
template: image
type: default
type: right
type: tilt-right
src: uploads/search-filters.png
alttext: Search filters
title: Search filters
type: left
button:
template: button
html_tag: a
type_attr: button
type: internal page
color: secondary
internal_link: features/portal-editor.md
icon:
template: icon
size: large
style: default
event:
title: DataONE Event
text: Learn more about the portal editor
text: Pick datasets, add and reorder pages, and upload images in minutes
headline: Easy online editor
color: quaternary
text: See what you can do with search filters
internal_link: features/custom-search.md
headline: Customized search filters
text: Configure search fields specific to your science topics
- template: feature-detailed
image:
template: image
type: default
type: tilt-left
src: uploads/portal-editor.png
alttext: Search filters
title: Search filters
type: right
button:
template: button
html_tag: a
type_attr: button
type: internal page
color: secondary
internal_link: features/custom-search.md
icon:
template: icon
size: large
style: default
event:
title: DataONE Event
text: See what you can do with search filters
headline: Customized search filters
text: Configure search fields specific to your science topics
color: quaternary
internal_link: features/portal-editor.md
text: Portal editor in detail
text: Pick datasets, add and reorder pages, and upload images in minutes with the easy-to-use online portal editor
headline: Set up in minutes
button:
template: button
type: internal page
color: secondary
color: primary
internal_link: "/features"
text: See a full list of features
- template: section
Expand All @@ -151,19 +95,38 @@ page_sections:
blocks:
- template: columns
num_cols: 3
alignment: left
columns:
- template: feature-simple
- template: feature-detailed
type: top
text: Access aggregated view and download metrics for datasets
headline: Usage metrics
headline_link: "/features/usage-metrics"
- template: feature-simple
button:
template: button
type: internal page
color: quaternary
text: Learn more
internal_link: "/features/usage-metrics"
- template: feature-detailed
type: top
text: Aggregated FAIR metadata assessment scores
headline: FAIR Assessments
headline_link: "/features/fair"
- template: feature-simple
button:
template: button
type: internal page
color: quaternary
text: Learn more
internal_link: "/features/fair"
- template: feature-detailed
type: top
headline: Citation reports
headline_link: "/features/citations"
text: Find out who is citing your data
button:
template: button
type: internal page
color: quaternary
text: Learn more
internal_link: "/features/citations"
- template: section
type: data-wave
title: Make your data FAIR
Expand Down Expand Up @@ -216,41 +179,68 @@ page_sections:
- template: columns
num_cols: 3
columns:
- template: feature-simple
- template: feature-detailed
type: top
headline: Your branding
text: Customize your portal with the colors, logos, and images that reflect
your project
headline_link: "/features/branding"
- template: feature-simple
button:
template: button
type: internal page
color: quaternary
text: Learn more
internal_link: "/features/branding"
- template: feature-detailed
type: top
headline: Your content
text: Your portal pages can include visualizations of your research, a list
of your team members, and any other custom content
headline_link: "/features/portal-content"
- template: feature-simple
button:
template: button
type: internal page
color: quaternary
text: Learn more
internal_link: "/features/portal-content"
- template: feature-detailed
type: top
headline: Your supporters
text: Acknowledge the people and organizations that support your project by
adding their logos to your portal
- template: section
type: default
type: wave
title: See what others are doing with DataONE Plus portals
blocks:
- template: columns
num_cols: 2
columns:
- template: feature-simple
headline: State of Alaska's Salmon and People
headline_link: https://knb.ecoinformatics.org/portals/sasap
text: A collaboration of researchers, cultural leaders, and others working to
- template: card
clickable: true
href: https://knb.ecoinformatics.org/portals/sasap
image:
template: image
src: https://knb.ecoinformatics.org/knb/d1/mn/v2/object/urn:uuid:119331ce-43fa-43e2-bba6-86ea60bb780c
alttext: Image from the SASAP Portal
title: State of Alaska's Salmon and People portal
type: tilt-left
title: State of Alaska's Salmon and People
description: A collaboration of researchers, cultural leaders, and others working to
bring together important, accurate, and up-to-date information that will help
to support better salmon decision-making. The State of Alaska's Salmon and
People uses a DataONE Plus portal to communicate the results of their research
with multiple pages of text, maps, data visualizations. They use custom search
filters to let visitors find data by Alaskan region, salmon species, waterbody,
and more.
- template: feature-simple
headline: Distributed Biological Observatory
headline_link: https://arcticdata.io/catalog/portals/DBO
text: Studying biological responses to rapid physical changes in the Arctic
- template: card
clickable: true
image:
template: image
src: https://arcticdata.io/metacat/d1/mn/v2/object/urn:uuid:fc5c0db6-fff1-4647-acd5-18b976d27727
alttext: Image from the DBO Portal
title: Distributed Biological Observatory portal
type: tilt-left
href: https://arcticdata.io/catalog/portals/DBO
title: Distributed Biological Observatory
description: Studying biological responses to rapid physical changes in the Arctic
marine ecosystem. The Distributed Biological Observatory uses a DataONE Plus
portal to communicate their project's goals and history, house their extensive
list of publications and showcase usage of their data, including citations.
Expand Down
Binary file added content/uploads/dataset-collection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/uploads/portal-editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/uploads/portal-screenshot-dbo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/uploads/portal-screenshot-sasap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/uploads/search-filters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion themes/dataone/assets/scss/definitions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ $fs-pill: .7rem; //
text-rendering : optimizeLegibility;
-webkit-font-smoothing : antialiased;
-moz-osx-font-smoothing: grayscale;
color: col($c-neutral, 5);
}
// rules for larger (desktop) screens
@mixin desktop {
Expand Down Expand Up @@ -284,4 +285,4 @@ $fs-pill: .7rem; //
transform : translateY(-0.1px);
box-shadow: 0 5px 10px rgba(30,50,93,.02), 0 1px 3px rgba(col($c-neutral, 9),.15);
}
}
}
2 changes: 1 addition & 1 deletion themes/dataone/assets/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ a {
{{end}}
{{end}}
{{end}}
{{end}}
{{end}}
4 changes: 2 additions & 2 deletions themes/dataone/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<!-- For debugging CSS: -->
<!-- find elements that expand past screen width (esp. on mobile) -->

<!-- <script> var docWidth = document.documentElement.offsetWidth; [].forEach.call( document.querySelectorAll('*'), function(el) { if (el.offsetWidth > docWidth) { console.log(el); // console.log(el.offsetWidth); } } ); </script> -->
<script> var docWidth = document.documentElement.offsetWidth; [].forEach.call( document.querySelectorAll('*'), function(el) { if (el.offsetWidth > docWidth) { console.log(el); console.log(el.offsetWidth); } } ); </script>

</body>
</html>
</html>
2 changes: 1 addition & 1 deletion themes/dataone/layouts/_default/blocks.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
{{ partial (printf "blocks/%s/%s.html" $template $template) (dict "Block" . "Page" $) }}
{{- end -}}

{{- end -}}
{{- end -}}
4 changes: 2 additions & 2 deletions themes/dataone/layouts/partials/blocks/button/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<!-- icon -->
{{ $icon := "" }}
{{ if and .Block.icon (ne .Block.icon.icon "") (ne .Block.icon.icon " " ) }}
{{ if and .Block.icon .Block.icon.icon (ne .Block.icon.icon "") (ne .Block.icon.icon " " ) }}
{{ $svg := partial "blocks/line-icon/line-icon" (dict "Block" .Block.icon "Page" $page ) }}
{{ $icon = print `<span class="button__icon">` $svg `</span>` | safeHTML }}
{{ end }}
Expand Down Expand Up @@ -71,4 +71,4 @@

{{ printf "</%s>" $htmlTag | safeHTML }}

{{ end }}
{{ end }}
12 changes: 8 additions & 4 deletions themes/dataone/layouts/partials/blocks/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

.button--col-secondary {
background-color: $c-secondary;
color : col($c-neutral, 1);
color : col($c-secondary, 1);

&:hover {
background-color: lighten($c-secondary, 2%);
Expand All @@ -81,15 +81,15 @@
}

&:hover {
background-color: col($c-neutral, 1);
background-color: white;
color : lighten($c-secondary, 2%);
box-shadow : 0 3px 10px rgba(30,50,93,.08), 0 2px 5px rgba(0,0,0,.07);
}
}

.button--col-quaternary {
white-space : normal;
font-size : $fs-button;
font-size : 0.95rem;
background-color: transparent;
color : $c-secondary;
display : inline-block;
Expand Down Expand Up @@ -158,4 +158,8 @@
background-color: white;
color : col($c-secondary, 5);
}
}

.button--col-quaternary{
color : col($c-quaternary, 5);
}
}
4 changes: 2 additions & 2 deletions themes/dataone/layouts/partials/blocks/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

&__date {
background : col($c-secondary, 4);
color : col($c-secondary, 8);
color : col($c-secondary, 7);
display : inline-block;
padding : 10px;
position : absolute;
Expand Down Expand Up @@ -116,4 +116,4 @@
transform : translateY(-0.8px);
box-shadow: 5px 6px 27px -14px rgba(0, 0, 0, 0.5);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.datetime {
@include f-common;
color: inherit;

&__displaydate {
font-weight: 400;
Expand Down Expand Up @@ -116,4 +117,4 @@
.ap-footer-osm svg path {
color: col($c-neutral, 4);
fill : col($c-neutral, 4);
}
}
Loading

0 comments on commit 5fae79c

Please sign in to comment.