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

✨ Develop the Image-Text Block Component #3316

Open
1 task
bettybondoc opened this issue Nov 18, 2024 · 6 comments
Open
1 task

✨ Develop the Image-Text Block Component #3316

bettybondoc opened this issue Nov 18, 2024 · 6 comments
Assignees

Comments

@bettybondoc
Copy link
Member

bettybondoc commented Nov 18, 2024

cc @wicksipedia @isaaclombardssw @UlyssesMaclaren @adamcogan @miichaelsmedley @louisroa8189

Description:
Develop the Image-Text Block component for the Consulting Pages. This component should be highly flexible, allowing users to customise various fields (e.g., text, layout, buttons, icons, images). To ensure the UI remains clean and intuitive, group related options together (e.g., all button customisation options like text, link, and style under a single section) and use toggles to hide/show optional fields or elements. The design should prioritise usability and clarity.

Acceptance Criteria:

  • The Image-Text Block component includes the following customisation options:
  • Layout Selector (Text-Image, Image-Text, No Image)
  • Background Selector (Transparent, Grey-700, Gradient 1/2/3/4)
  • Label 1
    • Icon Selector
    • Text Field
  • Heading Text Field
  • Description Text Field
  • Label 2 & Label 3
  • List
    • Icon Selector (Per Item)
    • Text Field (Per Item)
    • Layout Selector (1-col, 2-col)
  • Button 1 & Button 2
    • Before Icon Selector
    • Text & Link Field
    • After Icon Selector
    • Style Selector (Primary, Secondary)
  • Lead Catcher (accepts email)
    • Placeholder Text Field
    • Button Text Field
  • Image File Uploader + Alt Text
  • Fully responsive across desktop, tablet, and mobile
  • Works seamlessly on all major browsers (Chrome, Firefox, Safari, Edge)
  • Each field includes optional descriptions with links to relevant docs (e.g., Content Creator Guide)
  • Fields can be enabled or disabled for flexibility
  • Customisation options are grouped logically for a clean, easy-to-use interface
  • Code is ready for theming (e.g., Light/Dark modes, custom colours – see linked PBI)
  • Tested and approved by Wicksy, Louis and Betty

Tasks

  • TODO - Developer to update

Image
Figure: Full Component - Desktop

Image
Figure: Full Component - Mobile

Image
Figure: Use Case - Hero Section

Image
Figure: Use Case - Benefits

Image
Figure: Use Case - Experts

Image
Figure: Use Case - Single Case Study

Image
Figure: Use Case - CTA

@github-project-automation github-project-automation bot moved this to 🤷‍♂️ Needs Triage in SSW.Website Nov 18, 2024
@bettybondoc bettybondoc changed the title ✨ Create Customisable Image-Text Block Component ✨ Develop Image-Text Block Component Nov 19, 2024
@bettybondoc bettybondoc changed the title ✨ Develop Image-Text Block Component ✨ Develop the Image-Text Block Component Nov 19, 2024
@jeoffreyfischer jeoffreyfischer moved this from 🤷‍♂️ Needs Triage to 🔖 Backlog - Ready in SSW.Website Nov 20, 2024
@isaaclombardssw isaaclombardssw self-assigned this Nov 22, 2024
@isaaclombardssw
Copy link
Member

isaaclombardssw commented Nov 27, 2024

This is still in progress – the schema's pretty much complete and I just have the component to do now.

There were one or two hold-ups including finding a bug with rich-text field embedded object lists, which I've done a minimal repro for and flagged with TinaCMS (see tinacms/tinacms#5323)

Sneak peek of the schema:
Image
Image

@jeoffreyfischer
Copy link
Member

TODO: Check how much those icons increase the bundle size

@isaaclombardssw
Copy link
Member

The email capture portion has been extracted into PBI #3360 after a conversation with Betty, Louis and Caleb (currently we aren't sure about the usage).

@isaaclombardssw
Copy link
Member

As per my conversation with Betty/Wicksie, fade-in on scroll animation can be added (similar to current site animations).

@isaaclombardssw
Copy link
Member

The bundle size issue is the last thing Caleb and I are trying to troubleshoot before this is ready for review – other than that you can see #3369 for the implementation and staging env.

@Calinator444
Copy link
Member

We found that importing the icons for the icon picker was adding ~700kib to our bundle size. We're working on adding an endpoint that we're using to serve the icons instead so that they won't be imported into our page bundle.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

No branches or pull requests

4 participants