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

add homepage layout and styles #30

Merged
merged 3 commits into from
Oct 16, 2023
Merged

add homepage layout and styles #30

merged 3 commits into from
Oct 16, 2023

Conversation

josuebran
Copy link
Contributor

Homepage layout

  • Page attribute: page-layout: full
  • Example astra.adoc

datastax-homepage-layout

}

/* Hide sidebar, a.anchor */
html[data-layout="landing"] .toc.sidebar,
html[data-layout="landing"] .toc.embedded,
html[data-layout="landing"] .breadcrumbs,
html[data-layout="landing"] a.anchor {
html[data-layout="landing"] a.anchor,
html[data-layout="full"] .nav-container,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can keep this as is for now since there will be a demo soon, but I'd like to see these elements not rendered with logic in the handlebars templates rather than hidden via CSS. I think having the handlebars templates act as the building blocks and rendering logic is much more organized than hiding elements like this as the css tends to get chaotic after a while and it's hard to understand why certain elements are shown/hidden. It also saves a little time on the client by simply not rendering the elements vs rendering and then hiding.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback! I noticed a few caveats with handlebars template for some js and hide it with css in the meantime. I will resolve and use handlebars templates in the next PR.

Copy link
Collaborator

@colegoldsmith colegoldsmith left a comment

Choose a reason for hiding this comment

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

Ok for now, but I'd like to see the various elements not rendered with logic in the handlebars rather than hidden with CSS. That can be done in a new branch later

@josuebran josuebran merged commit 348ee01 into main Oct 16, 2023
@josuebran josuebran deleted the homepage-layout branch October 16, 2023 21:10
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