diff --git a/src/_includes/components/pagination/README.md b/src/_includes/components/pagination/README.md new file mode 100644 index 0000000..5eb8ad5 --- /dev/null +++ b/src/_includes/components/pagination/README.md @@ -0,0 +1,3 @@ +# Pagination + +TODO. diff --git a/src/_includes/components/pagination/pagination.config.js b/src/_includes/components/pagination/pagination.config.js new file mode 100644 index 0000000..a9833dc --- /dev/null +++ b/src/_includes/components/pagination/pagination.config.js @@ -0,0 +1,32 @@ +module.exports = { + title: "Pagination", + context: { + text: "Pagination" + }, + variants: [ + { + title: "Insight", + context: { + variantClass: "pagination--insight" + } + }, + { + title: "Practice", + context: { + variantClass: "pagination--practice" + } + }, + { + title: "Technique", + context: { + variantClass: "pagination--technique" + } + }, + { + title: "Activity", + context: { + variantClass: "pagination--activity" + } + } + ] +}; diff --git a/src/_includes/components/pagination/pagination.njk b/src/_includes/components/pagination/pagination.njk new file mode 100644 index 0000000..a0bd48d --- /dev/null +++ b/src/_includes/components/pagination/pagination.njk @@ -0,0 +1,15 @@ +
+
+ +
+ +
+ +
+
\ No newline at end of file diff --git a/src/static/css/_pagination.css b/src/static/css/_pagination.css new file mode 100644 index 0000000..7e19cb1 --- /dev/null +++ b/src/static/css/_pagination.css @@ -0,0 +1,68 @@ +.pagination { + align-items: center; + background: var(--fl-bgColor, var(--pagination-bg, var(--color-blue-100))); + box-shadow: inset 0 0.25rem var(--fl-linkColor, var(--pagination-box-shadow-color, var(--color-blue-600))); + color: var(--fl-fgColor, var(--pagination-color, var(--color-blue-600))); + display: flex; + font-family: var(--font-sans); + font-weight: 800; + justify-content: space-between; + padding: var(--space-m); + text-decoration: none; + width: 20rem; +} + +.pagination svg { + height: 2rem; + width: 2rem; +} + +.pagination-previous svg { + transform: rotate(180deg); +} + +.pagination-previous:hover { + background: + linear-gradient( + 270deg, + var(--fl-bgColor, var(--pagination-bg, var(--color-blue-100))), + transparent + ); +} + +.pagination-next:hover { + background: + linear-gradient( + 90deg, + var(--fl-bgColor, var(--pagination-bg, var(--color-blue-100))), + transparent + ); +} + +.pagination:active { + --pagination-bg: var(--color-white); +} + +.pagination:focus { + box-shadow: 0 0 0 0.25rem var(--fl-linkColor, var(--pagination-box-shadow-color, var(--color-blue-600))) inset; + outline: 3px solid transparent; +} + +.pagination--insight { + --pagination-bg: var(--color-blue-100); +} + +.pagination--practice { + --pagination-bg: var(--color-green-100); + --pagination-box-shadow-color: var(--color-green-500); +} + +.pagination--technique { + --pagination-bg: var(--color-red-100); + --pagination-box-shadow-color: var(--color-red-500); +} + +.pagination--activity { + --pagination-bg: var(--color-orange-100); + --pagination-box-shadow-color: var(--color-orange-500); +} diff --git a/src/static/css/main.css b/src/static/css/main.css index 1e608ec..a6ca300 100644 --- a/src/static/css/main.css +++ b/src/static/css/main.css @@ -6,6 +6,7 @@ @import "_typography.css"; @import "_badge.css"; @import "_link.css"; +@import "_pagination.css"; @import "_card.css"; @import "_cards.css"; @import "_horizontal-rule.css";