Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Updated tachyons buttons & added video class#486

Merged
validbeck merged 32 commits intomainvalidmind/documentation:mainfrom
beck/sc-7046/investigate-using-tachyons-css-buttonsvalidmind/documentation:beck/sc-7046/investigate-using-tachyons-css-buttonsCopy head branch name to clipboard
Oct 24, 2024
Merged

Updated tachyons buttons & added video class#486
validbeck merged 32 commits intomainvalidmind/documentation:mainfrom
beck/sc-7046/investigate-using-tachyons-css-buttonsvalidmind/documentation:beck/sc-7046/investigate-using-tachyons-css-buttonsCopy head branch name to clipboard

Conversation

@validbeck
Copy link
Collaborator

@validbeck validbeck commented Oct 22, 2024

Internal Notes for Reviewers

sc-7046

LIVE PREVIEW

  • Added a regex search to confirm that URLs starting with docs.validmind.ai aren't external links & shouldn't show the icon (like for our developer reference):
    link-external-filter: '^https:\/\/(docs\.validmind\.ai|docs-staging\.validmind\.ai|docs-demo\.vm\.validmind\.ai)\/.*'
  • Updated the buttons across the site (even the index page!) to use the markdown links instead of the long terrible HTML links, allowing those links to be rendered by Quarto:
    /* Button class that can be used for links */
  • Added the same convention to the training & updated buttons in training:
    .reveal .slide .button {
  • Added the rounded corners on screenshots to training as well:
    .reveal .slide .screenshot {
  • Added a video style class & updated any videos to match; added a section to the style guide:
    .video, iframe[src*="youtube.com"] {
Training Videos
Screenshot 2024-10-22 at 4 53 43 PM Screenshot 2024-10-22 at 5 05 34 PM

@validbeck validbeck added the internal Not to be externalized in the release notes label Oct 22, 2024
@validbeck validbeck self-assigned this Oct 22, 2024
@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

1 similar comment
@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

@validbeck validbeck requested a review from nrichers October 23, 2024 00:06
@github-actions
Copy link
Contributor

PR Summary

This pull request introduces several enhancements to the documentation and styling of buttons across the site. Key changes include:

  1. Documentation Enhancements:

    • Added a new testing page buttons.qmd with links styled as buttons.
    • Updated various .qmd files to replace HTML form buttons with markdown-styled links for consistency and improved accessibility.
    • Introduced new sections in the style guide for embedding videos and handling video links.
    • Updated references and links across multiple documentation files to ensure consistency and correctness.
  2. Styling Improvements:

    • Added new CSS classes for button styling, including .index, .pink, .white, and .guides to standardize button appearances across the site.
    • Enhanced video and iframe styling with a new .video class to ensure consistent appearance and border styling.

These changes aim to improve the user experience by providing a more cohesive and accessible interface, as well as ensuring that documentation is up-to-date and easy to navigate.

Test Suggestions

  • Verify that all links styled as buttons in the documentation render correctly and are functional.
  • Check that the new button styles are applied consistently across different pages and sections.
  • Ensure that embedded videos and iframes display with the correct styling and borders.
  • Test the navigation through updated documentation links to confirm they lead to the correct destinations.
  • Review the new sections in the style guide for accuracy and completeness.

@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

Copy link
Collaborator

@nrichers nrichers left a comment

Choose a reason for hiding this comment

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

This PR makes some wonderful changes and I'll approve it as soon as the

HTML hacks are replaced — we have Tachyons CSS or bog-standard Quarto stuff to let us sort out alignment, no need to add yet more HTML.

The new video class is great, BTW. I have a feeling we will get a lot of mileage out of that as we add more and more videos. And the new rounded buttons and screenshots to also update the training materials are 🔥🔥🔥.

site/index.qmd Outdated Show resolved Hide resolved
site/releases/2023/2023-sep-27/highlights.qmd Outdated Show resolved Hide resolved
site/index.qmd Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

@validbeck validbeck requested a review from nrichers October 23, 2024 23:59
@github-actions
Copy link
Contributor

PR Summary

This pull request introduces several changes to the documentation and styling of the ValidMind project:

  1. Documentation Link Updates: The PR updates various internal documentation links from absolute URLs to relative paths. This change affects multiple markdown and Quarto files, ensuring that links are more maintainable and consistent across different environments.

  2. Button Styles: New CSS styles are added for buttons, particularly for index buttons and video iframes. These styles include hover effects and specific color schemes to enhance the visual consistency and user experience across the documentation site.

  3. Markdown and Quarto File Modifications: Several markdown and Quarto files have been updated to replace HTML form-based buttons with markdown link-based buttons. This change simplifies the code and leverages the new button styles for a more cohesive look.

  4. Video Embedding: The PR replaces some HTML iframe video embeds with a custom shortcode for embedding YouTube videos, which applies consistent styling and shadow effects.

  5. Training and Release Notes: Updates to training modules and release notes to reflect the new link formats and button styles, ensuring that all documentation is up-to-date with the latest changes.

Test Suggestions

  • Verify that all updated links in the documentation point to the correct relative paths and render correctly in the browser.
  • Check the visual appearance of the new button styles across different pages to ensure consistency and responsiveness.
  • Test the video embedding shortcode to confirm that it applies the correct styles and functions as expected.
  • Review the training modules and release notes to ensure all content is accessible and formatted correctly with the new changes.

@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

@nrichers
Copy link
Collaborator

@validbeck going back to the naming convention for buttons, I started experimenting with course cards for our training pages and this button actually look kind of useful over a light background:

image

I sort of wonder, perhaps we could settle on a more generic naming convention than {.guides .index} for the more specialized buttons you created for the home page?

@validbeck
Copy link
Collaborator Author

validbeck commented Oct 24, 2024

I sort of wonder, perhaps we could settle on a more generic naming convention than {.guides .index} for the more specialized buttons you created for the home page?

Sure, why don't you play and make the necessary adjustments since you seem to have an idea of what you want? Rather than us just going back and forth! Be the change.

EDIT: Or maybe you just meant something like this?

@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

1 similar comment
@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

@nrichers
Copy link
Collaborator

Sure, why don't you play and make the necessary adjustments since you seem to have an idea of what you want? Rather than us just going back and forth! Be the change.

Thanks! I pushed a commit to have a standardized nomenclature for buttons. We now have:

  • .button
  • .button-pink
  • .button-white
  • .button-green

And then your .cta basically applies some special formatting that can be combined with these. The only other thing I did was reshuffle styles.css a bit to group the classes better.

Copy link
Collaborator

@nrichers nrichers left a comment

Choose a reason for hiding this comment

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

LGTM! This PR has turned out great — I'll pull this into my training updates PR as soon as you merge. :shipit:

@github-actions
Copy link
Contributor

A PR preview is available: Preview URL

@validbeck validbeck merged commit 4d26a71 into main Oct 24, 2024
@validbeck validbeck deleted the beck/sc-7046/investigate-using-tachyons-css-buttons branch October 24, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Not to be externalized in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.