Feat/sat image snapshot#18
Open
jdromero88 wants to merge 35 commits intomainfrom
Open
Conversation
969df25 to
694a9b5
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
<csis-satellite-snapshot>Web ComponentWhat this component does
csis-satellite-snapshotis a reusable website component that displays a satellite snapshot feature on a page.A web component that displays a satellite image gallery with an interactive timeline. Users can navigate through images chronologically using the timeline scrubber or the previous/next buttons.
Usage
Data Format
The component expects a CSV file at the provided
data-urlwith the following columns:iddateYYYY-MM-DDformattitledescriptionimageimage_altRows are automatically sorted chronologically and invalid/missing dates are filtered out.
Attributes
Data
data-urlstring""Navigation Buttons
btn-colorstring#cccbtn-bg-colorstring#fffbtn-border-colorstring#DD3D3Dbtn-border-thicknessstring1pxbtn-svg-colorstring#DD3D3Dbtn-hover-colorstringhsl(0 0% 50% / 0.05)btn-bg-hover-colorstringwhiteTimeline
timeline-line-colorstring#d9d9d9timeline-circle-sizestring1rem10pxand30px)timeline-circle-colorstring#d9d9d9timeline-circle-border-colorstring#d9d9d9timeline-circle-selected-border-colorstring#d9d9d9timeline-year-colorstring#ffftooltip-font-sizestring.8remContent Box
box-font-urlstring""box-font-familystring'IBM Plex Sans', system-ui, sans-seriftitle-colorstring#000title-font-sizestring1.5remtitle-alignmentstringleftleft,center,right)date-font-colorstring#000date-font-sizestring1remdate-alignmentstringleftleft,center,right)description-font-colorstring#000description-font-sizestring1remdescription-alignmentstringleftleft,center,right)text-box-background-colorstringwhitetext-box-border-colorstringredtext-box-border-thicknessstring2pxtext-box-border-radiusstring15pxTimeline Behavior
Responsive Behavior
On viewports 700px and below, the layout adjusts to a mobile-friendly gallery:
50vwheight.Example