Skip to content

Conversation

@FlorenceRandaxhe
Copy link
Member

No description provided.

Copy link
Member

@toonvandenbos toonvandenbos left a comment

Choose a reason for hiding this comment

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

Il ne manque pas le layout Hiker CMS ?

Comment on lines 14 to 27
/**
* The LayoutImage's title.
*/
public string $image;

/**
* The LayoutImage's image.
*/
public string $alt;

/**
* The LayoutImage's image alt.
*/
public string $caption;
Copy link
Member

Choose a reason for hiding this comment

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

Les doc blocks sont fucked up

@FlorenceRandaxhe
Copy link
Member Author

Il ne manque pas le layout Hiker CMS ?

oui..

Comment on lines +45 to +47
Text::make('Alternative text', 'alt')
->rules('required')
->help('<strong>Hidden</strong>. An alternative text is used to give a description of the content of an image so that the visually impaired and search engines can understand the image.'),
Copy link
Member

Choose a reason for hiding this comment

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

Il faut placer le alt juste en-dessous de l'image, puis la caption.

DataList::make()
->row('Image', ImageComponent::make(Storage::url($this->image))->aspectRatio('16/9'))
->row('Caption', TextComponent::make($this->caption))
->row('Alternative text', TextComponent::make($this->alt)),
Copy link
Member

Choose a reason for hiding this comment

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

Idem ici.

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.

3 participants