@pixelated-tech/components 3.1.6 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/callout/callout.js +10 -9
- package/dist/components/callout/callout.scss +43 -43
- package/dist/components/carousel/carousel.css +24 -22
- package/dist/components/carousel/carousel.drag.js +1 -1
- package/dist/components/carousel/carousel.js +10 -10
- package/dist/components/{tiles → carousel}/tiles.css +10 -10
- package/dist/components/{tiles → carousel}/tiles.js +3 -3
- package/dist/components/cms/contentful.items.components.js +12 -12
- package/dist/components/cms/contentful.items.css +24 -24
- package/dist/components/cms/gravatar.components.js +87 -5
- package/dist/components/cms/instagram.components.js +1 -1
- package/dist/components/cms/wordpress.components.js +3 -3
- package/dist/components/cms/wordpress.css +3 -3
- package/dist/components/general/microinteractions.css +7 -7
- package/dist/components/general/modal.css +5 -5
- package/dist/components/general/modal.js +1 -1
- package/dist/components/general/semantic.js +282 -0
- package/dist/components/general/semantic.scss +359 -0
- package/dist/components/menu/menu-accordion.css +27 -21
- package/dist/components/menu/menu-accordion.js +1 -1
- package/dist/components/menu/menu-simple.css +8 -8
- package/dist/components/menu/menu-simple.js +3 -3
- package/dist/components/nerdjoke/nerdjoke.js +85 -77
- package/dist/components/pagebuilder/components/PageBuilderUI.js +1 -1
- package/dist/components/pagebuilder/components/PageEngine.js +21 -14
- package/dist/components/pagebuilder/lib/componentMap.js +5 -5
- package/dist/components/pagebuilder/lib/componentMetadata.js +1 -1
- package/dist/components/seo/404.css +5 -5
- package/dist/components/seo/404.js +2 -2
- package/dist/components/seo/googlemap.js +2 -1
- package/dist/components/seo/googlesearch.css +11 -0
- package/dist/components/shoppingcart/ebay.css +5 -5
- package/dist/components/shoppingcart/shoppingcart.css +1 -1
- package/dist/components/{resume → structured}/resume.css +4 -0
- package/dist/components/{resume → structured}/resume.js +3 -3
- package/dist/components/{timeline → structured}/timeline.css +14 -14
- package/dist/components/{timeline → structured}/timeline.js +3 -3
- package/dist/css/pixelated.global.css +25 -164
- package/dist/index.js +11 -12
- package/dist/types/components/callout/callout.d.ts.map +1 -1
- package/dist/types/components/carousel/carousel.d.ts.map +1 -1
- package/dist/types/components/{tiles → carousel}/tiles.d.ts +1 -1
- package/dist/types/components/carousel/tiles.d.ts.map +1 -0
- package/dist/types/components/cms/contentful.items.components.d.ts.map +1 -1
- package/dist/types/components/cms/gravatar.components.d.ts +53 -24
- package/dist/types/components/cms/gravatar.components.d.ts.map +1 -1
- package/dist/types/components/cms/pixelated.linkedin.d.ts.map +1 -0
- package/dist/types/components/cms/pixelated.linkedin1.d.ts.map +1 -0
- package/dist/types/components/cms/pixelated.linkedin2.d.ts.map +1 -0
- package/dist/types/components/cms/yelp.d.ts.map +1 -0
- package/dist/types/components/general/semantic.d.ts +153 -0
- package/dist/types/components/general/semantic.d.ts.map +1 -0
- package/dist/types/components/general/sidepanel.d.ts.map +1 -0
- package/dist/types/components/nerdjoke/nerdjoke.d.ts +15 -20
- package/dist/types/components/nerdjoke/nerdjoke.d.ts.map +1 -1
- package/dist/types/components/pagebuilder/components/PageEngine.d.ts.map +1 -1
- package/dist/types/components/pagebuilder/lib/componentMap.d.ts +6 -6
- package/dist/types/components/pagebuilder/lib/componentMap.d.ts.map +1 -1
- package/dist/types/components/seo/404.d.ts.map +1 -1
- package/dist/types/components/seo/googlemap.d.ts +1 -0
- package/dist/types/components/seo/googlemap.d.ts.map +1 -1
- package/dist/types/components/{buzzwordbingo → structured}/buzzwordbingo.d.ts +1 -1
- package/dist/types/components/structured/buzzwordbingo.d.ts.map +1 -0
- package/dist/types/components/structured/markdown.d.ts.map +1 -0
- package/dist/types/components/structured/recipe.d.ts.map +1 -0
- package/dist/types/components/{resume → structured}/resume.d.ts +1 -1
- package/dist/types/components/structured/resume.d.ts.map +1 -0
- package/dist/types/components/{socialcard → structured}/socialcard.d.ts +1 -1
- package/dist/types/components/{socialcard → structured}/socialcard.d.ts.map +1 -1
- package/dist/types/components/{timeline → structured}/timeline.d.ts +1 -1
- package/dist/types/components/structured/timeline.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -10
- package/dist/types/stories/callout/callout.many.stories.d.ts.map +1 -0
- package/dist/types/stories/{callout.stories.d.ts → callout/callout.stories.d.ts} +1 -1
- package/dist/types/stories/callout/callout.stories.d.ts.map +1 -0
- package/dist/types/stories/{carousel-hero.stories.d.ts → carousel/carousel-hero.stories.d.ts} +1 -1
- package/dist/types/stories/carousel/carousel-hero.stories.d.ts.map +1 -0
- package/dist/types/stories/{carousel-reviews.stories.d.ts → carousel/carousel-reviews.stories.d.ts} +1 -1
- package/dist/types/stories/carousel/carousel-reviews.stories.d.ts.map +1 -0
- package/dist/types/stories/{carousel-workportfolio.stories.d.ts → carousel/carousel-workportfolio.stories.d.ts} +1 -1
- package/dist/types/stories/carousel/carousel-workportfolio.stories.d.ts.map +1 -0
- package/dist/types/stories/{carousel.stories.d.ts → carousel/carousel.stories.d.ts} +1 -1
- package/dist/types/stories/carousel/carousel.stories.d.ts.map +1 -0
- package/dist/types/stories/{tiles.stories.d.ts → carousel/tiles.stories.d.ts} +1 -1
- package/dist/types/stories/carousel/tiles.stories.d.ts.map +1 -0
- package/dist/types/stories/{cms.contentful.item.stories.d.ts → cms/contentful.item.stories.d.ts} +2 -2
- package/dist/types/stories/cms/contentful.item.stories.d.ts.map +1 -0
- package/dist/types/stories/{cms.contentful.items.stories.d.ts → cms/contentful.items.stories.d.ts} +2 -2
- package/dist/types/stories/cms/contentful.items.stories.d.ts.map +1 -0
- package/dist/types/stories/{cms.contentful.stories.d.ts → cms/contentful.stories.d.ts} +2 -2
- package/dist/types/stories/cms/contentful.stories.d.ts.map +1 -0
- package/dist/types/stories/{cms.google.reviews.stories.d.ts → cms/google.reviews.stories.d.ts} +2 -2
- package/dist/types/stories/cms/google.reviews.stories.d.ts.map +1 -0
- package/dist/types/stories/{cms.gravatar.stories.d.ts → cms/gravatar.stories.d.ts} +2 -2
- package/dist/types/stories/cms/gravatar.stories.d.ts.map +1 -0
- package/dist/types/stories/{cms.instagram.stories.d.ts → cms/instagram.stories.d.ts} +2 -2
- package/dist/types/stories/cms/instagram.stories.d.ts.map +1 -0
- package/dist/types/stories/cms/wordpress.stories.d.ts +9 -0
- package/dist/types/stories/cms/wordpress.stories.d.ts.map +1 -0
- package/dist/types/stories/{general.headers.stories.d.ts → general/headers.stories.d.ts} +5 -5
- package/dist/types/stories/general/headers.stories.d.ts.map +1 -0
- package/dist/types/stories/{layout.stories.d.ts → general/layout.stories.d.ts} +1 -1
- package/dist/types/stories/general/layout.stories.d.ts.map +1 -0
- package/dist/types/stories/{general.loading.stories.d.ts → general/loading.stories.d.ts} +2 -2
- package/dist/types/stories/general/loading.stories.d.ts.map +1 -0
- package/dist/types/stories/{general.microinteractions.stories.d.ts → general/microinteractions.stories.d.ts} +2 -2
- package/dist/types/stories/general/microinteractions.stories.d.ts.map +1 -0
- package/dist/types/stories/{general.modal.stories.d.ts → general/modal.stories.d.ts} +2 -2
- package/dist/types/stories/general/modal.stories.d.ts.map +1 -0
- package/dist/types/stories/{sidepanel.stories.d.ts → general/sidepanel.stories.d.ts} +1 -1
- package/dist/types/stories/general/sidepanel.stories.d.ts.map +1 -0
- package/dist/types/stories/{general.table.stories.d.ts → general/table.stories.d.ts} +3 -3
- package/dist/types/stories/general/table.stories.d.ts.map +1 -0
- package/dist/types/stories/{menu-accordion.stories.d.ts → menu/menu-accordion.stories.d.ts} +1 -1
- package/dist/types/stories/menu/menu-accordion.stories.d.ts.map +1 -0
- package/dist/types/stories/{menu-simple.stories.d.ts → menu/menu-simple.stories.d.ts} +1 -1
- package/dist/types/stories/menu/menu-simple.stories.d.ts.map +1 -0
- package/dist/types/stories/nerdjoke.stories.d.ts +1 -1
- package/dist/types/stories/nerdjoke.stories.d.ts.map +1 -1
- package/dist/types/stories/{pagebuilder.form-builder.stories.d.ts → pagebuilder/form-builder.stories.d.ts} +2 -2
- package/dist/types/stories/pagebuilder/form-builder.stories.d.ts.map +1 -0
- package/dist/types/stories/{pagebuilder.form-engine.stories.d.ts → pagebuilder/form-engine.stories.d.ts} +3 -3
- package/dist/types/stories/pagebuilder/form-engine.stories.d.ts.map +1 -0
- package/dist/types/stories/{pagebuilder.form-extractor.stories.d.ts → pagebuilder/form-extractor.stories.d.ts} +2 -2
- package/dist/types/stories/pagebuilder/form-extractor.stories.d.ts.map +1 -0
- package/dist/types/stories/{pagebuilder.stories.d.ts → pagebuilder/pagebuilder.stories.d.ts} +1 -1
- package/dist/types/stories/pagebuilder/pagebuilder.stories.d.ts.map +1 -0
- package/dist/types/stories/{pagebuilder.usageguide.stories.d.ts → pagebuilder/pagebuilder.usageguide.stories.d.ts} +1 -1
- package/dist/types/stories/pagebuilder/pagebuilder.usageguide.stories.d.ts.map +1 -0
- package/dist/types/stories/{pageengine.stories.d.ts → pagebuilder/pageengine.stories.d.ts} +1 -1
- package/dist/types/stories/pagebuilder/pageengine.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo.404.stories.d.ts → seo/seo.404.stories.d.ts} +1 -1
- package/dist/types/stories/seo/seo.404.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo.googleanalytics.stories.d.ts → seo/seo.googleanalytics.stories.d.ts} +1 -1
- package/dist/types/stories/seo/seo.googleanalytics.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo.googlesearch.stories.d.ts → seo/seo.googlesearch.stories.d.ts} +1 -1
- package/dist/types/stories/seo/seo.googlesearch.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo.metadata.stories.d.ts → seo/seo.metadata.stories.d.ts} +2 -2
- package/dist/types/stories/seo/seo.metadata.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo.sitemap.stories.d.ts → seo/seo.sitemap.stories.d.ts} +1 -1
- package/dist/types/stories/seo/seo.sitemap.stories.d.ts.map +1 -0
- package/dist/types/stories/{shoppingcart.ebay.item.stories.d.ts → shoppingcart/shoppingcart.ebay.item.stories.d.ts} +1 -1
- package/dist/types/stories/shoppingcart/shoppingcart.ebay.item.stories.d.ts.map +1 -0
- package/dist/types/stories/{shoppingcart.ebay.items.stories.d.ts → shoppingcart/shoppingcart.ebay.items.stories.d.ts} +1 -1
- package/dist/types/stories/shoppingcart/shoppingcart.ebay.items.stories.d.ts.map +1 -0
- package/dist/types/stories/shoppingcart/shoppingcart.stories.d.ts.map +1 -0
- package/dist/types/stories/{buzzword-bingo.stories.d.ts → structured/buzzword-bingo.stories.d.ts} +2 -2
- package/dist/types/stories/structured/buzzword-bingo.stories.d.ts.map +1 -0
- package/dist/types/stories/{markdown.stories.d.ts → structured/markdown.stories.d.ts} +1 -1
- package/dist/types/stories/structured/markdown.stories.d.ts.map +1 -0
- package/dist/types/stories/{recipe.stories.d.ts → structured/recipe.stories.d.ts} +2 -2
- package/dist/types/stories/structured/recipe.stories.d.ts.map +1 -0
- package/dist/types/stories/{resume.stories.d.ts → structured/resume.stories.d.ts} +1 -1
- package/dist/types/stories/{resume.stories.d.ts.map → structured/resume.stories.d.ts.map} +1 -1
- package/dist/types/stories/{socialcard.stories.d.ts → structured/socialcard.stories.d.ts} +1 -1
- package/dist/types/stories/structured/socialcard.stories.d.ts.map +1 -0
- package/dist/types/stories/{timeline.stories.d.ts → structured/timeline.stories.d.ts} +1 -1
- package/dist/types/stories/structured/timeline.stories.d.ts.map +1 -0
- package/package.json +9 -6
- package/dist/components/general/headers.css +0 -16
- package/dist/components/general/headers.js +0 -27
- package/dist/components/general/layout.js +0 -147
- package/dist/components/general/layout.scss +0 -47
- package/dist/types/components/buzzwordbingo/buzzwordbingo.d.ts.map +0 -1
- package/dist/types/components/general/headers.d.ts +0 -19
- package/dist/types/components/general/headers.d.ts.map +0 -1
- package/dist/types/components/general/layout.d.ts +0 -73
- package/dist/types/components/general/layout.d.ts.map +0 -1
- package/dist/types/components/linkedin/pixelated.linkedin.d.ts.map +0 -1
- package/dist/types/components/linkedin/pixelated.linkedin1.d.ts.map +0 -1
- package/dist/types/components/linkedin/pixelated.linkedin2.d.ts.map +0 -1
- package/dist/types/components/markdown/markdown.d.ts.map +0 -1
- package/dist/types/components/recipe/recipe.d.ts.map +0 -1
- package/dist/types/components/resume/resume.d.ts.map +0 -1
- package/dist/types/components/sidepanel/sidepanel.d.ts.map +0 -1
- package/dist/types/components/tiles/tiles.d.ts.map +0 -1
- package/dist/types/components/timeline/timeline.d.ts.map +0 -1
- package/dist/types/components/yelp/yelp.d.ts.map +0 -1
- package/dist/types/stories/buzzword-bingo.stories.d.ts.map +0 -1
- package/dist/types/stories/callout.many.stories.d.ts.map +0 -1
- package/dist/types/stories/callout.stories.d.ts.map +0 -1
- package/dist/types/stories/carousel-hero.stories.d.ts.map +0 -1
- package/dist/types/stories/carousel-reviews.stories.d.ts.map +0 -1
- package/dist/types/stories/carousel-workportfolio.stories.d.ts.map +0 -1
- package/dist/types/stories/carousel.stories.d.ts.map +0 -1
- package/dist/types/stories/cms.contentful.item.stories.d.ts.map +0 -1
- package/dist/types/stories/cms.contentful.items.stories.d.ts.map +0 -1
- package/dist/types/stories/cms.contentful.stories.d.ts.map +0 -1
- package/dist/types/stories/cms.google.reviews.stories.d.ts.map +0 -1
- package/dist/types/stories/cms.gravatar.stories.d.ts.map +0 -1
- package/dist/types/stories/cms.instagram.stories.d.ts.map +0 -1
- package/dist/types/stories/cms.wordpress.stories.d.ts +0 -26
- package/dist/types/stories/cms.wordpress.stories.d.ts.map +0 -1
- package/dist/types/stories/general.headers.stories.d.ts.map +0 -1
- package/dist/types/stories/general.loading.stories.d.ts.map +0 -1
- package/dist/types/stories/general.microinteractions.stories.d.ts.map +0 -1
- package/dist/types/stories/general.modal.stories.d.ts.map +0 -1
- package/dist/types/stories/general.table.stories.d.ts.map +0 -1
- package/dist/types/stories/layout.stories.d.ts.map +0 -1
- package/dist/types/stories/markdown.stories.d.ts.map +0 -1
- package/dist/types/stories/menu-accordion.stories.d.ts.map +0 -1
- package/dist/types/stories/menu-simple.stories.d.ts.map +0 -1
- package/dist/types/stories/pagebuilder.form-builder.stories.d.ts.map +0 -1
- package/dist/types/stories/pagebuilder.form-engine.stories.d.ts.map +0 -1
- package/dist/types/stories/pagebuilder.form-extractor.stories.d.ts.map +0 -1
- package/dist/types/stories/pagebuilder.stories.d.ts.map +0 -1
- package/dist/types/stories/pagebuilder.usageguide.stories.d.ts.map +0 -1
- package/dist/types/stories/pageengine.stories.d.ts.map +0 -1
- package/dist/types/stories/recipe.stories.d.ts.map +0 -1
- package/dist/types/stories/seo.404.stories.d.ts.map +0 -1
- package/dist/types/stories/seo.googleanalytics.stories.d.ts.map +0 -1
- package/dist/types/stories/seo.googlesearch.stories.d.ts.map +0 -1
- package/dist/types/stories/seo.metadata.stories.d.ts.map +0 -1
- package/dist/types/stories/seo.sitemap.stories.d.ts.map +0 -1
- package/dist/types/stories/shoppingcart.ebay.item.stories.d.ts.map +0 -1
- package/dist/types/stories/shoppingcart.ebay.items.stories.d.ts.map +0 -1
- package/dist/types/stories/shoppingcart.stories.d.ts.map +0 -1
- package/dist/types/stories/sidepanel.stories.d.ts.map +0 -1
- package/dist/types/stories/socialcard.stories.d.ts.map +0 -1
- package/dist/types/stories/tiles.stories.d.ts.map +0 -1
- package/dist/types/stories/timeline.stories.d.ts.map +0 -1
- package/dist/components/{linkedin → cms}/pixelated.linkedin.js +0 -0
- package/dist/components/{linkedin → cms}/pixelated.linkedin1.js +0 -0
- package/dist/components/{linkedin → cms}/pixelated.linkedin2.js +0 -0
- package/dist/components/{yelp → cms}/yelp.js +0 -0
- package/dist/components/{sidepanel → general}/sidepanel.css +0 -0
- package/dist/components/{sidepanel → general}/sidepanel.js +0 -0
- package/dist/components/{buzzwordbingo → structured}/buzzwordbingo.css +0 -0
- package/dist/components/{buzzwordbingo → structured}/buzzwordbingo.js +1 -1
- package/dist/components/{markdown → structured}/markdown.css +0 -0
- package/dist/components/{markdown → structured}/markdown.js +0 -0
- package/dist/components/{recipe → structured}/recipe.css +0 -0
- package/dist/components/{recipe → structured}/recipe.js +0 -0
- package/dist/components/{socialcard → structured}/socialcard.css +0 -0
- package/dist/components/{socialcard → structured}/socialcard.js +1 -1
- /package/dist/types/components/{linkedin → cms}/pixelated.linkedin.d.ts +0 -0
- /package/dist/types/components/{linkedin → cms}/pixelated.linkedin1.d.ts +0 -0
- /package/dist/types/components/{linkedin → cms}/pixelated.linkedin2.d.ts +0 -0
- /package/dist/types/components/{yelp → cms}/yelp.d.ts +0 -0
- /package/dist/types/components/{sidepanel → general}/sidepanel.d.ts +0 -0
- /package/dist/types/components/{markdown → structured}/markdown.d.ts +0 -0
- /package/dist/types/components/{recipe → structured}/recipe.d.ts +0 -0
- /package/dist/types/stories/{callout.many.stories.d.ts → callout/callout.many.stories.d.ts} +0 -0
- /package/dist/types/stories/{shoppingcart.stories.d.ts → shoppingcart/shoppingcart.stories.d.ts} +0 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
4
|
+
import PropTypes from "prop-types";
|
|
5
|
+
import { usePixelatedConfig } from "../config/config.client";
|
|
6
|
+
import { SmartImage } from "../cms/cloudinary.image";
|
|
7
|
+
import "../../css/pixelated.grid.scss";
|
|
8
|
+
import "./semantic.scss";
|
|
9
|
+
/* ========== LAYOUT COMPONENTS ==========
|
|
10
|
+
Reusable, scalable layout components for grid and flex layouts.
|
|
11
|
+
These components can be used in the pagebuilder to create
|
|
12
|
+
responsive, customizable page sections. */
|
|
13
|
+
// Define option arrays - used by both PropTypes and form generation
|
|
14
|
+
export const layoutTypes = ['grid', 'flex', 'none'];
|
|
15
|
+
export const autoFlowValues = ['row', 'column', 'dense', 'row dense', 'column dense'];
|
|
16
|
+
export const justifyItemsValues = ['start', 'center', 'end', 'stretch'];
|
|
17
|
+
export const flexDirections = ['row', 'column', 'row-reverse', 'column-reverse'];
|
|
18
|
+
export const flexWraps = ['nowrap', 'wrap', 'wrap-reverse'];
|
|
19
|
+
export const justifyContentValues = ['start', 'center', 'end', 'space-between', 'space-around', 'space-evenly'];
|
|
20
|
+
export const alignItemsValues = ['start', 'center', 'end', 'stretch', 'baseline'];
|
|
21
|
+
// ========== PAGE TITLE HEADER ==========
|
|
22
|
+
PageTitleHeader.propTypes = {
|
|
23
|
+
title: PropTypes.string.isRequired,
|
|
24
|
+
url: PropTypes.string
|
|
25
|
+
};
|
|
26
|
+
export function PageTitleHeader({ title, url }) {
|
|
27
|
+
const calloutTarget = url && url.substring(0, 4).toLowerCase() === 'http' ? '_blank' : '_self';
|
|
28
|
+
return (_jsx(_Fragment, { children: url
|
|
29
|
+
? _jsx("a", { href: url, target: calloutTarget, rel: "noopener noreferrer", children: _jsx("h1", { className: "page-title-header", children: title }) })
|
|
30
|
+
: _jsx("h1", { className: "page-title-header", children: title }) }));
|
|
31
|
+
}
|
|
32
|
+
;
|
|
33
|
+
// ========== PAGE SECTION ==========
|
|
34
|
+
PageSection.propTypes = {
|
|
35
|
+
id: PropTypes.string,
|
|
36
|
+
className: PropTypes.string,
|
|
37
|
+
layoutType: PropTypes.oneOf([...layoutTypes]),
|
|
38
|
+
// Common props
|
|
39
|
+
gap: PropTypes.string,
|
|
40
|
+
maxWidth: PropTypes.string,
|
|
41
|
+
padding: PropTypes.string,
|
|
42
|
+
background: PropTypes.string,
|
|
43
|
+
backgroundImage: PropTypes.string,
|
|
44
|
+
// Grid-specific props
|
|
45
|
+
columns: PropTypes.number,
|
|
46
|
+
autoFlow: PropTypes.oneOf([...autoFlowValues]),
|
|
47
|
+
justifyItems: PropTypes.oneOf([...justifyItemsValues]),
|
|
48
|
+
responsive: PropTypes.shape({
|
|
49
|
+
mobile: PropTypes.number,
|
|
50
|
+
tablet: PropTypes.number,
|
|
51
|
+
desktop: PropTypes.number,
|
|
52
|
+
}),
|
|
53
|
+
// Flex-specific props
|
|
54
|
+
direction: PropTypes.oneOf([...flexDirections]),
|
|
55
|
+
wrap: PropTypes.oneOf([...flexWraps]),
|
|
56
|
+
justifyContent: PropTypes.oneOf([...justifyContentValues]),
|
|
57
|
+
// Shared alignment
|
|
58
|
+
alignItems: PropTypes.oneOf([...alignItemsValues]),
|
|
59
|
+
children: PropTypes.node,
|
|
60
|
+
};
|
|
61
|
+
export function PageSection({ id, className, layoutType = 'grid', gap = '10px', maxWidth = '1024px', padding = '0 20px', /* 5px */ background, backgroundImage,
|
|
62
|
+
// Grid props
|
|
63
|
+
columns = 12, autoFlow = 'row', justifyItems = 'stretch',
|
|
64
|
+
// responsive = { mobile: 1, tablet: 2, desktop: 3 },
|
|
65
|
+
// Flex props
|
|
66
|
+
direction = 'row', wrap = 'wrap', justifyContent = 'start',
|
|
67
|
+
// Shared
|
|
68
|
+
alignItems = 'stretch', children, }) {
|
|
69
|
+
const sectionStyle = {
|
|
70
|
+
...(background && { background }),
|
|
71
|
+
};
|
|
72
|
+
const contentStyle = {
|
|
73
|
+
...(maxWidth && { maxWidth }),
|
|
74
|
+
margin: '0 auto',
|
|
75
|
+
...(padding && { padding }),
|
|
76
|
+
};
|
|
77
|
+
// Add layout-specific styles
|
|
78
|
+
if (layoutType === 'grid') {
|
|
79
|
+
return (_jsxs("section", { id: id || undefined, className: "page-section" + (className ? ` ${className}` : ''), style: sectionStyle, children: [backgroundImage && _jsx(PageSectionBackgroundImage, { backgroundImage: backgroundImage, id: id }), _jsx("div", { className: "page-section-content" + " row-" + columns + "col", style: {
|
|
80
|
+
...contentStyle,
|
|
81
|
+
...(gap && { gap }),
|
|
82
|
+
...(autoFlow && { gridAutoFlow: autoFlow }),
|
|
83
|
+
...(alignItems && { alignItems }),
|
|
84
|
+
...(justifyItems && { justifyItems }),
|
|
85
|
+
}, children: children })] }));
|
|
86
|
+
}
|
|
87
|
+
if (layoutType === 'flex') {
|
|
88
|
+
return (_jsxs("section", { id: id || undefined, className: "page-section page-section-flex", style: sectionStyle, children: [backgroundImage && _jsx(PageSectionBackgroundImage, { backgroundImage: backgroundImage, id: id }), _jsx("div", { className: "page-section-content", style: {
|
|
89
|
+
...contentStyle,
|
|
90
|
+
display: 'flex',
|
|
91
|
+
...(direction && { flexDirection: direction }),
|
|
92
|
+
...(wrap && { flexWrap: wrap }),
|
|
93
|
+
...(gap && { gap }),
|
|
94
|
+
...(alignItems && { alignItems: alignItems }),
|
|
95
|
+
...(justifyContent && { justifyContent: justifyContent }),
|
|
96
|
+
}, children: children })] }));
|
|
97
|
+
}
|
|
98
|
+
// layoutType === 'none'
|
|
99
|
+
return (_jsxs("section", { id: id || undefined, className: "page-section page-section-none", style: sectionStyle, children: [backgroundImage && _jsx(PageSectionBackgroundImage, { backgroundImage: backgroundImage, id: id }), _jsx("div", { className: "page-section-content", style: contentStyle, children: children })] }));
|
|
100
|
+
}
|
|
101
|
+
// ========== PAGE SECTION HEADER ==========
|
|
102
|
+
PageSectionHeader.propTypes = {
|
|
103
|
+
title: PropTypes.string.isRequired,
|
|
104
|
+
url: PropTypes.string
|
|
105
|
+
};
|
|
106
|
+
export function PageSectionHeader({ title, url }) {
|
|
107
|
+
const calloutTarget = url && url.substring(0, 4).toLowerCase() === 'http' ? '_blank' : '_self';
|
|
108
|
+
return (_jsx(_Fragment, { children: url
|
|
109
|
+
? _jsx("a", { href: url, target: calloutTarget, rel: "noopener noreferrer", children: _jsx("h2", { className: "page-section-header", children: title }) })
|
|
110
|
+
: _jsx("h2", { className: "page-section-header", children: title }) }));
|
|
111
|
+
}
|
|
112
|
+
;
|
|
113
|
+
// ========== PAGE SECTION BACKGROUND IMAGE ==========
|
|
114
|
+
PageSectionBackgroundImage.propTypes = {
|
|
115
|
+
backgroundImage: PropTypes.string.isRequired,
|
|
116
|
+
id: PropTypes.string,
|
|
117
|
+
};
|
|
118
|
+
export function PageSectionBackgroundImage(props) {
|
|
119
|
+
const config = usePixelatedConfig();
|
|
120
|
+
return (_jsx(_Fragment, { children: _jsx(SmartImage, { src: props.backgroundImage, className: "section-background-image", id: props.id ? `${props.id}-background-image` : undefined,
|
|
121
|
+
// name={props.id ? `${props.id} background image` : undefined}
|
|
122
|
+
title: props.id ? `${props.id} background image` : undefined, alt: props.id ? `${props.id} background image` : "", cloudinaryEnv: config?.cloudinary?.product_env ?? undefined, cloudinaryDomain: config?.cloudinary?.baseUrl ?? undefined, cloudinaryTransforms: config?.cloudinary?.transforms ?? undefined }) }));
|
|
123
|
+
}
|
|
124
|
+
// ========== GRID ITEM ==========
|
|
125
|
+
PageGridItem.propTypes = {
|
|
126
|
+
id: PropTypes.string,
|
|
127
|
+
className: PropTypes.string,
|
|
128
|
+
columnSpan: PropTypes.number,
|
|
129
|
+
rowSpan: PropTypes.number,
|
|
130
|
+
columnStart: PropTypes.number,
|
|
131
|
+
columnEnd: PropTypes.number,
|
|
132
|
+
rowStart: PropTypes.number,
|
|
133
|
+
rowEnd: PropTypes.number,
|
|
134
|
+
alignSelf: PropTypes.oneOf(['start', 'center', 'end', 'stretch']),
|
|
135
|
+
justifySelf: PropTypes.oneOf(['start', 'center', 'end', 'stretch']),
|
|
136
|
+
children: PropTypes.node,
|
|
137
|
+
};
|
|
138
|
+
export function PageGridItem({ id, className, columnSpan, rowSpan, columnStart, columnEnd, rowStart, rowEnd, alignSelf, justifySelf, children, }) {
|
|
139
|
+
const itemStyle = {
|
|
140
|
+
...(columnSpan && !columnStart && { gridColumn: ` span ${columnSpan}` }),
|
|
141
|
+
// columnStart && columnSpan = style grid-s##-w##
|
|
142
|
+
// columnStart && columnEnd = style grid-s##-e##
|
|
143
|
+
// ...(columnStart && columnEnd && { gridColumn: ` ${columnStart} / ${columnEnd}` }),
|
|
144
|
+
...(rowSpan && { gridRow: ` span ${rowSpan}` }),
|
|
145
|
+
...(rowStart && rowEnd && { gridRow: ` ${rowStart} / ${rowEnd}` }),
|
|
146
|
+
...(alignSelf && { alignSelf }),
|
|
147
|
+
...(justifySelf && { justifySelf }),
|
|
148
|
+
};
|
|
149
|
+
return (
|
|
150
|
+
/* THIS IS AN OLD STYLE */
|
|
151
|
+
/* <div className={"grid-item" + */
|
|
152
|
+
_jsx("div", { className: "gridItem" +
|
|
153
|
+
(className ? ` ${className}` : '') +
|
|
154
|
+
(columnStart && columnSpan && !columnEnd ? ` grid-s${columnStart}-w${columnSpan}` : '') +
|
|
155
|
+
(columnStart && columnEnd && !columnSpan ? ` grid-s${columnStart}-e${columnEnd}` : ''), id: (id) ? id : undefined, style: itemStyle, children: children }));
|
|
156
|
+
}
|
|
157
|
+
// ========== FLEX ITEM ==========
|
|
158
|
+
PageFlexItem.propTypes = {
|
|
159
|
+
flex: PropTypes.string,
|
|
160
|
+
order: PropTypes.number,
|
|
161
|
+
alignSelf: PropTypes.oneOf(['auto', 'start', 'center', 'end', 'stretch', 'baseline']),
|
|
162
|
+
children: PropTypes.node,
|
|
163
|
+
};
|
|
164
|
+
export function PageFlexItem({ flex = '1', order, alignSelf, children, }) {
|
|
165
|
+
const itemStyle = {
|
|
166
|
+
...(flex && { flex }),
|
|
167
|
+
...(order !== undefined && order !== null && { order }),
|
|
168
|
+
...(alignSelf && { alignSelf: alignSelf }),
|
|
169
|
+
};
|
|
170
|
+
return (_jsx("div", { className: "flex-item", style: itemStyle, children: children }));
|
|
171
|
+
}
|
|
172
|
+
// ========== PAGE LINK ==========
|
|
173
|
+
const pageLinkShape = PropTypes.shape({
|
|
174
|
+
label: PropTypes.string.isRequired,
|
|
175
|
+
href: PropTypes.string.isRequired,
|
|
176
|
+
target: PropTypes.oneOf(["_self", "_blank"]),
|
|
177
|
+
});
|
|
178
|
+
// ========== PAGE HEADER ==========
|
|
179
|
+
PageHeader.propTypes = {
|
|
180
|
+
className: PropTypes.string,
|
|
181
|
+
eyebrow: PropTypes.string,
|
|
182
|
+
headline: PropTypes.string,
|
|
183
|
+
description: PropTypes.string,
|
|
184
|
+
ctaLabel: PropTypes.string,
|
|
185
|
+
ctaHref: PropTypes.string,
|
|
186
|
+
ctaTarget: PropTypes.oneOf(["_self", "_blank"]),
|
|
187
|
+
children: PropTypes.node,
|
|
188
|
+
fixed: PropTypes.bool,
|
|
189
|
+
};
|
|
190
|
+
export function PageHeader({ className, eyebrow, headline, description, ctaLabel, ctaHref, ctaTarget, children, fixed = false, }) {
|
|
191
|
+
const resolvedTarget = ctaTarget ?? (ctaHref && ctaHref.startsWith("http") ? "_blank" : "_self");
|
|
192
|
+
const rel = resolvedTarget === "_blank" ? "noopener noreferrer" : undefined;
|
|
193
|
+
const headerRef = useRef(null);
|
|
194
|
+
const [spacerHeight, setSpacerHeight] = useState(undefined);
|
|
195
|
+
useLayoutEffect(() => {
|
|
196
|
+
if (!fixed) {
|
|
197
|
+
setSpacerHeight(undefined);
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
const updateHeight = () => {
|
|
201
|
+
if (!headerRef.current) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
setSpacerHeight(headerRef.current.getBoundingClientRect().height);
|
|
205
|
+
};
|
|
206
|
+
updateHeight();
|
|
207
|
+
window.addEventListener("resize", updateHeight);
|
|
208
|
+
return () => window.removeEventListener("resize", updateHeight);
|
|
209
|
+
}, [fixed, eyebrow, headline, description, ctaLabel, ctaHref]);
|
|
210
|
+
const spacerStyle = spacerHeight !== undefined ? { height: `${spacerHeight}px` } : undefined;
|
|
211
|
+
const headerClasses = `page-header${className ? ` ${className}` : ""}${fixed ? " fixed-header" : ""}`;
|
|
212
|
+
return (_jsxs(_Fragment, { children: [fixed && (_jsx("div", { className: "page-header-spacer", "aria-hidden": "true", style: spacerStyle })), _jsxs("header", { ref: headerRef, className: headerClasses, children: [eyebrow && _jsx("p", { className: "page-header-eyebrow", children: eyebrow }), headline && _jsx("h1", { children: headline }), description && _jsx("p", { className: "page-header-description", children: description }), ctaLabel && ctaHref && (_jsx("a", { className: "page-header-cta", href: ctaHref, target: resolvedTarget, rel: rel, children: ctaLabel })), children] })] }));
|
|
213
|
+
}
|
|
214
|
+
// ========== PAGE HERO ==========
|
|
215
|
+
PageHero.propTypes = {
|
|
216
|
+
id: PropTypes.string,
|
|
217
|
+
className: PropTypes.string,
|
|
218
|
+
background: PropTypes.string,
|
|
219
|
+
backgroundImage: PropTypes.string,
|
|
220
|
+
children: PropTypes.node,
|
|
221
|
+
};
|
|
222
|
+
export function PageHero({ id, className, background, backgroundImage, children, }) {
|
|
223
|
+
const wrapperStyle = {
|
|
224
|
+
...(background && { background }),
|
|
225
|
+
};
|
|
226
|
+
return (_jsxs("section", { id: id || undefined, className: `page-hero${className ? ` ${className}` : ""}`, style: wrapperStyle, children: [backgroundImage && _jsx(PageSectionBackgroundImage, { backgroundImage: backgroundImage, id: id }), _jsx("div", { className: "page-hero-content", children: children })] }));
|
|
227
|
+
}
|
|
228
|
+
// ========== PAGE MAIN ==========
|
|
229
|
+
PageMain.propTypes = {
|
|
230
|
+
id: PropTypes.string,
|
|
231
|
+
className: PropTypes.string,
|
|
232
|
+
maxWidth: PropTypes.string,
|
|
233
|
+
padding: PropTypes.string,
|
|
234
|
+
children: PropTypes.node,
|
|
235
|
+
};
|
|
236
|
+
export function PageMain({ id, className, maxWidth = "1200px", padding = "0 20px 60px", children, }) {
|
|
237
|
+
const layoutStyle = {
|
|
238
|
+
...(maxWidth && { maxWidth }),
|
|
239
|
+
...(padding && { padding }),
|
|
240
|
+
};
|
|
241
|
+
return (_jsx("main", { id: id || undefined, className: `page-main${className ? ` ${className}` : ""}`, style: layoutStyle, children: children }));
|
|
242
|
+
}
|
|
243
|
+
// ========== PAGE NAV ==========
|
|
244
|
+
PageNav.propTypes = {
|
|
245
|
+
className: PropTypes.string,
|
|
246
|
+
orientation: PropTypes.oneOf(["horizontal", "vertical"]),
|
|
247
|
+
links: PropTypes.arrayOf(pageLinkShape),
|
|
248
|
+
};
|
|
249
|
+
export function PageNav({ className, orientation = "horizontal", links, }) {
|
|
250
|
+
const resolvedLinks = Array.isArray(links)
|
|
251
|
+
? links.filter(Boolean)
|
|
252
|
+
: [];
|
|
253
|
+
if (!resolvedLinks.length) {
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
return (_jsx("nav", { className: `page-nav page-nav-${orientation}` + (className ? ` ${className}` : ""), children: resolvedLinks.map((link) => {
|
|
257
|
+
const target = link.target ?? (link.href.startsWith("http") ? "_blank" : "_self");
|
|
258
|
+
const rel = target === "_blank" ? "noopener noreferrer" : undefined;
|
|
259
|
+
return (_jsx("a", { href: link.href, target: target, rel: rel, children: link.label }, `${link.href}-${link.label}`));
|
|
260
|
+
}) }));
|
|
261
|
+
}
|
|
262
|
+
// ========== PAGE FOOTER ==========
|
|
263
|
+
PageFooter.propTypes = {
|
|
264
|
+
className: PropTypes.string,
|
|
265
|
+
text: PropTypes.string,
|
|
266
|
+
links: PropTypes.arrayOf(pageLinkShape),
|
|
267
|
+
children: PropTypes.node,
|
|
268
|
+
};
|
|
269
|
+
export function PageFooter({ className, text, links, children, }) {
|
|
270
|
+
const resolvedLinks = Array.isArray(links)
|
|
271
|
+
? links.filter(Boolean)
|
|
272
|
+
: [];
|
|
273
|
+
const hasLinks = resolvedLinks.length > 0;
|
|
274
|
+
if (!text && !hasLinks && !children) {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
return (_jsxs("footer", { className: `page-footer${className ? ` ${className}` : ""}`, children: [text && _jsx("p", { className: "page-footer-text", children: text }), hasLinks && (_jsx("div", { className: "page-footer-links", children: resolvedLinks.map((link) => {
|
|
278
|
+
const target = link.target ?? (link.href.startsWith("http") ? "_blank" : "_self");
|
|
279
|
+
const rel = target === "_blank" ? "noopener noreferrer" : undefined;
|
|
280
|
+
return (_jsx("a", { href: link.href, target: target, rel: rel, children: link.label }, `${link.href}-${link.label}`));
|
|
281
|
+
}) })), children] }));
|
|
282
|
+
}
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
/* ========================================
|
|
2
|
+
========= LAYOUT COMPONENTS =========
|
|
3
|
+
======================================== */
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/* ========================================
|
|
8
|
+
=========== TEXT HEADERS ===========
|
|
9
|
+
======================================== */
|
|
10
|
+
|
|
11
|
+
.page-title-header {
|
|
12
|
+
display: block;
|
|
13
|
+
font-size: var(--font-size1, 2em);
|
|
14
|
+
font-variant-caps: small-caps;
|
|
15
|
+
font-variant: small-caps;
|
|
16
|
+
text-align: center;
|
|
17
|
+
font-weight: 800;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
.page-section-header {
|
|
22
|
+
display: block;
|
|
23
|
+
font-size: var(--font-size2, 1.65em);
|
|
24
|
+
text-align: center;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
margin: 20px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
/* ========================================
|
|
33
|
+
=========== PAGE SECTION ===========
|
|
34
|
+
======================================== */
|
|
35
|
+
|
|
36
|
+
section {
|
|
37
|
+
position: relative;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
/* margin-bottom: 50px; */
|
|
40
|
+
padding: 30px 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
section.page-section {
|
|
44
|
+
position: relative;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
/* margin-bottom: 50px; */
|
|
47
|
+
padding: 0 0 30px 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.section-container {
|
|
51
|
+
margin: 0px auto;
|
|
52
|
+
padding: 0px 5px;
|
|
53
|
+
/* max-width: 1280px; */
|
|
54
|
+
max-width: 1024px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media screen and (max-width: 480px) {
|
|
58
|
+
.section-container {
|
|
59
|
+
padding: 0px 20px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/* section:first-of-type .page-section {
|
|
65
|
+
padding: 30px 0;
|
|
66
|
+
} */
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/* ========================================
|
|
70
|
+
=========== PAGE HERO ============
|
|
71
|
+
======================================== */
|
|
72
|
+
|
|
73
|
+
.page-hero {
|
|
74
|
+
position: relative;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
min-height: 320px;
|
|
77
|
+
padding: 4rem 1.5rem;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
background: #0f172a;
|
|
82
|
+
color: #f8fafc;
|
|
83
|
+
text-align: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.page-hero::before {
|
|
87
|
+
content: "";
|
|
88
|
+
position: absolute;
|
|
89
|
+
left: 0;
|
|
90
|
+
top: 0;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
background: linear-gradient(180deg, rgba(15,23,42,0.8), rgba(15,23,42,0.95));
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
z-index: 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
#page-hero {
|
|
99
|
+
background-color: var(--accent2-color);
|
|
100
|
+
border: 1px solid #AAA;
|
|
101
|
+
height: 150px;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
position: relative;
|
|
104
|
+
z-index: 5;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media screen and (max-width: 480px) {
|
|
108
|
+
#page-hero {
|
|
109
|
+
height: 125px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
#page-hero-overlay {
|
|
114
|
+
background: rgba(240,240,240,0.5);
|
|
115
|
+
font-size: 1.2em;
|
|
116
|
+
padding: 10px 0;
|
|
117
|
+
position: absolute;
|
|
118
|
+
text-align: center;
|
|
119
|
+
top: 15px;
|
|
120
|
+
z-index: 10;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media screen and (max-width: 480px) {
|
|
124
|
+
#page-hero-overlay {
|
|
125
|
+
font-size: 1.0em;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.page-hero-content {
|
|
130
|
+
position: relative;
|
|
131
|
+
z-index: 2;
|
|
132
|
+
width: 100%;
|
|
133
|
+
max-width: 1200px;
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
gap: 1rem;
|
|
137
|
+
align-items: center;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/* ========================================
|
|
142
|
+
=========== PAGE MAIN ============
|
|
143
|
+
======================================== */
|
|
144
|
+
|
|
145
|
+
main {
|
|
146
|
+
min-height: 400px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@media screen and (max-width: 480px) {
|
|
150
|
+
main {
|
|
151
|
+
/* margin-top: 10px; */
|
|
152
|
+
padding-top: 10px
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
main p {
|
|
157
|
+
margin-bottom: 20px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.page-main {
|
|
161
|
+
width: 100%;
|
|
162
|
+
margin: 0 auto;
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
max-width: 1200px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
/* Base section styles (used by `PageSection` component) */
|
|
169
|
+
.section-background-image {
|
|
170
|
+
width: 100%;
|
|
171
|
+
height: 100% !important;
|
|
172
|
+
object-fit: cover;
|
|
173
|
+
object-position: center top;
|
|
174
|
+
position: absolute;
|
|
175
|
+
opacity: 0.3;
|
|
176
|
+
z-index: -1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.page-section-content {
|
|
180
|
+
width: 100%;
|
|
181
|
+
box-sizing: border-box;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
/* ========================================
|
|
187
|
+
=========== PAGE GRID ITEM ===========
|
|
188
|
+
======================================== */
|
|
189
|
+
|
|
190
|
+
/* Grid item styles */
|
|
191
|
+
/* ALL GRID STYLES ARE IN PIXELATED.GRID.SCSS */
|
|
192
|
+
/*
|
|
193
|
+
.grid-item {
|
|
194
|
+
box-sizing: border-box;
|
|
195
|
+
display: grid ;
|
|
196
|
+
min-width: 0; // Prevents grid blowout
|
|
197
|
+
min-height: 0;
|
|
198
|
+
}
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
/* ========================================
|
|
204
|
+
========== PAGE FLEX ITEM ============
|
|
205
|
+
======================================== */
|
|
206
|
+
|
|
207
|
+
/* Flex item styles */
|
|
208
|
+
.flex-item {
|
|
209
|
+
box-sizing: border-box;
|
|
210
|
+
min-width: 0; // Prevents flex blowout
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
/* ========================================
|
|
217
|
+
============ PAGE HEADER ============
|
|
218
|
+
======================================== */
|
|
219
|
+
|
|
220
|
+
.page-header {
|
|
221
|
+
padding: 2rem;
|
|
222
|
+
background: #0f172a;
|
|
223
|
+
color: #f1f5f9;
|
|
224
|
+
margin-bottom: 1.5rem;
|
|
225
|
+
display: flex;
|
|
226
|
+
flex-direction: column;
|
|
227
|
+
gap: 0.5rem;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
#page-header {
|
|
231
|
+
background-color: var(--primary-color);
|
|
232
|
+
/* background-image: url(/images/pix/pix-bg.gif); */
|
|
233
|
+
color: white;
|
|
234
|
+
height: 60px;
|
|
235
|
+
padding: 10px 20px;
|
|
236
|
+
z-index: 2000;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
#page-header .section-container {
|
|
240
|
+
display: flex;
|
|
241
|
+
flex-wrap: wrap;
|
|
242
|
+
align-items: center;
|
|
243
|
+
justify-items: left;
|
|
244
|
+
padding: 0;
|
|
245
|
+
width: 100%;
|
|
246
|
+
height: 100%;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.fixed-header {
|
|
250
|
+
position: fixed;
|
|
251
|
+
left: 0;
|
|
252
|
+
top: 0;
|
|
253
|
+
width: 100%;
|
|
254
|
+
z-index: 1000;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.page-header.fixed-header {
|
|
258
|
+
box-shadow: 0 10px 35px rgba(15, 23, 42, 0.3);
|
|
259
|
+
background: rgba(15, 23, 42, 0.9);
|
|
260
|
+
backdrop-filter: blur(8px);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.page-header-spacer {
|
|
264
|
+
display: block;
|
|
265
|
+
width: 100%;
|
|
266
|
+
height: var(--page-header-fixed-height, 120px);
|
|
267
|
+
pointer-events: none;
|
|
268
|
+
}
|
|
269
|
+
#fixed-header-spacer {
|
|
270
|
+
margin-top: 60px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
.page-header-eyebrow {
|
|
275
|
+
text-transform: uppercase;
|
|
276
|
+
letter-spacing: 0.35em;
|
|
277
|
+
font-size: 0.65rem;
|
|
278
|
+
color: #cbd5f5;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.page-header-description {
|
|
282
|
+
line-height: 1.4;
|
|
283
|
+
opacity: 0.85;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.page-header-cta {
|
|
287
|
+
display: inline-flex;
|
|
288
|
+
align-items: center;
|
|
289
|
+
justify-content: center;
|
|
290
|
+
padding: 0.6rem 1.25rem;
|
|
291
|
+
border-radius: 999px;
|
|
292
|
+
background: #6366f1;
|
|
293
|
+
color: white;
|
|
294
|
+
font-weight: 600;
|
|
295
|
+
border: none;
|
|
296
|
+
text-decoration: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
/* ========================================
|
|
302
|
+
============= PAGE NAV ================
|
|
303
|
+
======================================== */
|
|
304
|
+
|
|
305
|
+
nav {
|
|
306
|
+
--do-nothing: true;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.page-nav {
|
|
310
|
+
display: flex;
|
|
311
|
+
gap: 0.75rem;
|
|
312
|
+
flex-wrap: wrap;
|
|
313
|
+
margin-bottom: 1rem;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.page-nav-vertical {
|
|
317
|
+
flex-direction: column;
|
|
318
|
+
align-items: flex-start;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.page-nav a {
|
|
322
|
+
color: #38bdf8;
|
|
323
|
+
font-weight: 600;
|
|
324
|
+
text-decoration: none;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
/* ========================================
|
|
330
|
+
============ PAGE FOOTER ==============
|
|
331
|
+
======================================== */
|
|
332
|
+
|
|
333
|
+
footer {
|
|
334
|
+
min-height: 50px;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.page-footer {
|
|
338
|
+
display: flex;
|
|
339
|
+
align-items: center;
|
|
340
|
+
justify-content: space-between;
|
|
341
|
+
flex-wrap: wrap;
|
|
342
|
+
gap: 1rem;
|
|
343
|
+
padding: 1.5rem 2rem;
|
|
344
|
+
border-top: 1px solid rgba(148, 163, 184, 0.4);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.page-footer-text {
|
|
348
|
+
color: #475569;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.page-footer-links {
|
|
352
|
+
display: flex;
|
|
353
|
+
gap: 1rem;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.page-footer-links a {
|
|
357
|
+
color: #1e40af;
|
|
358
|
+
font-weight: 600;
|
|
359
|
+
}
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
/* background-color: rgba(255,255,255,0.7); */
|
|
8
8
|
/* display: none; */
|
|
9
9
|
/* display: inline; */
|
|
10
|
+
|
|
11
|
+
background-color: transparent;
|
|
12
|
+
border: none;
|
|
13
|
+
|
|
10
14
|
margin: 0px 10px 0px 0px;
|
|
11
15
|
padding: 5px;
|
|
12
16
|
text-align: center;
|
|
@@ -18,6 +22,29 @@
|
|
|
18
22
|
border-radius: 5px;
|
|
19
23
|
}
|
|
20
24
|
|
|
25
|
+
|
|
26
|
+
.panelMenuButton .hamburger{
|
|
27
|
+
/* the tricks */
|
|
28
|
+
/* display: block; */
|
|
29
|
+
/* display inline-block is fine too */
|
|
30
|
+
-webkit-transform: scaleX(1.5);
|
|
31
|
+
-moz-transform: scaleX(1.5);
|
|
32
|
+
-o-transform: caleX(1.5);
|
|
33
|
+
transform: scaleX(1.5);
|
|
34
|
+
writing-mode: vertical-lr;
|
|
35
|
+
/* optional */
|
|
36
|
+
font-size: 8pt;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
font-weight: 900;
|
|
39
|
+
color: #CCC;
|
|
40
|
+
padding-top: 5px;
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
/* hamburger hover style */
|
|
44
|
+
/* .accordionMenu .hamburger:hover {
|
|
45
|
+
color: #FFC75F;
|
|
46
|
+
} */
|
|
47
|
+
|
|
21
48
|
@media screen and (max-width: 480px) {
|
|
22
49
|
.panelMenuButton {
|
|
23
50
|
display: inline;
|
|
@@ -128,27 +155,6 @@
|
|
|
128
155
|
/* background-image: url(/images/pix/pix-bg-sm-bw.gif); */
|
|
129
156
|
}
|
|
130
157
|
|
|
131
|
-
|
|
132
|
-
.panelMenuButton .hamburger{
|
|
133
|
-
/* the tricks */
|
|
134
|
-
display: block;
|
|
135
|
-
-webkit-transform: scaleX(1.75);
|
|
136
|
-
-moz-transform: scaleX(1.75);
|
|
137
|
-
-o-transform: caleX(1.75);
|
|
138
|
-
transform: scaleX(1.75);
|
|
139
|
-
writing-mode: vertical-lr;
|
|
140
|
-
transform: scaleX(1.75);
|
|
141
|
-
/* optional */
|
|
142
|
-
font-size: 8pt;
|
|
143
|
-
cursor: pointer;
|
|
144
|
-
font-weight: 900;
|
|
145
|
-
color: #CCC;
|
|
146
|
-
}
|
|
147
|
-
/* hamburger hover style */
|
|
148
|
-
/* .accordionMenu .hamburger:hover {
|
|
149
|
-
color: #FFC75F;
|
|
150
|
-
} */
|
|
151
|
-
|
|
152
158
|
/* ===== LEVEL 2 ===== */
|
|
153
159
|
|
|
154
160
|
.accordionMenu > ul > ul {
|