-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCW Stories & Quotes New Design Implementation (#1460)
* Refactor layout: Adjust flex properties for responsiveness * Improve homepage * Add View All Stories Button * Add line-wise truncation for consistent layout * Remove pre-existing bootstrap col-X properties and use flex instead * Revamp OCW Stories mobile responsiveness * Add OCW Stories Banner * Single Story Page and Stories List * Work on homepage and single story page * Add quotesUI * Reusable Dialog Component * Dynamically load Modal via Webpack * Adjust everything * Add Eslint disable next line * Work on homepage margins and paddings for all screen sizes * Single page layout, image alignment, other adjustments * Work on overall adjustments * Stories single page paddings * Add mobile-sm breakpoint * Fix more stories padding in single page * Use correct heading tags for accessibility * Fix line-height of share-stories-banner * Work on minor fixes * Add Share your story link * Make card compact * Fix left border height inside Modal * Use leadquote
- Loading branch information
1 parent
61b5bf8
commit 11b8c45
Showing
18 changed files
with
938 additions
and
168 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
34 changes: 34 additions & 0 deletions
34
base-theme/assets/images/ocw_stories_home_btn_arrow_right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
base-theme/assets/images/ocw_testimonial_quote_modal_close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
export function initQuotesModalHandler() { | ||
const modalElement = $(".js-quote-modal") | ||
$(".js-modal-trigger").on("click", event => { | ||
event.preventDefault() | ||
|
||
const target = $(event.currentTarget) | ||
const modalContentId = target.data("modal-content-id") | ||
const contentDiv = $(`#${modalContentId}`) | ||
|
||
if (contentDiv.length) { | ||
const content = contentDiv.html() | ||
modalElement.find(".modal-body.quote-modal-body").html(content) | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
modalElement.modal("show") | ||
} else { | ||
console.error("Modal content not found for ID:", modalContentId) | ||
} | ||
}) | ||
} |
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.