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

Updates Teach AI section to use new strings, new styles #58027

Merged
merged 2 commits into from Apr 16, 2024

Conversation

hannahbergam
Copy link
Contributor

@hannahbergam hannahbergam commented Apr 16, 2024

@kelbyhawn I know you might want to refactor this, but this was the quickest way to utilize the .new styles without refactoring the pegasus design system stylesheet. Currently, any '.new' tag has to be nested within an action-block, which isn't the case for this page. So I took the styles and fixed the width and got it looking correct on this page in this new context.

Additionally, I know the figma has the image compensating for the much bigger height of the collective 'new' tag and the additional body lines. However, this is much harder to fix without messing with some very 'high up' margin stylings that dictate the max width of every section on the page. Considering we're fine with the 'text side' being bigger than the 'image side' higher up on the page, I elected to leave it.

Aside from that, this is just new strings and a new link url!

Before:
Screenshot 2024-04-15 at 5 48 13 PM

After:
Screenshot 2024-04-15 at 6 25 58 PM

Warning!!

The AP CSP Create Performance Task is in progress. The most critical dates are from April 3 - April 30, 2024. Please consider any risk introduced by this PR that could affect our students taking AP CSP. Code.org students taking AP CSP primarily use App Lab for their Create Task, however a small percent use Game Lab. Carefully consider whether your change has any risk of alterering, changing, or breaking anything in these two labs. Even small changes, such as a different button color, are considered significant during this time period. Reach out to the Student Learning team or Curriculum team for more details.

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@hannahbergam hannahbergam requested a review from a team April 16, 2024 01:48
Copy link
Contributor

@kelbyhawn kelbyhawn left a comment

Choose a reason for hiding this comment

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

This solution works fine for now!

I left two suggestions that should help with the spacing issues so it'll look like this:
Screenshot 2024-04-16 at 9 05 01 AM

@@ -162,12 +162,14 @@ theme: responsive_full_width
%figure.col-45{style: "margin-bottom: 1rem"}
%img{src: "/images/ai/pl/101/TeachAI.png", alt: "", style: "width: 100%"}
.text-wrapper.col-50{style: "margin-bottom: 1rem"}
%p.new
=hoc_s(:new)
%h2
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
%h2
%h2.heading-lg

%h2
=hoc_s(:teach_ai_title)
=hoc_s(:ai_promote_literacy)
%p
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
%p
%p.body-three

@hannahbergam
Copy link
Contributor Author

This solution works fine for now!

I left two suggestions that should help with the spacing issues so it'll look like this: Screenshot 2024-04-16 at 9 05 01 AM

Love it- just making those things a smidge smaller! Done:)

@hannahbergam hannahbergam merged commit 1985a0b into staging Apr 16, 2024
2 checks passed
@hannahbergam hannahbergam deleted the hbergam/teachai-page-section branch April 16, 2024 17:55
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.

None yet

2 participants