Skip to content

Conversation

swashbuck
Copy link
Contributor

@swashbuck swashbuck commented Jul 16, 2025

Fix #114

New

  • Adds _graphic option for an image (ex. a logo) that appears before the title.
  • Adds _backgroundImage and _backgroundStyles options for a page background image

Update

  • markdownlint fixes to README.md

Testing

Add new properties to _languagePicker object in config.json:

"_graphic": {
  "src": "course/en/images/logo.png",
  "alt": "Logo"
},
"_backgroundImage": {
  "_xlarge": "course/en/images/background.jpg",
  "_large": "course/en/images/background.jpg",
  "_medium": "course/en/images/background-sm.jpg",
  "_small": "course/en/images/background-sm.jpg"
},
"_backgroundStyles": {
  "_backgroundSize": "contain",
  "_backgroundRepeat": "repeat",
  "_backgroundPosition": "center center"
},

Screenshots

Migration scripts 🚧

@swashbuck swashbuck moved this from New to Assigned in adapt_framework: The TODO Board Jul 16, 2025
@swashbuck swashbuck changed the title New: Add _graphic option (fix #114) New: Add graphic and background image options (fix #114) Jul 16, 2025
@swashbuck swashbuck moved this from Assigned to Needs Reviewing in adapt_framework: The TODO Board Jul 17, 2025
@swashbuck swashbuck marked this pull request as ready for review July 17, 2025 15:55
@swashbuck
Copy link
Contributor Author

Ready for review

Copy link
Contributor

Choose a reason for hiding this comment

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

👀

Copy link
Contributor

@joe-allen-89 joe-allen-89 left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@kirsty-hames kirsty-hames left a comment

Choose a reason for hiding this comment

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

Works as expected thanks @swashbuck 👍 I've just raised some minor comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Recently Released

Development

Successfully merging this pull request may close these issues.

Add background image and graphic options

5 participants