//This will be changed to info gathered from backend
steps:[
{image:'https://th.bing.com/th/id/OIG4.GHQvXMljb6YONcnYvfuE?pid=ImgGn',altImage:'https://th.bing.com/th/id/OIG2.dzSCGYTFEglaUPj1maja?pid=ImgGn',title:'Challenge 1',showPanel:false,description:'Save 50kr on coffee in 3 days',percentFinished:22},
{image:'https://th.bing.com/th/id/OIG4.GHQvXMljb6YONcnYvfuE?pid=ImgGn',altImage:'https://th.bing.com/th/id/OIG2.dzSCGYTFEglaUPj1maja?pid=ImgGn',title:'Challenge 2',showPanel:false,description:'Save 500kr on food in 7 days',percentFinished:73},
{image:'https://th.bing.com/th/id/OIG4.GHQvXMljb6YONcnYvfuE?pid=ImgGn',altImage:'https://th.bing.com/th/id/OIG2.dzSCGYTFEglaUPj1maja?pid=ImgGn',title:'Challenge 3',showPanel:false,description:'Save 350kr on clothes in 5 days',percentFinished:50},
{image:'https://th.bing.com/th/id/OIG4.GHQvXMljb6YONcnYvfuE?pid=ImgGn',altImage:'https://th.bing.com/th/id/OIG2.dzSCGYTFEglaUPj1maja?pid=ImgGn',title:'Challenge 4',showPanel:false,description:'Save 150kr on coffee in 4 days',percentFinished:10},
{image:'https://th.bing.com/th/id/OIG4.GHQvXMljb6YONcnYvfuE?pid=ImgGn',altImage:'https://th.bing.com/th/id/OIG2.dzSCGYTFEglaUPj1maja?pid=ImgGn',title:'Challenge 5',showPanel:false,description:'Save 50kr on coffee in 3 days',percentFinished:90}
]
};
},
methods:{
togglePanel(step:Step){
step.showPanel=!step.showPanel;
}
}
};
</script>
<template>
<divclass="container">
<divclass="row">
<divclass="col-lg-12">
<ulclass="timeline">
<liv-for="(step, index) in steps":key="index":class="{ 'timeline-inverted': index % 2 !== 0 }">