-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: triad logo updates #630
Conversation
|
||
export default function SearchBar() { | ||
const SearchBar: FunctionComponent = () => { | ||
const id = useId(); |
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.
since this component is rendered multiple times but display is controlled by media queries, use a randomly generated ID instead of static to avoid element ID collisions
@use "abstracts/mixins/base"; | ||
@use "abstracts/functions"; | ||
|
||
.searchBar { |
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.
start pulling SASS out of build pipeline and into modules
@@ -17,7 +18,8 @@ const filterSearchParams = (searchParams) => { | |||
return `?${filteredParams.join("&")}`; | |||
}; | |||
|
|||
export default function LanguageSelect({ id }) { | |||
export default function LanguageSelect({ className }) { | |||
const id = useId(); |
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.
same ID change here
@@ -38,6 +40,14 @@ const PageWrapper: FunctionComponent< | |||
content={footerContent} | |||
contactForm={contactForm} | |||
/> | |||
<Suspense> |
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.
moved these modals out of the header and into the general page layout
|
||
export async function getGlobalData(locale = fallbackLng) { | ||
export async function getLogos() { |
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.
extract these queries from the global fetch and context, these no longer need to be using client memory in the context since they are server rendered.
postcss.config.js
Outdated
@@ -13,7 +13,7 @@ module.exports = { | |||
[ | |||
"postcss-normalize", | |||
{ | |||
forceImport: true, | |||
allowDuplicates: false, |
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.
enables CSS modules without adding our CSS normalization to each import
bb7916e
to
f2a3a9d
Compare
Updates to the header to use the new triad logos, with updated layouts to accommodate. Also includes:
react-headroom
To test:
Desktop (>1500px, may depend on pixel density i.e. my Macbook uses the mobile display)
Mobile