This repository has been archived by the owner on Apr 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Pyv inspired enhancements #195
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7bd3743
Added Table Styles to RTE
JosephCurley 8cfdf25
Properly style links within JumpLink Banner description
JosephCurley fb427e8
Added QuickLinks component to marble
JosephCurley c77dd49
Modify Link styles for jumplink banner
JosephCurley fcd794a
Update quicklinks to use controls
JosephCurley ebebb4b
Merge branch 'main' into pyv-inspired-enhancements
JosephCurley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,36 @@ | ||
$bp-ql: 800px; | ||
|
||
.quick-links { | ||
margin-bottom: $spacing-s; | ||
margin-top: $spacing-s; | ||
} | ||
|
||
.quick-links__link-container { | ||
display: grid; | ||
grid-gap: $spacing-s; | ||
grid-template-columns: repeat(1, 1fr); | ||
padding-top: $spacing-s; | ||
|
||
@media screen and (min-width: $bp-ql) { | ||
grid-template-columns: repeat(2, 1fr); | ||
} | ||
} | ||
|
||
.quick-link { | ||
display: flex; | ||
grid-gap: $spacing-xs; | ||
position: relative; | ||
} | ||
|
||
.quick-link__image-wrapper { | ||
align-self: center; | ||
flex-shrink: 0; | ||
height: $spacing-l; | ||
position: relative; | ||
width: $spacing-l; | ||
} | ||
|
||
.quick-link__image { | ||
max-height: 100%; | ||
max-width: 100%; | ||
} |
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,48 @@ | ||
import { html, repeat } from ".storybook/helpers"; | ||
import image4x3 from ".storybook/assets/images/greek-hall/4x3/1240.jpg"; | ||
|
||
|
||
export default { | ||
title: "Quick Links" | ||
}; | ||
|
||
const quickLinkMarkUp = (link) => { | ||
return html` | ||
<div class="quick-link"> | ||
<a aria-hidden=true tabindex="-1" href="${link.url}" class="invisible-redundant-link"></a> | ||
<div class="quick-link__image-wrapper"> | ||
<img class="quick-link__image" src="${link.image}" /> | ||
</div> | ||
<div class="quick-link__text"> | ||
<h4> | ||
<a href="${link.url}"> | ||
${link.title} | ||
</a> | ||
</h4> | ||
<div>${link.description}</div> | ||
</div> | ||
</div>`; | ||
}; | ||
|
||
const QuickLinks = (args) => html` | ||
<section class="productive-component quick-links"> | ||
<h2>${args.title}</h2> | ||
<div class="quick-links__link-container"> | ||
${repeat((args.numberOfLinks), quickLinkMarkUp(args.link))} | ||
</div> | ||
</section>`; | ||
|
||
QuickLinks.args = { | ||
title: "Quick Links", | ||
id: "quick-links", | ||
numberOfLinks: 5, | ||
link: { | ||
title: "Visitor Guidelines", | ||
description: "Review our latest guidelines, including vaccination requirements.", | ||
url: "https://www.nytimes.com", | ||
image: image4x3 | ||
} | ||
}; | ||
|
||
|
||
export { QuickLinks }; |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding coverage of this