Story 91.1. UI Block – Picture Button

General info

We should be able to this element on both POSTs(Journal Articles)

Screenshot 2024-05-07 at 12.58.29.png

and PAGEs

 

Screenshot 2024-05-07 at 12.58.37.png

User story

As an admin WordPress

I want to add the block with buttons

So that helps to make the pages and journal posts more interesting and useful for website users

Visual design

Figma: https://www.figma.com/file/6KT0tZfJw3u7R8b5pCH8vw/Saclab-Team-Library?type=design&node-id=4512%3A1337&mode=design&t=apJg6wUdi9sTMgXL-1 (Picture button section)

Acceptance criteria

01

Given: Admin panel → Pages → Add New page

When: create/edit page
AND add a block called “Picture Button”

Then: see the section in edit mode to adjust the settings of the block

Desktop:

Screenshot 2024-05-07 at 10.19.06.png

Mobile:

Screenshot 2024-05-07 at 10.21.37.png

02

Given: Admin panel → Posts → Add New post

When: create/edit post
AND add a block called “Picture Button”

Then: see the section in edit mode to adjust the settings of the block

03

Given: edit mode of the block “Picture Button”

When: add/edit 4 photos (mandatory all 4 photos)
AND the ability to add a link to each button under image (mandatory)
AND options to choose open in the new tab
AND the ability to change the text of the block (mandatory)
AND autosave each change
AND click update the page

Then: see the updated content of the block on the website

04

Given: page/post on the website with block “Picture Button” (desktop)

When: hover on a picture

Then: see the hover effect according to the design

image-20240509-075658.png

05

Given: page/post on the website with block “Picture Button” (mobile)

When: click/press on a picture

Then: see the press effect according to the design

image-20240509-075645.png

Comments

Leave a Reply