2024-04-12 11:31:41 -06:00
|
|
|
package pages
|
|
|
|
|
|
|
|
import (
|
|
|
|
"atri.dad/lib"
|
|
|
|
"github.com/labstack/echo/v4"
|
|
|
|
)
|
|
|
|
|
|
|
|
type TestimonialsProps struct {
|
|
|
|
Images []string
|
|
|
|
}
|
|
|
|
|
|
|
|
func Testimonials(c echo.Context) error {
|
|
|
|
images := []string{
|
|
|
|
"/public/img/testimonials/1.png",
|
|
|
|
"/public/img/testimonials/2.png",
|
|
|
|
"/public/img/testimonials/3.png",
|
2024-04-12 11:37:39 -06:00
|
|
|
"/public/img/testimonials/4.png",
|
2024-04-12 13:18:31 -06:00
|
|
|
"/public/img/testimonials/5.png",
|
|
|
|
"/public/img/testimonials/6.png",
|
|
|
|
"/public/img/testimonials/7.png",
|
|
|
|
"/public/img/testimonials/8.png",
|
|
|
|
"/public/img/testimonials/9.png",
|
2024-04-12 11:31:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
props := TestimonialsProps{
|
|
|
|
Images: images,
|
|
|
|
}
|
|
|
|
|
|
|
|
// Specify the partials used by this page
|
|
|
|
partials := []string{"header", "navitems"}
|
|
|
|
|
|
|
|
// Render the template
|
|
|
|
return lib.RenderTemplate(c.Response().Writer, "base", partials, props)
|
|
|
|
}
|