Skip to content
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

Adds component markup for logo and dropdown menus using Strapi data for desktop #65

Merged

Conversation

rosschapman
Copy link
Collaborator

@rosschapman rosschapman commented Jul 1, 2024

This PR focuses on markup. Demo:

Monosnap.screencast.2024-07-01.13-55-44.mp4

@rosschapman rosschapman changed the title WIP Adds logo and dropdown menus for desktop Jul 1, 2024
@@ -70,7 +70,7 @@ module.exports = {
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows clever removal of properties from an object with destructuring. I'm open to debate on it, although to me it feels restricted when the intent of this type of code is quite clear. See example below.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach works for me!

Comment on lines -31 to -45
const SiteLogo = () => (
<Link className={`${styles.navLogo}`} to="/">
{/* TODO */}
[SITE LOGO HERE]
</Link>
);

const SiteLinks = () => {
return (
<div className={styles.navRight}>
<Translate />
</div>
);
};

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be worth separating these out later but I didn't see much use for this abstraction at the moment while I was rewriting things.

@rosschapman rosschapman changed the title Adds logo and dropdown menus for desktop Adds logo and dropdown menus using Strapi data for desktop Jul 1, 2024
@rosschapman rosschapman marked this pull request as ready for review July 1, 2024 20:57
@rosschapman rosschapman changed the title Adds logo and dropdown menus using Strapi data for desktop Adds component markup for logo and dropdown menus using Strapi data for desktop Jul 1, 2024
Copy link
Collaborator

@adriencyberspace adriencyberspace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -70,7 +70,7 @@ module.exports = {
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach works for me!

@rosschapman rosschapman merged commit ad188cd into OUR415-87-header-nav-base Jul 2, 2024
@rosschapman rosschapman deleted the OUR415-87-header-nav-logo-dropdown branch July 2, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants