25 lines
338 B
Coq
25 lines
338 B
Coq
|
module carousel
|
||
|
|
||
|
@[heap]
|
||
|
pub struct Carousel {
|
||
|
pub mut:
|
||
|
items []Item
|
||
|
}
|
||
|
|
||
|
pub struct Item {
|
||
|
pub mut:
|
||
|
title string
|
||
|
subtitle string
|
||
|
description string
|
||
|
background_image string
|
||
|
button_primary Button
|
||
|
button_secondary Button
|
||
|
}
|
||
|
|
||
|
pub struct Button {
|
||
|
pub mut:
|
||
|
text string
|
||
|
url string
|
||
|
}
|
||
|
|